You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Karthik Nadig (@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:
Bash
CMD
Fish
Nu
PowerShell
Python(?)
Kartik Raj (@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.
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.
Activity
ehawman commentedon Jun 24, 2022
Karthik Nadig (@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.
See #8341 and #8575
It looks like virtualenv creates activation scripts for:
Kartik Raj (@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?
karthiknadig commentedon Jun 27, 2022
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.
phiresky commentedon Jul 12, 2022
For me (on Linux) it pastes the path of bash activation script (.venv/bin/activate) into nushell but doesn't actually execute it
brettcannon commentedon Aug 25, 2022
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.
flying-sheep commentedon Jan 6, 2023
Should be pretty easy:
Bashclass and rename the copy toNushell:vscode-python/src/client/common/terminal/environmentActivationProviders/bash.ts
Lines 37 to 51 in 3698950
activate.nu[`overlay activate ${scriptFile.fileToCommandArgument()}`]private readonly nushelllike here:vscode-python/src/client/common/terminal/helper.ts
Lines 37 to 39 in 3698950
vscode-python/src/client/common/terminal/helper.ts
Line 74 in 3698950
karrtikr commentedon Mar 13, 2023
FYI we do not support detecting
Nushellas well, so in addition to the above a support will need to be added here:vscode-python/src/client/common/terminal/shellDetectors/baseShellDetector.ts
Lines 35 to 47 in 5dac08c
[-]Add support of Nushell[/-]Add nushell support to venv activation (#20842)
karrtikr commentedon Mar 31, 2023
Fix should be out in the pre-release version of the extension in a day, use the following to try it out:
flying-sheep commentedon Apr 3, 2023
Great! I did that, opened a Python project, and it worked!
Merged PR posit-dev/positron-python#87: Merge latest upstream after R…
Merged PR posit-dev/positron-python#87: Merge latest upstream after R…