-
Notifications
You must be signed in to change notification settings - Fork 92
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
Restart a language runtime after exit #647
Comments
Some connected thoughts/ideas:
|
Ready for review. As of #1482, you should see the following behaviors:
|
Testing on version 2023.10.0-6 with MacOS 13.6 I also see the same as @lionel- and the Restart works great on python as well as R. I was confused at first when getting the messages due to the wording and ordering. After killing the process I got the three messages and I read these top to bottom and it says "R exited unexpectedly and was automatically restarted" and then the next message says "Couldn't start client Positron R Language Server". I thought before looking at the R console that it restarted and failed. Not sure if there is anything we can do here but I thought I would point it out to see if we have any control of the language here. Also, I noticed that the "Restart Python" button will appear when stopping/starting the interpreter from the drop-down menu. The button works as expected but it is a little weird they are still there when Python or R is running. I would expect them to disappear. |
Thanks for the feedback!
|
Just confirmed that the ordering issue and the lingering restart buttons are fixed. I filed the LSP issue at #1568 It looks like we can close this one. |
Verified Fixed
Test scenario(s)Verified both R and Python restart after exiting and console messages show up in the right order as expected.
R output
Python output
Also tested the new functionality of the Restart button appearing in both R and Python when the interpreter has stopped. It works as expected with both R 4.3.1 and Python 3.9.6. To reproduce, go to the dropdown interpreter menu and select Found #1592 while testing functionality. @lionel- I know you already tested this, I'm just trying out some QA process here. :) |
To reproduce:
ark
process using a terminal to simulate a crashYou are notified that R exited:
But Positron is effectively no longer usable as an R IDE now: you don't get completions or diagnostics, you can't run code, etc. The same is true of Python, etc.
When a language runtime exits, we should help the user get back to a working state. That could involve asking the user if they'd like to restart or just automatically performing a restart and letting the user know (via a toast) what happened.
The text was updated successfully, but these errors were encountered: