JuliaLang / JuliaLang/JuliaSyntax.jl

Bad error message for missing end

Open
#476 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
293
Forks
50
PR merge metrics
No merged PRs in 30d

Description

Right now the error for missing an `end` in otherwise good code is
```
ERROR: LoadError: ParseError:
# Error @ /home/oscardssmith/.julia/dev/OrdinaryDiffEq/src/derivative_utils.jl:766:5
end
end
#
└ ── Expected `end`
```
The problem here is that the error location reported is just the end of the file (since everything else could be correct up to that point). It would be much better if the error instead (or in addition) pointed to the line requiring an end from which an end was missing since this line will generally be much more useful for figuring out where the missing `end` is supposed to go.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.