Open gberrante opened 2 months ago
I have the same problem, I'm using as default terminal Powershell 7(pwsh) in VS Code
Same here. Powershell 7
Same story ;( need to change execution policy
Hi all, I rely on community contributions for Windows support as I'm not a Windows user myself. I'd appreciate any pointers towards how to address this and please feel free to open a PR.
Edit: maybe somebody can tell me whether this approach is appropriate and whether it fixes the issue: https://stackoverflow.com/a/67420296/888916
Edit: maybe somebody can tell me whether this approach is appropriate and whether it fixes the issue: https://stackoverflow.com/a/67420296/888916
That did not work for me, but this did: https://www.donovanbrown.com/post/Using-PowerShell-in-VS-Code. I'm not familiar with PowerShell either, so I'm not sure how one would fix the extension itself. But hopefully that workaround works for others, like myself, coming from google.
That did not work for me, but this did: donovanbrown.com/post/Using-PowerShell-in-VS-Code. I'm not familiar with PowerShell either, so I'm not sure how one would fix the extension itself. But hopefully that workaround works for others, like myself, coming from google.
If I am not mistaken, this wont sadly fix the issue at hand. It's a workaround to get it to work, but not a permanent solution sadly :/
The most obvious solution is just to sign the Powershell script, even tho I have never done that myself
Its too expensive to sign it, I will try and put together a PR to maybe address this
I tried similar steps to @gberrante using these PowerShell docs to no avail. I can run the flight_check.ps1
script directly in PowerShell (Windows Terminal - Admin mode) and PowerShell in VSCode (non-admin mode) with the relevant Execution Policy set to undefined
What worked for me was to change the execution policy of the default Windows Powershell, instead of the Powershell 7.
Sadly these are all just bandaid fixes for a bigger problem. If someone wanted to use this extension on a company PC that restricts their PowerShell execution policy, that would make this extension unusable :/
This is still an issue for me after I set the execution policy. My user name has a space character so when the flight_check.ps1 runs, it gets the incorrect path.
Hello, on windows i get this error relative to the execution policy of the extension powershell scripts. I can run them indivisually from the external terminal.
Current Policy on my WIndows: Scope ExecutionPolicy
MachinePolicy Undefined UserPolicy Undefined Process Bypass CurrentUser Bypass LocalMachine Bypass