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

Error using Array span field in Julia 1.11.1 #163

Open
danielmatz opened this issue Oct 19, 2024 · 4 comments
Open

Error using Array span field in Julia 1.11.1 #163

danielmatz opened this issue Oct 19, 2024 · 4 comments

Comments

@danielmatz
Copy link
Contributor

I was just trying Julia 1.11.1 with snail, but it seems that JuliaSnail.jl references some Array internals, which have changed?

julia> JuliaSnail.start(10011) ; # please wait, time-to-first-plot...
MethodError(convert, (Tokenize.Lexers.Lexer{Base.GenericIOBuffer{Vector{UInt8}}, Tokenize.Tokens.RawToken}, Tokenize.Lexers.Lexer{IOBuffer, Tokenize.Tokens.RawToken} at position: 0), 0x0000000000006885)
MethodError(convert, (Tokenize.Lexers.Lexer{Base.GenericIOBuffer{Vector{UInt8}}, Tokenize.Tokens.RawToken}, Tokenize.Lexers.Lexer{IOBuffer, Tokenize.Tokens.RawToken} at position: 0), 0x0000000000006885)
ERROR: type Array has no field span
Stacktrace:
 [1] getproperty
   @ ./Base.jl:49 [inlined]
 [2] pathat(cst::Vector{Any}, offset::Int64)
   @ Main.JuliaSnail.CST ~/.matzconfig/emacs/straight/repos/julia-snail/JuliaSnail.jl:512
 [3] moduleat(encodedbuf::String, byteloc::Int64)
   @ Main.JuliaSnail.CST ~/.matzconfig/emacs/straight/repos/julia-snail/JuliaSnail.jl:557
 [4] forcecompile()
   @ Main.JuliaSnail.CST ~/.matzconfig/emacs/straight/repos/julia-snail/JuliaSnail.jl:728
 [5] start(port::Int64; addr::String)
   @ Main.JuliaSnail ~/.matzconfig/emacs/straight/repos/julia-snail/JuliaSnail.jl:886
 [6] start(port::Int64)
   @ Main.JuliaSnail ~/.matzconfig/emacs/straight/repos/julia-snail/JuliaSnail.jl:858
 [7] top-level scope
   @ REPL[1]:1
@gcv
Copy link
Owner

gcv commented Oct 19, 2024

That’s looks like a return value from CSTParser. Can you check the version you have? If it’s not 3.4.2, can you try to downgrade?

@ggebbie
Copy link

ggebbie commented Oct 20, 2024

I had this error with julia 1.11.1, then upgraded julia-snail to 20240812.840 and it went away.

I can reproduce the problem with obsolete julia-snail 20231026.2200 .

@danielmatz
Copy link
Contributor Author

My Manifest.toml had CSTParser 3.3.6, even though the Project.toml had a compat bound ~3.4.2. I manually ran pkg> update and it seems to work now. This is with the latest master.

I guess I thought that Snail would update its environment itself if needed. Does it not do that?

@ggebbie
Copy link

ggebbie commented Oct 21, 2024

I didn't dig into it too much, but here's my experience. I did not manually update any environments and it worked. When updating julia-snail, I see Messages that new julia packages are being copied. I see that a new environment with new files has been created in my /tmp files.

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

No branches or pull requests

3 participants