Open KronosTheLate opened 6 months ago
I think the correct syntax form implied by the error message is rand(), 10
, but that's a bit of a stretch.
The error messages for this kind of thing did change recently in #397 to improve the highlighted range but... that change does rather clash with this particular type of error. Yikes :grimacing:
julia> rand(, 10)
ERROR: ParseError:
# Error @ REPL[8]:1:6
rand(, 10)
# └ ── Expected `)` or `,`
When an argument is missing, the error message is not fantastic:
In fact, replacing the underlined part with the "expected" ) would not even solve the problem. It is much less the root issue.
Relevant issues: https://github.com/JuliaLang/JuliaSyntax.jl/issues/348 and https://github.com/JuliaLang/JuliaSyntax.jl/issues/336