-
Notifications
You must be signed in to change notification settings - Fork 172
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
Handle recoverable errors from SWC #500
Comments
After conversation with @kdy1 it turns out it's not really needed. |
Actually after another conversation with @kdy1 we should look into this problem. All parsing is done in @kdy1 can you look into this issue? |
It's okay to exit with failure on parsing error in But as |
@kdy1 then I guess it makes more sense to handle this problem in It also seems to to me that in case of linter we could transform SWC diagnostic in |
Just want to toss in a +1 for this issue. Constantly receiving the "A request has failed. See the output for more information." popup in VS Code is quite jarring (if this is in fact the root cause of that problem). Thank you. |
@kmurph73 it looks like a |
@bartlomieju thanks, just looked, and found that an issue already exists... denoland/vscode_deno#200 Looks like errors from |
@kmurph73 extension undergoes a major refactor and this problem should be fixed soon. |
Much like TSC, SWC can recover from number of errors during parsing. Currently we treat any error as terminal and don't proceed to work on AST.
Parser.take_errors()
can be used to obtain recoverable errors.This issue can be treated as an umbrella issue for dependency analysis,
deno doc
anddeno lint
.CC @kdy1
The text was updated successfully, but these errors were encountered: