[2023.11.01_RC3] Syntax errors prevent terminal init #1831
Labels
3rd party
Errors coming from foreign projects we either enable or rely on
needs-triage
Issue needs triage
type: bug
Something isn't working
Checklist
What happened?
Currently if Pyodide detects a syntax error when it goes to run the initial Python code, it seems that this is not being sent to the terminal (even though these errors are being sent through to stderr on the Pyodide side).
It seems as though the current code to send Stderr/Stdout to the terminal is not working in this scenario.
You can test this by trying to execute the following Python code:
It does however seem to be a simple fix (by editing py-terminal.js), as I have tried the following and it appears to solve the issue.
I apologise for the hacky code, but just wanted to try and demonstrate a possible fix and let the experts take over 😄
hooks.main.onWorker.add
workerReady
so that it has access toio
workerReady
Let me know if anything does make sense here or if I can provide any extra context!
What browsers are you seeing the problem on? (if applicable)
No response
Console info
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: