AREPL-electron
AREPL-electron copied to clipboard
AREPL does not restart python if user closes it
Replication steps:
- import turtle;turtle.forward(100)
- exit out of turtle
- Error logged to dev console: Uncaught Error: process exited with code 3489660927 in python-shell line 89
- If user types in anything at this point it results in Uncaught Error: this socket has been ended by the other party at PythonShell.send
- User tries to restart with F1
- "pyshell refused to die" is logged, followed by "the python process simply cannot be killed!" (the code misinterprets what is happening here - it doesn't realize process is already dead)
- Because the process has already exited the exit event is never called so the listener for exit does not restart the process
Havn't debugged it yet but I'd bet that I just need to check if the process is already dead before I try to kill it in the stop() command.
This will need to be fixed in the backend.