Skip to content

PowerShell Extension 2020.4.0 Crashes VS Code during load #2638

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

Closed
tonsanchez opened this issue Apr 17, 2020 · 9 comments
Closed

PowerShell Extension 2020.4.0 Crashes VS Code during load #2638

tonsanchez opened this issue Apr 17, 2020 · 9 comments
Labels
Resolution-Duplicate Will close automatically.

Comments

@tonsanchez
Copy link

System Details

  1. Windows 10, 1903
  2. VS Code v1.44.1 (System Setup)
  3. PowerShell Extension v2020.4.0
  4. Symantec Endpoint Protection 14.2.5323.2000
  5. $PSVersionTable
PSVersion 5.1.18362.628
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.628
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Issue Description

Fresh installed everything, right after launching VS Code and searched for PowerShell in Marketplace. Installing it crashes VS Code (I needed to force it to close and manually deleting the extension folder in %userprofile%.vscode to be able to launch VS Code properly).

Logs

4/17/2020 3:25:06 PM [NORMAL] - powershell.exe started.
4/17/2020 3:25:06 PM [NORMAL] - Waiting for session file
4/17/2020 3:27:06 PM [NORMAL] - Error occurred retrieving session file:
Timed out waiting for session file to appear.
4/17/2020 3:27:06 PM [NORMAL] - Language server startup failed.
4/17/2020 3:27:06 PM [ERROR] - The language service could not be started: 
4/17/2020 3:27:06 PM [ERROR] - Timed out waiting for session file to appear.
@ghost ghost added the Needs: Triage Maintainer attention needed! label Apr 17, 2020
@EdCallahan
Copy link

Similar problem here: #2526 (comment)

@tonsanchez
Copy link
Author

FWIW, I had the same set installed on my personal rig WITHOUT Symantec Endpoint Protection (Same Windows version, same VS Code and PowerShell extension version) and I did not encounter the issue. This is only happening on PowerShell extension, as other extensions I installed (e.g. C/C++ and Python) worked just fine with my workstation laptop.

@EdCallahan
Copy link

EdCallahan commented Apr 20, 2020

What if you try and start with PowerShell 5.1 x86 @tonsanchez? To do that on my computer I can edit "$env:AppData\Code\User\settings.json" and set the default powershell version with:

"powershell.powerShellDefaultVersion": "Windows PowerShell (x86)"

I run with very little delay running x86, and even faster with PowerShell 7.0. The crippling delay is only from PowerShell 5.1 x64 on my boxes.

@TylerLeonhardt
Copy link
Member

@tonsanchez if Symantec has any sort of logs that you can retrieve, that would be greatly appreciated. There's something we ship/do that it and other AVs don't like and I wanna know what it is.

@tonsanchez
Copy link
Author

tonsanchez commented Apr 21, 2020

What if you try and start with PowerShell 5.1 x86 @tonsanchez? Do do that on my computer I can edit "$env:AppData\Code\User\settings.json" and set the default powershell version with:

"powershell.powerShellDefaultVersion": "Windows PowerShell (x86)"

I run with very little delay running x86, and even faster with PowerShell 7.0. The crippling delay is only from PowerShell 5.1 x64 on my boxes.

I tried this and Visual Studio Code was able to load the extension.

@tonsanchez if Symantec has any sort of logs that you can retrieve, that would be greatly appreciated. There's something we ship/do that it and other AVs don't like and I wanna know what it is.

I tried doing the same process (prior to the above workaround) to trigger any log entries in SEP, but no luck - as I have limited privileges on my workstation.

@EdCallahan
Copy link

EdCallahan commented Apr 21, 2020

@tonsanchez it sounds like our problems are probably the same. Are you running Avecto/BeyondTrust on the workstation you are having problems with? I'm wondering if the problem doesn't lay there.

Here's another case of this problem with someone running Avecto: #2066

@SydneyhSmith
Copy link
Collaborator

Thanks everyone I am going mark this as a duplicate of #2526

@SydneyhSmith SydneyhSmith added Resolution-Duplicate Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Apr 21, 2020
@tonsanchez
Copy link
Author

@tonsanchez it sounds like our problems are probably the same. Are you running Avecto/BeyondTrust on the workstation you are having problems with? I'm wondering if the problem doesn't lay there.

Here's another case of this problem with someone running Avecto: #2066

That's right. My workstation laptop is also running Avecto/BeyondTrust.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Apr 22, 2020
@TylerLeonhardt TylerLeonhardt removed the Needs: Maintainer Attention Maintainer attention needed! label Apr 22, 2020
@ghost
Copy link

ghost commented Apr 23, 2020

This issue has been marked as duplicate and has not had any activity for 1 day. It has been closed for housekeeping purposes.

@ghost ghost closed this as completed Apr 23, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

4 participants