-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Repl prints an error twice #27804
Comments
I can reproduce it, it's most likely related to how we are piping transpilation errors back into the REPL. I'll look into fixing this. |
Here's what I found:
What is strange is that they're identical.
|
I believe it's caused from SWC, since the errors received directly after SWC parsing and and returns, are already duplicate. |
Note that the SWC repl only prints the error once, so it's something specific about how Deno is using SWC. |
For reference, the repl integration test |
Version: Deno 2.1.7
deno
to start the replfor (console.log("a") of [1]);
It reports the syntax error twice:
This is not a SWC bug (in their playground they only report it once), and I couldn't find other syntax errors that are printed twice.
I cannot find any other error for which this happens.
The text was updated successfully, but these errors were encountered: