Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Invalid subtyping in definition of AbstractMesh #77

Closed
blegat opened this issue Mar 7, 2017 · 17 comments
Closed

Invalid subtyping in definition of AbstractMesh #77

blegat opened this issue Mar 7, 2017 · 17 comments

Comments

@blegat
Copy link
Contributor

blegat commented Mar 7, 2017

In Julia v0.6, there is the following error in precompilation

ERROR: LoadError: LoadError: invalid subtyping in definition of AbstractMesh
Stacktrace:
(...)
while loading /home/travis/.julia/v0.6/GeometryTypes/src/types.jl, in expression starting on line 9

This line is:

abstract AbstractMesh{VertT, FaceT} <: AbstractGeometry

The errors seems to be that AbstractGeometry has the parameters {N, T} an now in Julia v0.6, you cannot subtype a type without specifying all parameters.

@SimonDanisch
Copy link
Member

Yes, GeometryTypes does currently not support 0.6 :(

@Benoit9
Copy link

Benoit9 commented Mar 7, 2017

Does GLVisualize run on 0.6 without GeometryTypes? I thought 0.6 was required by CUDAnative, which is required by one of your examples?

@SimonDanisch
Copy link
Member

It was at some point! haven't tested recently. But a lot of issues have piled up which have higher priority right now...
Also 0.6 has a bug which doesn't let me move on with one of my packages: JuliaLang/julia#20103
And then there is: JuliaArrays/StaticArrays.jl#113, which I'm waiting for!
So the other issues take priority until these are resolved...

@Benoit9
Copy link

Benoit9 commented Mar 7, 2017

OK, thanks! GLVisualize looks awesome, and is one of the reasons I decided to install Julia. But no rush.

@SimonDanisch
Copy link
Member

Thanks! :) Well, it should all work on 0.5!

@sbromberger
Copy link

Just FYI, this failure is causing PlotRecipes.jl to fail as well. :(

@SimonDanisch
Copy link
Member

Fun fact, Plots.jl actually halted my efforts to port GeometryTypes to StaticArrays and making it work on 0.6, because the dependencies were spread out quite far and I was running out of time ;)

@blegat
Copy link
Contributor Author

blegat commented Apr 27, 2017

@SimonDanisch Any update ? The two issues you mentionned earlier have now been fixed.

@SimonDanisch
Copy link
Member

yes... it's working :D But 0.6 only because of staticarrays... I still rely quite a bit on 0.5,,, but maybe it's time to just have one working tag for 0.5 and then have a cut there!

@mkborregaard
Copy link
Contributor

Not working for me? On 0.6 I have this issue even with GeometryTypes master. Is it supposed to work now?

@KristofferC
Copy link
Contributor

Pretty sure #80 needs to be merged

@rdeits
Copy link
Contributor

rdeits commented May 30, 2017

@SimonDanisch it looks like on master we no longer have AbstractMesh <: AbstractGeometry (which caused some minor breakage in https://github.com/rdeits/DrakeVisualizer.jl ). Do you want to restore that relationship eventually?

One way to do it would be to change the AbstractMesh type to something like:

abstract type AbstractMesh{N, T, VertT <: StaticArray{Tuple{N}, T}, FaceT} <: AbstractGeometry{N, T}
end

@SimonDanisch
Copy link
Member

The mesh type actually needs to be rewritten quite a bit for 0.6 i'd say... It still has bugs and I'm increasingly unhappy with the design. In any case, it should definitely be an AbstractGeometry ;)

@rdeits
Copy link
Contributor

rdeits commented May 30, 2017

Ok, then I'll just work around the issue until it becomes an AbstractGeometry again.

@rdeits
Copy link
Contributor

rdeits commented May 30, 2017

Would you be willing to tag a new release with the fix for this issue? Even if it's not fully functional on v0.6, it would be a huge improvement to at least have a release which can be loaded on v0.6. As it stands, Polyhedra.jl, CDDLib.jl, DrakeVisualizer.jl, etc. all require GeometryTypes master.

@SimonDanisch
Copy link
Member

done: JuliaLang/METADATA.jl#9608
Now we'll need to figure out how to map from VertT to T, N in AbstractGeometry.

@rdeits
Copy link
Contributor

rdeits commented May 30, 2017

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants