Skip to content
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

Julia 1.12 unsupported #95

Open
AntonReinhard opened this issue Oct 25, 2024 · 0 comments
Open

Julia 1.12 unsupported #95

AntonReinhard opened this issue Oct 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@AntonReinhard
Copy link

Unit tests fail on 1.12

Running the tests locally on the current nightly fails, see below. The nature of the error seems to imply that it's not just some temporary regression on nightly, but an actual issue.

The syntax: malformed expression is the same error I'm getting in my own project trying to call a RuntimeGeneratedFunction.

Expected behavior

The tests should succeed and RGFs should be callable.

Minimal Reproducible Example 👇

using Pkg
Pkg.test() # with julia +nightly --project

Error & Stacktrace ⚠️

     Testing Running tests...
Test Summary: | Pass  Total   Time
Aqua          |   10     10  11.6s
Error During Test at /home/antonr/repos/RuntimeGeneratedFunctions.jl/test/runtests.jl:157
  Test threw exception
  Expression: ((#= /home/antonr/repos/RuntimeGeneratedFunctions.jl/test/runtests.jl:157 =# @RuntimeGeneratedFunction(ex))(2))(3) === 5
  syntax: malformed expression
  Stacktrace:
   [1] top-level scope
     @ ~/repos/RuntimeGeneratedFunctions.jl/test/runtests.jl:157
   [2] (::RuntimeGeneratedFunction{(:x,), var"#_RGF_ModTag", var"#_RGF_ModTag", (0x0b620387, 0x0984f55d, 0x444b0809, 0x67f78240, 0x222043e0), Expr})(args::Int64)
     @ RuntimeGeneratedFunctions ~/repos/RuntimeGeneratedFunctions.jl/src/RuntimeGeneratedFunctions.jl:150
   [3] top-level scope
     @ ~/repos/RuntimeGeneratedFunctions.jl/test/runtests.jl:515
   [4] macro expansion
     @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Test/src/Test.jl:676 [inlined]
ERROR: LoadError: There was an error during testing
in expression starting at /home/antonr/repos/RuntimeGeneratedFunctions.jl/test/runtests.jl:157
ERROR: Package RuntimeGeneratedFunctions errored during testing

Environment (please complete the following information):

julia> Pkg.status()
Project RuntimeGeneratedFunctions v0.5.13
Status `~/repos/RuntimeGeneratedFunctions.jl/Project.toml`
  [e2ba6199] ExprTools v0.1.10
  [ea8e919c] SHA v0.7.0
  [9e88b42a] Serialization v1.11.0
julia> using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
Project RuntimeGeneratedFunctions v0.5.13
Status `~/repos/RuntimeGeneratedFunctions.jl/Manifest.toml`
  [e2ba6199] ExprTools v0.1.10
  [ea8e919c] SHA v0.7.0
  [9e88b42a] Serialization v1.11.0
julia> versioninfo()
Julia Version 1.12.0-DEV.1492
Commit ec2e1217fd8 (2024-10-25 07:25 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 24 × AMD Ryzen 9 7900X3D 12-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, znver4)
Threads: 1 default, 0 interactive, 1 GC (on 24 virtual cores)
@AntonReinhard AntonReinhard added the bug Something isn't working label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant