-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Python Uncaught Error 2024.2.1 #23554
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
Comments
@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) |
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. @karthiknadig Remote SSH tends to drop the service juxtaposed Remote Tunnels.
|
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. |
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! |
Clearing the cache with each reload is standard practice. One important test scenario: I extended the workspace using "Add Folder to Workspace" to include a functional folder for TensorFlow. For clarification:
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 |
Type: Bug
Profile extension states 1 uncaught errors
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
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Connection to 'ssh-remote+7b22686f73744e616d65223a22444c5f4f43525f4c656f5f50335f5562756e74755f4e65775f4d61696e227d' could not be established
A/B Experiments
The text was updated successfully, but these errors were encountered: