-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Got error UnauthorizedAccess when extension activating virtual environment #17877
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
I don't know this happens only when using Also, I have developed changes needed for fixing this issue, if this only occurred with |
This is by design. We don't run |
I see... But, if we set the |
By default, PowerShell |
I agree with @afikrim, at least add an option to make this. |
Changed this to a feature request, since this may require a new setting and UI. |
Duplicate of #2559 |
Environment data
python.languageServer
setting: DefaultExpected behaviour
When starting virtual environment on terminal with type 'powershell', execute 'Set-ExecutionPolicy Unrestricted -Scope Process' -> execute '& "c:/path/to/project/venv/Scripts/Activate.ps1"'
Actual behaviour
Only execute '& "c:/path/to/project/venv/Scripts/Activate.ps1"
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: