You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension version: 2024.2.1
VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:52:57.054Z)
OS version: Darwin arm64 23.3.0
Modes:
Connection to 'ssh-remote+7b22686f73744e616d65223a22444c5f4f43525f4c656f5f50335f5562756e74755f4e65775f4d61696e227d' could not be established
Remote OS version: Linux x64 4.14.301-224.520.amzn2.x86_64
Leo Pimentel (@dokutoshi) Can you share the error stack if this occurs again? either from logs or you should be able to see it from the developer console (Help > toggle Developer tools)
Here is the Window output - somehow related to Discovering Python Interpreters that scans both the remote Mac and Linux servers.
Once the user selects an interpreter either from the notebook or Command Palette: Select Interpreter, the Discovering Python Interpreters commences and never ceases. It can run for hours, literally. Karthik Nadig (@karthiknadig)
Remote SSH tends to drop the service juxtaposed Remote Tunnels.
2024-06-13 10:46:16.376 [error] [remote-connection][ExtensionHost][35d13…][reconnect][WebSocket(127.0.0.1:63060)] received error control message when negotiating connection. Error:
2024-06-13 10:46:16.376 [error] Error: Connection error: Unknown reconnection token (seen before)
at H (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:689:19292)
at u.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:689:10586)
at h.y (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:89:659)
at h.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:89:876)
at r.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:615:14848)
at d.z (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:615:18026)
at u.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:615:17358)
at h.y (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:89:659)
at h.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:89:876)
at c.acceptChunk (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:615:12594)
at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:615:11864
at u.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:689:5135)
at h.y (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:89:659)
at h.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:89:876)
at j.onload (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:689:3364)
2024-06-13 10:46:16.377 [error] [remote-connection][ExtensionHost][35d13…][reconnect] A permanent error occurred in the reconnecting loop! Will give up now! Error:
2024-06-13 10:46:16.377 [error] Error: Connection error: Unknown reconnection token (seen before)
at H (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:689:19292)
at u.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:689:10586)
at h.y (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:89:659)
at h.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:89:876)
at r.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:615:14848)
at d.z (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:615:18026)
at u.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:615:17358)
at h.y (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:89:659)
at h.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:89:876)
at c.acceptChunk (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:615:12594)
at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:615:11864
at u.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:689:5135)
at h.y (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:89:659)
at h.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:89:876)
at j.onload (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:689:3364)
2024-06-13 10:46:16.406 [error] Extension host (Remote) terminated unexpectedly with code null.
2024-06-13 10:46:16.406 [error] Extension host (Remote) terminated unexpectedly. The following extensions were running: vscode.ipynb, vscode.emmet, vscode.git-base, vscode.git, vscode.github, ms-toolsai.datawrangler, ms-toolsai.jupyter, ms-toolsai.vscode-jupyter-cell-tags, ms-python.python, ms-toolsai.jupyter-renderers, ms-toolsai.vscode-jupyter-powertoys, VisualStudioExptTeam.intellicode-api-usage-examples, VisualStudioExptTeam.vscodeintellicode, ms-python.black-formatter, ms-python.debugpy, ms-python.mypy-type-checker, ms-python.vscode-pylance, ms-toolsai.tensorboard, vscode.tunnel-forwarding, vscode.debug-auto-launch, vscode.merge-conflict
In the python logs with log level set to trace enabled so you see anything particular it blocks on?
Another thing to try, if you haven't already is to run this command "Python: Clear Cache and reload". That should remove any paths that the extension is holding on to, and hopefully unblocks whatever is causing discovery to wait forever.
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.
In the python logs with log level set to trace enabled so you see anything particular it blocks on?
Another thing to try, if you haven't already is to run this command "Python: Clear Cache and reload". That should remove any paths that the extension is holding on to, and hopefully unblocks whatever is causing discovery to wait forever.
I extended the workspace using "Add Folder to Workspace" to include a functional folder for TensorFlow.
For clarification:
The first folder contains Python source files and a notebook (a static folder).
The second folder (the TensorFlow folder) contains logs and metadata files generated by TensorFlow during training, typically per epoch, to save model weights and biases (a dynamic folder). PyTorch has a similar on-training file creation.
Post-observations after including a dynamic folder show that the growth in file count (less than 10 files) during an active kernel leads to a kernel halt. This is different, in my opinion, from including a large data directory with millions of images. In the dynamic folder case, behavior suggests that files added/created in an active workspace trigger the Python discovery process, interrupting an active kernel.
Activity
karthiknadig commentedon Jun 12, 2024
Leo Pimentel (@dokutoshi) Can you share the error stack if this occurs again? either from logs or you should be able to see it from the developer console (Help > toggle Developer tools)
dokutoshi commentedon Jun 13, 2024
Gladly...
Here is the Window output - somehow related to Discovering Python Interpreters that scans both the remote Mac and Linux servers.
Once the user selects an interpreter either from the notebook or Command Palette: Select Interpreter, the Discovering Python Interpreters commences and never ceases. It can run for hours, literally. Karthik Nadig (@karthiknadig)
Remote SSH tends to drop the service juxtaposed Remote Tunnels.
karthiknadig commentedon Jun 13, 2024
In the python logs with log level set to trace enabled so you see anything particular it blocks on?
Another thing to try, if you haven't already is to run this command "Python: Clear Cache and reload". That should remove any paths that the extension is holding on to, and hopefully unblocks whatever is causing discovery to wait forever.
FYI: We are actually working on replacing the entire discovery stack using https://github.com/microsoft/python-environment-tools which runs significantly faster and should resolve this issue.
github-actions commentedon Jul 16, 2024
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.
Happy Coding!
dokutoshi commentedon Jul 16, 2024
Clearing the cache with each reload is standard practice.
One important test scenario:
Karthik Nadig (@karthiknadig) Don Jayamanne (@DonJayamanne)
I extended the workspace using "Add Folder to Workspace" to include a functional folder for TensorFlow.
For clarification:
The first folder contains Python source files and a notebook (a static folder).
The second folder (the TensorFlow folder) contains logs and metadata files generated by TensorFlow during training, typically per epoch, to save model weights and biases (a dynamic folder). PyTorch has a similar on-training file creation.
Post-observations after including a dynamic folder show that the growth in file count (less than 10 files) during an active kernel leads to a kernel halt. This is different, in my opinion, from including a large data directory with millions of images. In the dynamic folder case, behavior suggests that files added/created in an active workspace trigger the Python discovery process, interrupting an active kernel.
Best,
Leo