Skip to content
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 in Reactivating terminals... due to cached broken environment #24301

Open
roblourens opened this issue Oct 11, 2024 · 6 comments
Open

Stuck in Reactivating terminals... due to cached broken environment #24301

roblourens opened this issue Oct 11, 2024 · 6 comments
Assignees
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on

Comments

@roblourens
Copy link
Member

In my vscode-copilot workspace, I have this status bar spinner that never goes away

Image

I see this in the Terminal log when the window starts

2024-10-11 15:06:11.602 [error] Exception occurred during xterm disposal [{}]
2024-10-11 15:06:11.608 [error] Exception occurred during xterm disposal [{}]
2024-10-11 15:06:11.609 [error] Exception occurred during xterm disposal [{}]
@Tyriar
Copy link
Member

Tyriar commented Oct 14, 2024

@meganrogge do you know what causes this status bar item to appear? I can't find it searching the main repo for that string.

@Tyriar
Copy link
Member

Tyriar commented Oct 14, 2024

@roblourens any ideas what could be adding this? Some extension?

@Tyriar Tyriar added the info-needed Issue requires more information from poster label Oct 14, 2024
@meganrogge
Copy link

this is coming from python, I see it pretty often too.

@meganrogge meganrogge assigned karthiknadig and unassigned Tyriar and meganrogge Oct 14, 2024
@meganrogge meganrogge removed the info-needed Issue requires more information from poster label Oct 14, 2024
@karthiknadig
Copy link
Member

@roblourens What type of environment are you using? can you enable tracing and share the logs from Output > Python Locator?

@karthiknadig karthiknadig transferred this issue from microsoft/vscode Oct 14, 2024
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 14, 2024
@karthiknadig
Copy link
Member

karthiknadig commented Oct 14, 2024

This was a caching issue. The bug seems to be that we don't re-set extension selection after we detect that the environment is not usable. Re-setting would force the extension attempt to find environments and select the most relevant one.

Temporary solution: Use the command "Python: clear cache and reload"

@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug area-environments Features relating to handling interpreter environments needs PR Ready to be worked on and removed triage-needed Needs assignment to the proper sub-team labels Oct 14, 2024
@karthiknadig karthiknadig changed the title Reactivating terminals... Stuck in Reactivating terminals... due to cached broken environment Oct 14, 2024
@JarmoHu
Copy link

JarmoHu commented Nov 18, 2024

It might be related to my settings. For example, my old setting had "python.defaultInterpreterPath": "D:\ProgramData\miniconda3\python.exe". However, I later reinstalled Python in a different location, which is probably why this issue happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on
Projects
None yet
Development

No branches or pull requests

5 participants