SciML / Optimization.jl

Mathematical Optimization in Julia. Local, global, gradient-based and derivative-free. Linear, Quadratic, Convex, Mixed-Integer, and Nonlinear Optimization in one simple, fast, and differentiable interface.
https://docs.sciml.ai/Optimization/stable/
MIT License
711 stars 79 forks source link

Precompilation Warnings #579

Closed prbzrg closed 12 months ago

prbzrg commented 1 year ago
┌ OptimizationSparseFinitediffExt [d8ee6826-f4a5-5a2c-a3c2-4cd33c1c2fa7]
│  ┌ Warning: Module OptimizationSparseFinitediffExt with build ID ffffffff-ffff-ffff-0000-265660abf20d is missing from the cache.
│  │ This may mean OptimizationSparseFinitediffExt [d8ee6826-f4a5-5a2c-a3c2-4cd33c1c2fa7] does not support precompilation but is imported by a module that does.
│  └ @ Base loading.jl:1793
│  ┌ Error: Error during loading of extension OptimizationSparseFinitediffExt of Optimization, use `Base.retry_load_extensions()` to retry.
│  │   exception =
│  │    1-element ExceptionStack:
│  │    Declaring __precompile__(false) is not allowed in files that are being precompiled.
│  │    Stacktrace:
│  │      [1] _require(pkg::Base.PkgId, env::Nothing)
│  │        @ Base .\loading.jl:1797
│  │      [2] _require_prelocked(uuidkey::Base.PkgId, env::Nothing)
│  │        @ Base .\loading.jl:1660
│  │      [3] _require_prelocked(uuidkey::Base.PkgId)
│  │        @ Base .\loading.jl:1658
│  │      [4] run_extension_callbacks(extid::Base.ExtensionId)
│  │        @ Base .\loading.jl:1255
│  │      [5] run_extension_callbacks(pkgid::Base.PkgId)
│  │        @ Base .\loading.jl:1290
│  │      [6] run_package_callbacks(modkey::Base.PkgId)
│  │        @ Base .\loading.jl:1124
│  │      [7] _require_prelocked(uuidkey::Base.PkgId, env::String)
│  │        @ Base .\loading.jl:1667
│  │      [8] macro expansion
│  │        @ .\loading.jl:1648 [inlined]
│  │      [9] macro expansion
│  │        @ .\lock.jl:267 [inlined]
│  │     [10] require(into::Module, mod::Symbol)
│  │        @ Base .\loading.jl:1611
│  │     [11] top-level scope
│  │        @ C:\Users\Hossein Pourbozorg\.julia\packages\Optimization\HPEh3\ext\OptimizationSparseForwarddiffExt.jl:8
│  │     [12] include
│  │        @ .\Base.jl:457 [inlined]
│  │     [13] 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, UInt128}}, source::String)
│  │        @ Base .\loading.jl:2049
│  │     [14] top-level scope
│  │        @ stdin:3
│  │     [15] eval
│  │        @ .\boot.jl:370 [inlined]
│  │     [16] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
│  │        @ Base .\loading.jl:1903
│  │     [17] include_string
│  │        @ .\loading.jl:1913 [inlined]
│  │     [18] exec_options(opts::Base.JLOptions)
│  │        @ Base .\client.jl:305
│  │     [19] _start()
│  │        @ Base .\client.jl:522
│  └ @ Base loading.jl:1261
└
┌ OptimizationSparseForwarddiffExt [530d1a90-904c-596f-9002-7fc5765064bc]
│  ┌ Warning: Module OptimizationSparseForwarddiffExt with build ID ffffffff-ffff-ffff-0000-265650ce29a5 is missing from the cache.
│  │ This may mean OptimizationSparseForwarddiffExt [530d1a90-904c-596f-9002-7fc5765064bc] does not support precompilation but is imported by a module that does.
│  └ @ Base loading.jl:1793
│  ┌ Error: Error during loading of extension OptimizationSparseForwarddiffExt of Optimization, use `Base.retry_load_extensions()` to retry.
│  │   exception =
│  │    1-element ExceptionStack:
│  │    Declaring __precompile__(false) is not allowed in files that are being precompiled.
│  │    Stacktrace:
│  │      [1] _require(pkg::Base.PkgId, env::Nothing)
│  │        @ Base .\loading.jl:1797
│  │      [2] _require_prelocked(uuidkey::Base.PkgId, env::Nothing)
│  │        @ Base .\loading.jl:1660
│  │      [3] _require_prelocked(uuidkey::Base.PkgId)
│  │        @ Base .\loading.jl:1658
│  │      [4] run_extension_callbacks(extid::Base.ExtensionId)
│  │        @ Base .\loading.jl:1255
│  │      [5] run_extension_callbacks(pkgid::Base.PkgId)
│  │        @ Base .\loading.jl:1290
│  │      [6] run_package_callbacks(modkey::Base.PkgId)
│  │        @ Base .\loading.jl:1124
│  │      [7] _require_prelocked(uuidkey::Base.PkgId, env::String)
│  │        @ Base .\loading.jl:1667
│  │      [8] macro expansion
│  │        @ .\loading.jl:1648 [inlined]
│  │      [9] macro expansion
│  │        @ .\lock.jl:267 [inlined]
│  │     [10] require(into::Module, mod::Symbol)
│  │        @ Base .\loading.jl:1611
│  │     [11] top-level scope
│  │        @ C:\Users\Hossein Pourbozorg\.julia\packages\Optimization\HPEh3\ext\OptimizationSparseFinitediffExt.jl:8
│  │     [12] include
│  │        @ .\Base.jl:457 [inlined]
│  │     [13] 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, UInt128}}, source::String)
│  │        @ Base .\loading.jl:2049
│  │     [14] top-level scope
│  │        @ stdin:3
│  │     [15] eval
│  │        @ .\boot.jl:370 [inlined]
│  │     [16] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
│  │        @ Base .\loading.jl:1903
│  │     [17] include_string
│  │        @ .\loading.jl:1913 [inlined]
│  │     [18] exec_options(opts::Base.JLOptions)
│  │        @ Base .\client.jl:305
│  │     [19] _start()
│  │        @ Base .\client.jl:522
│  └ @ Base loading.jl:1261
└
prbzrg commented 1 year ago

It can be found in CI: https://github.com/SciML/Optimization.jl/actions/runs/5960459580/job/16172060771#step:7:684

ChrisRackauckas commented 1 year ago

OptimizationSparseForwarddiffExt that's a typo. OptimizationSparseForwardDiffExt

AstitvaAggarwal commented 1 year ago

facing the same issue, @ChrisRackauckas isnt that the extension file name? here in https://github.com/SciML/Optimization.jl/blob/master/ext/OptimizationSparseForwarddiffExt.jl

ChrisRackauckas commented 1 year ago

https://github.com/SciML/Optimization.jl/blob/master/ext/OptimizationSparseFiniteDiffExt.jl#L3-L6 try cleaning up these imports @Vaibhavdixit02 ?

SebastianM-C commented 12 months ago

I think that with the 3.17 release this has been fixed.

prbzrg commented 12 months ago

Yes, I just checked.