-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Incorrect PATH in integrated terminal #69954
Comments
It seems it happens in |
It sounds like the VSCode instance is running Can you try and change your MacOS default shell to be Please note that the path to the An alternative solution is to create a common shell startup script that you can source from both |
That fixes it. That's kind of weird because I used I had the lines in both |
Okay, it happens again after a reboot on both shells. |
When VS Code is launched from finder on mac VS Code runs When you launch the terminal that will again run your terminal start up scripts (which ones depend on the value in |
The issue here is that it completely mangles the ability of I'm not sure what you mean by "idempotent". |
@Tyriar this doesn't only happen on MacOs. It happens on Linux as well. I wouldn't mind providing more information if I know what you need. This behavior only started recently. |
Neither would I. I'd love to help debug. |
Maybe this is unrelated to my switch to ZSH, because as I stated, it happens on bash as well, with the old configuration. It probably just was a coincidence that it happened at the same time.
When I say "shell" I mean a different terminal emulator. |
@hameerabbasi Just noticed that when I set the integrated terminal to bash it seems to work. Would you mind trying this? Maybe we can narrow down what is going on:
|
The path |
@Tyriar I seem to may have found the issue for Fish Shell (3.0.1). Whatever I set the cwd to, it will always go to my home directory: Using:
If I switch to bash, the shell navigates properly on new terminals. |
This happens for me in bash as well...
|
That's really odd @hameerabbasi I have confirmed that, for me, downgrading to Fish version 3.0.0 resolves my issues. So this is most likely a bug in Fish 3.0.1-1. However, I find it odd that your bash does the same thing. Maybe this is due to having a different bash version? I'm running 5.0.0(1)-release. None the less, it's an odd behavior Maybe try again, but this time using /bin/sh ? |
Hmm, I'm not sure... The |
Something else is going on here that I don't understand, maybe some cache was poisoned or something. What I did was:
|
Reported at conda/conda#8414. |
Ideally, it'd be nice to only spawn the shell once, not twice. Is this possible? For the meanwhile, I solved this by doing adding this to my prefs:
|
/duplicate #70248 |
Steps to Reproduce:
Set
.zshrc
to (substitute your Anaconda path):echo $PATH
.You get (example)
The upshot of this is that we cannot use the conda-installed Python within zsh in the integrated terminal. I've reported it here because the Python extension is disabled, just the integrated terminal.
Does this issue occur when all extensions are disabled?: Yes/
NoThe text was updated successfully, but these errors were encountered: