rdeits / MeshCat.jl

WebGL-based 3D visualizer in Julia
MIT License
235 stars 43 forks source link

Precompilation error: UnitQuaternion not defined #172

Closed baggepinnen closed 4 years ago

baggepinnen commented 4 years ago

In julia v1.5.1

(@v1.5) pkg> add MeshCat
  Resolving package versions...
Updating `~/.julia/environments/v1.5/Project.toml`
  [283c5d60] + MeshCat v0.11.2
No Changes to `~/.julia/environments/v1.5/Manifest.toml`

julia> using MeshCat
[ Info: Precompiling MeshCat [283c5d60-a78f-5afe-a0af-af636b173e11]
ERROR: LoadError: UndefVarError: UnitQuaternion not defined
Stacktrace:
 [1] include(::Function, ::Module, ::String) at ./Base.jl:380
 [2] include(::Module, ::String) at ./Base.jl:368
 [3] top-level scope at none:2
 [4] eval at ./boot.jl:331 [inlined]
 [5] eval(::Expr) at ./client.jl:467
 [6] top-level scope at ./none:3
in expression starting at /home/fredrikb/.julia/packages/MeshCat/ECbzr/src/MeshCat.jl:4
ERROR: Failed to precompile MeshCat [283c5d60-a78f-5afe-a0af-af636b173e11] to /home/fredrikb/.julia/compiled/v1.5/MeshCat/CZdjb_OIo6V.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
rdeits commented 4 years ago

Hm, that's interesting, thanks for reporting this!

It looks like we're missing an upper bound on compatibility with Rotations.jl. I may just need to create a new release; let me see...

rdeits commented 4 years ago

I just tried adding MeshCat in a new package environment, and I cannot reproduce this error. Do you maybe have Rotations.jl pinned to an old version? What does pkg> status show?

baggepinnen commented 4 years ago

Rotations is on v1.0.1 in pkg> st -m . I just tried using MeshCat again and it worked, so I have somehow managed to modify my package environment since I reported the issue and I can no longer reproduce it either :/

rdeits commented 4 years ago

Ok, no worries. Feel free to re-open this if it happens again.