Skip to content

Problems compiling a project on PackageCompier #36

@guilhermebodin

Description

@guilhermebodin

I have a problem compiling a project with package compiler and the first fail is on StructUtils, it appears that the project is what breaks the chain.

Precompiling Pkg finished.
  25 dependencies successfully precompiled in 27 seconds
  ✗ StructUtils
  ✗ StructUtils  StructUtilsTablesExt
  ✗ JSON
  ✗ Patchwork
  ✗ BenchmarkTools
  ✗ MathOptInterface
  ✗ ParametricOptInterface
  ✗ Xpress
  ✗ MathOptIIS
  ✗ JuMP`

The reason of the error being

ERROR: LoadError: UndefVarError: `##meta#60` not defined in `Base.Docs`
Stacktrace:
  [1] meta(?::Module; ?::Bool)
    @ Base.Docs .\docs\Docs.jl:84
  [2] meta
    @ .\docs\Docs.jl:77 [inlined]
  [3] _doc(?::Base.Docs.Binding, ?::Type)
    @ Base.Docs .\docs\Docs.jl:578
  [4] _doc(?::Base.Docs.Binding)
    @ Base.Docs .\docs\Docs.jl:572
  [5] top-level scope
    @ D:\.julia\packages\StructUtils\BDA5D\src\StructUtils.jl:151
  [6] eval
    @ .\none:-1 [inlined]
  [7] include(?::Module, ?::String)
    @ Base .\Base.jl:306
  [8] include_package_for_output(?::Base.PkgId, ?::String, ?::Vector{String}, ?::Vector{String}, ?::Vector{String}, ?::Vector{Pair{Base.PkgId, UInt128}}, ?::String)
    @ Base .\loading.jl:2996
  [9] top-level scope
    @ D:\juliaup\julia-1.12.1+0.x64.w64.mingw32\share\julia\Compiler\src\stdin:5
 [10] eval
    @ .\none:-1 [inlined]
 [11] eval(?::Module, ?::Any)
    @ Core .\<missing>:0
 [12] include_string(?::typeof(identity), ?::Module, ?::String, ?::String)
    @ Base .\loading.jl:2842
 [13] include_string
    @ .\loading.jl:2852 [inlined]
 [14] exec_options(?::Base.JLOptions)
    @ Base .\client.jl:315
 [15] _start()
    @ Base .\client.jl:550
in expression starting at D:\.julia\packages\StructUtils\BDA5D\src\StructUtils.jl:1
in expression starting at stdin:5
ERROR: LoadError: Failed to precompile StructUtils [ec057cc2-7a8d-4b58-b3b3-92acb9f63b42] to "D:\\.julia\\compiled\\v1.12\\StructUtils\\jl_9315.tmp".

When I went inspecting, indeed I don`t know exactly what the problematic line does

@doc (@doc fielddefaults) fielddefault

I am not entirely sure if this is a problem on Julia itself or the use of the macro in the package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions