-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Stuck on "Reactivating terminals" - Failed to resolve env #23922
Comments
More info for debugging this. I have installed the exact same version of VSCode Insiders but with See below the version info (the only difference is
Python extension version: |
Same problems. Except for the difference in the OS version, my VsCode insider version is the same.
|
Just encountered this on my win11 laptop locally, but when connected via ssh to remote linux server everything is fine.. both environments are set up with miniconda3
And this is not an Insider version:
Update: |
A few things to try: |
Possibly same issue as this: #23963 (I encountered on macOS ARM) Restarting my computer helped for me. My locator is already set to "native". @karthiknadig did you maybe mean switch from |
This issue occurs again and this time I tried the solution @corneliusroemer mentioned (switching native/js) and switching locator from native to js solved this issue for me after restarting vscode. |
I got the same error. Fresh install of VSCode (not insiders) on silicon mac. The above solution fixed it:
Not sure why this is broken, but not happy I wasted over an hour on this.. |
Thanks for sharing this worked for you @austinmw. I made a Stackoverflow question and answer in the hope more people quickly find the workaround until there's a proper fix: https://stackoverflow.com/questions/78886125/vscode-python-extension-stuck-on-reactivating-terminals/78886126#78886126 Update: wow the Q&A has already 135 views in just 11 hours - this suggests that a lot of people are getting this error. @karthiknadig would be great if someone at MSFT could look at this, I think. Hope the ping is ok in this case. |
There should be a mitigation pushed out in pre-release. related: #23982 |
Are folks still suffering from this on the latest pre-release version? Just got another issue from #24026 so I want to make sure. Thought this was resolved based on:#23982 (comment) |
@anthonykim1 I think it's impossible to say - report #24026 you linked to is insufficient to allow any conclusions - it's missing version of extension that's being used. |
@corneliusroemer Great point - |
FWIW I just hit this with an updated VSCode (not insiders version):
Found the fix through the SO post, changing the "python.locator" to "js" helped. |
@nurpax thanks for the report! What's your Python extension version? |
Looks like Python is at |
@anthonykim1 something seems to have happened recently making this bug more frequent for folks - the views on my Stackoverflow question have shot up like crazy in the last day, I think from 600 to 900, and the question has been open for 23 days. So the view rate might be the highest it has ever been. Adding a screenshot so we have a trackrecord:
|
It really saves me! |
This helped me as well |
Issue still occurring, this still resolved it. |
+1 |
It works!, put it to vscode settings.json |
@karthiknadig what to do for those not on windows? your command assumes people are on windows if I don't misunderstand. |
The same one exists for all other platforms. It would be something like this:
|
I also just ran into this, only I'm not using Conda. From the logs, it looked like vscode-python was trying to activate the wrong virtual environment. Running System info
Log output
|
@SaschaCowley can you also share the output from “Python locator”. If you still have it. |
@SaschaCowley Thanks! It helps a lot! |
If you are using conda and run into this issue, please try the pre-release v2024.17.2024101402 . |
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! |
"Python: Clear Cache and re-load" did it for me - thank you a lot! |
The final solution after all solutions above failed is to uninstall python series extensions (Python, Python-debugger, Pylance etc), restart vscode and reinstall them. That finally worked for me. |
As per @karthiknadig's suggestions, [Option 1] worked for me (December 2024)
Much appreciated |
i tried everything above and nothing can fix this issue i am using pyenv |
@voorhs Create a new issue, and include details, include settings.json, Logs from Output > Python, and Output> Python Locator. Ensure you are on the latest version of VS Code and extension. |
Experienced the same issue. Workaround: Re-create the environment listed in the error message, then everything works again. In my case, the environment listed there had nothing to do with my current project. |
I figured out what the problem was. The thing is that a couple of days before it occurred, my system had a serious failure related to the file system overflow. During this failure, various files were deleted, including the file "~/.local/bin/python3". Now I have recreated this symbolic link and this problem has completely disappeared. |
Type: Bug
Since the latest update of VSCode Insiders, the Python extension fails to launch (no syntax highlighting etc.), there is a permanent "Reactivating terminals..." in the status bar, and when I select OUTPUT > Python, I see the following error:
Not sure if it is related to the fact that my conda environments are on a mounted partition under /mnt/.
I have tried with Python pre-release and Release versions of the extension, and the issue happens in both cases.
The issue does not happen in vanilla VSCode (non Insiders)
VSCode info
System info:
Tried with Python extension:
Extension version: 2024.12.2
VS Code version: Code - Insiders 1.93.0-insider (d4c4e690b9f1e70291da9a46c5c8ac5ebfbda81a, 2024-08-07T05:03:47.999Z)
OS version: Linux x64 6.8.0-39-generic snap
Modes:
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: