Julia 1.12 unsupported
bug
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 👇**
```julia
using Pkg
Pkg.test() # with julia +nightly --project
```
**Error & Stacktrace ⚠️**
```julia
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
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
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
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)
```
关闭于 2025-04-22 9 条评论