-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Parser Failed with @(var"which")
#441
Comments
Hm, I feel like that's a bug in the flisp parser and should be a syntax error... |
Slightly simpler example: julia> var"@which" 1+1
ERROR: ParseError:
# Error @ REPL[6]:1:12
var"@which" 1+1
# └──┘ ── extra tokens after end of expression
Stacktrace:
[1] top-level scope
@ none:1
julia> @var"which" 1+1
+(x::T, y::T) where T<:Union{Int128, Int16, Int32, Int64, Int8, UInt128, UInt16, UInt32, UInt64, UInt8}
@ Base int.jl:87
julia> @(var"which") 1+1 # This line is the bug in question
┌ Error: JuliaSyntax parser failed — falling back to flisp!
│ This is not your fault. Please submit a bug report to https://github.com/JuliaLang/JuliaSyntax.jl/issues
│ exception =
│ TypeError: in typeassert, expected String, got a value of type Nothing
│ Stacktrace:
│ [1] untokenize(head::Base.JuliaSyntax.SyntaxHead; unique::Bool, include_flag_suff::Bool)
│ @ Base.JuliaSyntax /cache/build/tester-armageddon-11/julialang/julia-release-1-dot-11/base/JuliaSyntax/src/parse_stream.jl:103
[...]
│ [28] (::REPL.var"#75#81"{REPL.LineEditREPL, REPL.REPLBackendRef})()
│ @ REPL ~/.julia/juliaup/julia-1.11.0-beta2+0.aarch64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/REPL.jl:457
│ offset = 0
│ code = "@(var\"which\") 1+1"
└ @ Base.JuliaSyntax /cache/build/tester-armageddon-11/julialang/julia-release-1-dot-11/base/JuliaSyntax/src/hooks.jl:260
+(x::T, y::T) where T<:Union{Int128, Int16, Int32, Int64, Int8, UInt128, UInt16, UInt32, UInt64, UInt8}
@ Base int.jl:87 |
LilithHafner
changed the title
Parser Failed with
Parser Failed with Jun 20, 2024
@(var"@hi")
@(var"less")
LilithHafner
changed the title
Parser Failed with
Parser Failed with Jun 20, 2024
@(var"less")
@(var"which")
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Parser failed with some (admittedly weird) input. Installed Julia with
curl -fsSL https://install.julialang.org | sh
.The text was updated successfully, but these errors were encountered: