Skip to content

OrderedStruct failure #126

@alunap

Description

@alunap

Version 1.7.1 fails to precompile, saying that it is unable to load OrderedStruct. StructTypes = 1.4.0. (actually loading JSONTables here, which loads JSON3).
WARNING: could not import StructTypes.OrderedStruct into JSON3
ERROR: LoadError: LoadError: UndefVarError: OrderedStruct not defined
Stacktrace:
[1] top-level scope at /Users/impero/.julia/packages/JSON3/rjLPB/src/structs.jl:591
[2] include(::Function, ::Module, ::String) at ./Base.jl:380
[3] include at ./Base.jl:368 [inlined]
[4] include(::String) at /Users/impero/.julia/packages/JSON3/rjLPB/src/JSON3.jl:1
[5] top-level scope at /Users/impero/.julia/packages/JSON3/rjLPB/src/JSON3.jl:163
[6] include(::Function, ::Module, ::String) at ./Base.jl:380
[7] include(::Module, ::String) at ./Base.jl:368
[8] top-level scope at none:2
[9] eval at ./boot.jl:331 [inlined]
[10] eval(::Expr) at ./client.jl:467
[11] top-level scope at ./none:3
in expression starting at /Users/impero/.julia/packages/JSON3/rjLPB/src/structs.jl:591
in expression starting at /Users/impero/.julia/packages/JSON3/rjLPB/src/JSON3.jl:163
ERROR: LoadError: Failed to precompile JSON3 [0f8b85d8-7281-11e9-16c2-39a750bddbf1] to /Users/impero/.julia/compiled/v1.5/JSON3/1p699_D7IQd.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
[3] _require(::Base.PkgId) at ./loading.jl:1030
[4] require(::Base.PkgId) at ./loading.jl:928
[5] require(::Module, ::Symbol) at ./loading.jl:923
[6] include(::Function, ::Module, ::String) at ./Base.jl:380
[7] include(::Module, ::String) at ./Base.jl:368
[8] top-level scope at none:2
[9] eval at ./boot.jl:331 [inlined]
[10] eval(::Expr) at ./client.jl:467
[11] top-level scope at ./none:3
in expression starting at /Users/impero/.julia/packages/JSONTables/g5bSA/src/JSONTables.jl:3
WARNING: replacing module JSONDumpUtils.
[ Info: Precompiling JSONTables [b9914132-a727-11e9-1322-f18e41205b0b]
WARNING: could not import StructTypes.OrderedStruct into JSON3
ERROR: LoadError: LoadError: UndefVarError: OrderedStruct not defined
Stacktrace:
[1] top-level scope at /Users/impero/.julia/packages/JSON3/rjLPB/src/structs.jl:591
[2] include(::Function, ::Module, ::String) at ./Base.jl:380
[3] include at ./Base.jl:368 [inlined]
[4] include(::String) at /Users/impero/.julia/packages/JSON3/rjLPB/src/JSON3.jl:1
[5] top-level scope at /Users/impero/.julia/packages/JSON3/rjLPB/src/JSON3.jl:163
[6] include(::Function, ::Module, ::String) at ./Base.jl:380
[7] include(::Module, ::String) at ./Base.jl:368
[8] top-level scope at none:2
[9] eval at ./boot.jl:331 [inlined]
[10] eval(::Expr) at ./client.jl:467
[11] top-level scope at ./none:3
in expression starting at /Users/impero/.julia/packages/JSON3/rjLPB/src/structs.jl:591
in expression starting at /Users/impero/.julia/packages/JSON3/rjLPB/src/JSON3.jl:163
ERROR: LoadError: Failed to precompile JSON3 [0f8b85d8-7281-11e9-16c2-39a750bddbf1] to /Users/impero/.julia/compiled/v1.5/JSON3/1p699_D7IQd.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
[3] _require(::Base.PkgId) at ./loading.jl:1030
[4] require(::Base.PkgId) at ./loading.jl:928
[5] require(::Module, ::Symbol) at ./loading.jl:923
[6] include(::Function, ::Module, ::String) at ./Base.jl:380
[7] include(::Module, ::String) at ./Base.jl:368
[8] top-level scope at none:2
[9] eval at ./boot.jl:331 [inlined]
[10] eval(::Expr) at ./client.jl:467
[11] top-level scope at ./none:3
in expression starting at /Users/impero/.julia/packages/JSONTables/g5bSA/src/JSONTables.jl:3

Reverting JSON3 back to v1.5.1 deals with the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions