Skip to content
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

Terminal error when starting VS Code from zip on Windows #157083

Closed
alexr00 opened this issue Aug 4, 2022 · 3 comments
Closed

Terminal error when starting VS Code from zip on Windows #157083

alexr00 opened this issue Aug 4, 2022 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release install-update VS Code installation and upgrade system issues terminal-shell-integration Shell integration, command decorations, etc. verified Verification succeeded windows VS Code on Windows issues

Comments

@alexr00
Copy link
Member

alexr00 commented Aug 4, 2022

  1. Download zip of VS Code 1.70 to your Downloads folder on Windows.
  2. Unzip into the default location (Downloads folder) and run Code.exe
  3. See the following error in the terminal:
.: File C:\Users\alros\Downloads\VSCode-win32-x64-1.70.0\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1 canno
t be loaded. The file C:\Users\alros\Downloads\VSCode-win32-x64-1.70.0\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegra
tion.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execut
ion policy, see about_Execution_Policies at https://go.microsoft.com/fwlink/?LinkID=135170.

image

@Tyriar Tyriar added this to the July 2022 Recovery milestone Aug 4, 2022
@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug install-update VS Code installation and upgrade system issues candidate Issue identified as probable candidate for fixing in the next release windows VS Code on Windows issues terminal-shell-integration Shell integration, command decorations, etc. labels Aug 4, 2022
@Jordan-Haidee
Copy link

Me, too...

@Jordan-Haidee
Copy link

  • They seem to have forgotten to sign a new ps1 script added in this version update, which beautifies the integrated terminal.
  • You have to modify the 'ExecutionPolicy' from 'RemoteSigned' to 'Bypass' if you don't want to see this error message.
    • The powershell code is Set-ExecutionPolicy Bypass

@Tyriar
Copy link
Member

Tyriar commented Aug 5, 2022

@TylerLeonhardt any idea how to sign the file properly? It's included in our signing job but Get-AuthenticodeSignature results in:

image

This issue only affects the zip install as it's treated as a potentially unsafe file downloaded from the internet. In the meantime I'm going to add a try catch which is good to have anyway (though it could hide problems when partially activated).

Tyriar added a commit that referenced this issue Aug 5, 2022
Tyriar added a commit that referenced this issue Aug 5, 2022
Tyriar added a commit that referenced this issue Aug 5, 2022
Tyriar added a commit that referenced this issue Aug 5, 2022
@Tyriar Tyriar closed this as completed Aug 8, 2022
@rzhao271 rzhao271 added the verified Verification succeeded label Aug 9, 2022
joyceerhl pushed a commit that referenced this issue Aug 10, 2022
joyceerhl pushed a commit that referenced this issue Aug 10, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release install-update VS Code installation and upgrade system issues terminal-shell-integration Shell integration, command decorations, etc. verified Verification succeeded windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

5 participants