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

Helpful parser error messages #133

Closed
hamelsmu opened this issue Apr 14, 2019 · 1 comment
Closed

Helpful parser error messages #133

hamelsmu opened this issue Apr 14, 2019 · 1 comment

Comments

@hamelsmu
Copy link
Owner

@hamelsmu hamelsmu commented Apr 14, 2019

I can't seem to figure out a way to surface parser errors to the user of my text editor. In particular, I'm working on a VSCode extension using tree-sitter to parse typescript files and surface parsing errors. Tree-sitter is much faster than the typescript language service, so far, but I can't seem to figure out how to surface a useful error message to the user.

In particular, I'd like something like the Parsing error: ';' expected. that eslint gives me. I figure that tree-sitter has some sort of context on the active branches in the parser, so should be able to surface that context in the error object.

If this feature already exists, and I'm just missing something, perhaps it should be included in the documentation site, as I couldn't find anything there.

@issue-label-bot

This comment has been minimized.

Copy link

@issue-label-bot issue-label-bot bot commented Apr 14, 2019

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.83. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: dashboard, app homepage and code for this bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.