JuliaLang / JuliaLang/JuliaSyntax.jl
Parse error with okay but not great error message
- Dominant language
- Julia
- Stars
- 293
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
I ran into this in the wild when I typoed a `<` into a `?`. The hints are reasonable but wrong.
```julia
julia> x = [rand() ? .9 ? rand(1:1000) : missing for _ in 1:100];
ERROR: ParseError:
# Error @ REPL[34]:1:42
x = [rand() ? .9 ? rand(1:1000) : missing for _ in 1:100];
# └ ── `:` expected in `?` expression
# Error @ REPL[34]:1:57
x = [rand() ? .9 ? rand(1:1000) : missing for _ in 1:100];
# └ ── unexpected `]`
# Error @ REPL[34]:1:57
x = [rand() ? .9 ? rand(1:1000) : missing for _ in 1:100];
# └ ── Expected `end`
Stacktrace:
[1] top-level scope
@ none:1
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.