-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Incorrect file is sourced when terminal activates virtual env #7111
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
Hi @thernstig, I don't have access to fish shell at the moment. I will be getting back to you shortly. |
Unfortunately I am not able to reproduce this flaky behavior. For me it always uses If you can give me a reproducible case, I'll happy to work on this. Do you face the same issue @falkben? Can you please give a reproducible case as well. |
@karrtikr I have not seen this behavior in 2 weeks now. I will keep monitoring and when it happens, really try to think of exactly what I did. Could it potentially be that the VS Code code-base itself (the terminal parts (xterm)) could have fixed this somehow? In any case, I will keep trying to look for it and promise to come back if I found it, and if I do not within 2 weeks I think we can close this. At least the issue is documented and can be re-opened if someone else sees it. |
I'm not seeing this now either. I feel like it's happened within the last 2 weeks though. Will also report back if I see it happen again. |
Alright, maybe a VSCode thing. I am closing this for now, if the issue re-occurs I'll be happy to reopen and work on it. |
Got the error on Windows WSL (ubuntu) this time on vscode standard, not insiders:
If I close the terminal and reopen, it activates without error. This seems to only happen when I first start vscode with the terminal closed and a python file open in the editor. When I open the terminal, for the first time, it tries to activate the virtual environment but I get that error. Repeatable. |
I was able to reproduce this by launch a debug session (for current Pytho file). It opens the terminal "slowly" and thus the problem happens. It is some race condition I'd wager that happens when the terminal is slow to open. |
@falkben I am able to confirm this, but this not reproducible in insiders anymore (which carries the latest version). Which means it should be fixed in the latest version of vscode. @thernstig Thanks for reporting, but that's a separate issue. It's being tracked here. #4203 #5664. Terminal issues in general are tracked here #4568. Should be fixed soon enough. The issues seems to be addressed in the latest version, so closing this, thanks for reporting again! |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): language serverExpected behaviour
Welcome to fish, the friendly interactive shell $ source /home/username/projectA/.venv/bin/activate.fish $
Actual behaviour
Steps to reproduce:
The text was updated successfully, but these errors were encountered: