Skip to content

prevent precompilation warning for upcoming versions of Julia #623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

nsajko
Copy link
Contributor

@nsajko nsajko commented Jun 5, 2025

Fixes this precompilation warning:

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.
  77 dependencies successfully precompiled in 85 seconds. 32 already precompiled.
  1 dependency had output during precompilation:
┌ LinearSolve
│  [Output was shown above]
└

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

Fixes this precompilation warning:

```julia-repl
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.
  77 dependencies successfully precompiled in 85 seconds. 32 already precompiled.
  1 dependency had output during precompilation:
┌ LinearSolve
│  [Output was shown above]
└
```
@ChrisRackauckas ChrisRackauckas merged commit e7bd71e into SciML:main Jun 5, 2025
21 of 27 checks passed
@nsajko nsajko deleted the precompilation_warnings branch June 5, 2025 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants