Skip to content

--depwarn=error silences the "world prior to its definition world" warning, instead of making it an error #58648

Closed
@nsajko

Description

@nsajko

If I run Julia master like ./julia, I get this:

julia> using LinearSolve
Info Given LinearSolve was explicitly requested, output will be shown live 
WARNING: Detected access to binding `LinearSolve.defaultalg_symbol` in a world prior to its definition world.
  Julia 1.12 has introduced more strict world age semantics for global bindings.
  !!! This code may malfunction under Revise.
  !!! This code will error in future versions of Julia.
Hint: Add an appropriate `invokelatest` around the access to this binding.
To make this warning an error, and hence obtain a stack trace, use `julia --depwarn=error`.
Precompiling LinearSolve finished.
  64 dependencies successfully precompiled in 59 seconds. 45 already precompiled.
  1 dependency had output during precompilation:
┌ LinearSolve
│  [Output was shown above]
└

After deleting .julia/compiled/v1.13, running it like ./julia --depwarn=error, I get no warning or error during precompilation:

julia> using LinearSolve
Precompiling LinearSolve finished.
  77 dependencies successfully precompiled in 88 seconds. 32 already precompiled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    error messagesBetter, more actionable error messages

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions