JuliaLang / JuliaSyntax.jl

The Julia compiler frontend
Other
266 stars 32 forks source link

Better error for missing comma in arglist #411

Closed jariji closed 2 months ago

jariji commented 4 months ago
julia> f(foo, bar baz, quux)
ERROR: ParseError:
# Error @ 

f(foo, bar baz, quux)
#          └───────┘ ── Expected `)`

It says expected ) but the problem is actually a missing , and adding a ) wouldn't help. Maybe it could suggest several options instead of just one.

Tortar commented 2 months ago

duplicate of https://github.com/JuliaLang/julia/issues/52285

Tortar commented 2 months ago

Actually already fixed (see https://github.com/JuliaLang/julia/issues/52285) but we are still on an old version of JuliaSyntax in Julia :(