-
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
Console attempts to reconnect and 404s when connecting to an existing project after 1.95 merge #5750
Comments
@jthomasmock I have not been able to reproduce this and the video doesn't show how you got into this state. Can you elaborate on this step?
What UI gesture did you use to do this? Does it happen for all projects? |
This comment has been minimized.
This comment has been minimized.
I see this also in: Positron Version: 2025.01.0 (Universal) build 71 So maybe not related to the merge after all? |
Sorry @jmcphers -- yes, as Julia shared. Trying to open a project in existing window will lead to #5749 while opening a project in New Window with the workflow Julia described is what I initially ran into. Interestingly, I am now not able to reproduce this on: Positron Version: 2025.01.0 (Universal) build 87 |
I found a reliable repro! Notes in #5817. |
Addresses #5750. The underlying issue is somewhat complicated. Basically: - The list of running sessions is stored in ephemeral storage, scoped to the workspace. - Ephemeral storage is shared among all active windows. - We rely on the fact that ephemeral storage goes away when the app quits in order to prevent reconnection to old sessions. - It is possible however in multi-window scenarios to close and reopen a window in a workspace *without ever quitting Positron itself*. In this scenario, we can try to reconnect to non-existent sessions. The fix is to manually clear out the sessions from ephemeral storage on close/quit. This is not related to the 1.95 merge. ### QA Notes This does not reproduce reliably with the steps in #5750. Here are steps that will cause it to reproduce every time in builds prior to this change. 1. Open a workspace (Workspace 1). 2. Using the Open in New Window gesture on the Project drop down in the upper right, open a different workspace (Workspace 2) in a new window. 3. Start Python and/or R in Workspace 2 and run a few commands. 4. Close Workspace 2, but leave the Workspace 1 window open. 5. In Workspace 1, once again use Open in New Window to open Workspace 2. In Step 5, you will see the window attempt to connect to the sessions that you started in Step 3, but get HTTP 404 since those sessions are not running any more. Also note that the purpose of this machinery is to reconnect to sessions on reload/re-navigate, so double check that that still works.
Verified Fixed
Test scenario(s)Verified with Jonathan's instructions on #5817 Link(s) to TestRail test cases run or created: |
System details:
Positron and OS details:
Positron Version: 2025.01.0 (Universal) build 87
Code - OSS Version: 1.95.0
Commit: 240e51f
Date: 2024-12-16T02:50:00.442Z
Electron: 32.2.1
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.1.0
Interpreter details:
R 4.4 or Python 3.12.0
.venv
Describe the issue:
Opening a new window for an existing projects leads to consoles 404 error and stuck in a "Reconnecting" state. Shutting down the runtime and then restarting seems to get it out of this state.
Steps to reproduce the issue:
Screen.Cast.2024-12-16.at.10.28.45.AM.mp4
Expected or desired behavior:
Console successfully starts on first launch and not display a 404 error to user.
Were there any error messages in the UI, Output panel, or Developer Tools console?
Kallichore seems to be looking for an existing process:
The text was updated successfully, but these errors were encountered: