Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error messages for FatalLexingError #12

Open
Drvi opened this issue Nov 10, 2023 · 0 comments
Open

Improve error messages for FatalLexingError #12

Drvi opened this issue Nov 10, 2023 · 0 comments

Comments

@Drvi
Copy link
Collaborator

Drvi commented Nov 10, 2023

These can happen when the buffer is too small to fit the largest row in the input, or when we misconfigured the lexer, or if the file is not parseable. It's hard to know which of these is the problem, but we should try and do a bit of analysis on the current chunk (like looking for how strings are escaped and comparing it with our escape character, look if there are any newlines in the chunk...) to give our best guess (and evidence for it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant