JuliaCollections / LeftChildRightSiblingTrees.jl

Memory-efficient representation of a tree with arbitrary number of children/node
MIT License
16 stars 5 forks source link

NodeType not defined #18

Open dmillard opened 2 years ago

dmillard commented 2 years ago

Precompilation failure seems to happen with TerminalLoggers@0.1.6 but not @0.1.5. Root cause seems to be in LeftChildRightSiblingTrees.

Thanks!

[ Info: Precompiling TerminalLoggers [5d786b92-1e48-4d6f-9151-6b4477ca9bed]
ERROR: LoadError: UndefVarError: NodeType not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:31
 [2] top-level scope
   @ ~/.julia/packages/LeftChildRightSiblingTrees/ItTnK/src/abstracttrees.jl:3
 [3] include(mod::Module, _path::String)
   @ Base ./Base.jl:419
 [4] include(x::String)
   @ LeftChildRightSiblingTrees ~/.julia/packages/LeftChildRightSiblingTrees/ItTnK/src/LeftChildRightSiblingTrees.jl:1
 [5] top-level scope
   @ ~/.julia/packages/LeftChildRightSiblingTrees/ItTnK/src/LeftChildRightSiblingTrees.jl:250
 [6] include
   @ ./Base.jl:419 [inlined]
 [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
   @ Base ./loading.jl:1554
 [8] top-level scope
   @ stdin:1
dmillard commented 2 years ago

More notes:

  [1520ce14] AbstractTrees v0.4.2
  [1d6d02ad] LeftChildRightSiblingTrees v0.2.0
  [5d786b92] TerminalLoggers v0.1.6
cnrrobertson commented 10 months ago

Also looking to solve this issue. Noticed https://github.com/TuringLang/Turing.jl/issues/1941#issuecomment-1407538426 which may be related. Do you have any imports in your startup.jl?