-
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
Support "terminal.integrated.automationShell" for environment activation #8575
Comments
Duplicate of #8341 (which has a workaround for this problem). |
Hey, could you perhaps point out the workaround? In your "Actual behaviour" section, you can see that the first thing that's run is Also, (take this with a grain of salt, I'm new to fish) it kind of appears that you have a misconfigured fish problem? I had a similar issue when I tried to get virtualfish (a virtualenv wrapper for fish) to work, and I ended up removing my fish configs and reinstalling it to get normal virtualenv to work. |
@TinyAtoms Sorry! You're right, I misread your issue and didn't pick up on the "automationShell" part. I have reopened this as a feature request to support "editor.integrated.automationShell" for environment activation. As for the config issue, if I you can find something wrong in https://github.com/brettcannon/dotconfig/tree/master/fish then please let me know, otherwise the I have had has bit enough people that I think it might be a subtle problem (it's even been reported to virtualenv with no solution yet). |
Hmmm, I see nothing wrong (with my untrained eye) with your fish configs. |
Latest fish and I'm using venv, not virtualenv (mainly because it's better integrated and I can fish things in the stdlib 😁 ). |
Hmm, I just tried it (never hear of venv before), but it works fine for me https://i.imgur.com/gsoxznP.png in plain terminal |
Is this issue still happening with the latest version of the extension? We use VSCode API to detect the currently opened shell, which potentially could take care of this setting automatically. |
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. |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): whatever the default isExpected behaviour
When fish is the integrated automation shell, the following should be run to activate an environment:
source <python.venvpath>/bin/activate.fish
Actual behaviour
When opening up a new terminal, or when trying to debug, the following gets run:
source <python.venvpath>/bin/activate
which is for bash shells. This doesn't activate the environment.
Steps to reproduce:
"terminal.integrated.automationShell.linux": "fish",
source <python.venvpath>/bin/activate
, which is for bash/zsh/dash, and will fail for fish and zshLogs
Not sure what logs would be useful, but here's an example when I try to debug a script
^ that's just fish complaining because fish scripts have different syntax compared to bash, I think.
The text was updated successfully, but these errors were encountered: