Open bgrins opened 7 years ago
This is a general problem with our rust-peg
EDN grammar, but I don't see a filed ticket. You get around this by annotating the grammar: https://github.com/kevinmehall/rust-peg#error-reporting.
And there's another issue here -- I expect we're not parsing Unicode correctly (again at the EDN level).
I'm not sure exactly what the best way to surface this is, but following the error messages led me down a long path. The messages make it appear that the particular character is the problem, when in reality it was a quote that was opened and never closed in a previous operation . For example:
Leads to an error pointing to the
ö
character, which led me down a path of removing each 'invalid' character, one by one:If you finally get to the last instance, i.e.
Then we end up with an error pointing to the final bracket:
If there was some kind of context in the error message pointing to the origin of the opened string it would save a ton of time.