-
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
Add support of Nushell to venv activation #19359
Comments
@karthiknadig thank you! I was just scouring the issue list to see if a request existed. I vaguely recalled seeing one but I think that was for a different shell. It looks like virtualenv creates activation scripts for:
@karrtikr mentioned using VSCode API to detect shells in this post. Is it possible to expand the scope of this feature request to a general "support all shells supported by virtualenv", and gracefully tell the user that their shell isn't supported if it isn't? |
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue. |
For me (on Linux) it pastes the path of bash activation script (.venv/bin/activate) into nushell but doesn't actually execute it |
Thank you to everyone who upvoted this issue! Since the community showed interest in this feature request we will leave this issue open as something to consider implementing at some point in the future. We do encourage people to continue 👍 the first/opening comment as it helps us prioritize our work based on what the community seems to want the most. |
Should be pretty easy:
|
FYI we do not support detecting vscode-python/src/client/common/terminal/shellDetectors/baseShellDetector.ts Lines 35 to 47 in 5dac08c
|
Fixes #19359 --------- Co-authored-by: Kartik Raj <karraj@microsoft.com>
Great! I did that, opened a Python project, and it worked! |
I'm experiencing something similar. With Nushell, a new terminal instance tries to activate the selected venv with
& c:/Users/ehawman/Documents/Programming/Python/PA-FindReplace/.venv/Scripts/Activate.ps1
The correct command here should be
source c:/Users/ehawman/Documents/Programming/Python/PA-FindReplace/.venv/Scripts/activate.nu
Weirdly, when actually using pwsh it truncates the activation command:
sers/ehawman/Documents/Programming/Python/PA-FindReplace/.venv/Scripts/Activate.ps1
, causing it to fail.Do you think this falls under the same umbrella or should I start a new issue?
Originally posted by @ehawman in #19285 (comment)
The text was updated successfully, but these errors were encountered: