Skip to content

Unable to load PowerShell #1835

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
toniino38 opened this issue Apr 2, 2019 · 8 comments
Closed

Unable to load PowerShell #1835

toniino38 opened this issue Apr 2, 2019 · 8 comments

Comments

@toniino38
Copy link

toniino38 commented Apr 2, 2019

Hello,

I am facing an issue with PowerShell.

Here my logs (verbose mode) :

02/04/2019 09:19:45 [NORMAL] - Path specified by 'powerShellExePath' setting - '' - not found, reverting to default PowerShell path.
02/04/2019 09:19:45 [NORMAL] - Language server starting --
02/04/2019 09:19:45 [NORMAL] -     args: C:\Users\XXX\.vscode\extensions\ms-vscode.powershell-1.12.0\modules\PowerShellEditorServices\Start-EditorServices.ps1 -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.12.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'C:\Users\XXX\.vscode\extensions\ms-vscode.powershell-1.12.0\modules' -EnableConsoleRepl -LogLevel 'Verbose' -LogPath 'C:\Users\XXX\.vscode\extensions\ms-vscode.powershell-1.12.0\logs\1554189585-9fb7402d-29cb-486d-a08d-f0ba3cdfc77d1554189581112\EditorServices.log' -SessionDetailsPath 'C:\Users\XXX\.vscode\extensions\ms-vscode.powershell-1.12.0\sessions\PSES-VSCode-12272-277559' -FeatureFlags @()
02/04/2019 09:19:45 [NORMAL] -     exe: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
02/04/2019 09:19:47 [NORMAL] - powershell.exe terminated or terminal UI was closed
02/04/2019 09:21:46 [NORMAL] - Language server startup failed.
02/04/2019 09:21:46 [ERROR] - The language service could not be started: 
02/04/2019 09:21:46 [ERROR] - Timed out waiting for session file to appear.

VScode version :

1.32.3
a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4
x64

Extensions :

PSversiontable :

Name                           Value
----                           -----
PSVersion                      5.1.17763.316
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.316
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Thanks a lot !

@toniino38
Copy link
Author

I downgraded on 1.11.0 and everything's working well.
There is a bug with 1.12.0 my colleague is in the same situation.

@SydneyhSmith
Copy link
Collaborator

@toniino38 thanks for reporting this, we are looking into the issue, Is the device you are using, restricted or locked down in anyway, for example with Group Policy?

@TylerLeonhardt
Copy link
Member

To add to @SydneyhSmith's response... could it be an anti virus software? We've gotten similar issues: #1831

@toniino38
Copy link
Author

We have no restrictions by GPO, however we have Bitdefender as antivirus software, I'll tried to get a laptop in the same configuration without antivirus installed to check it.

@toniino38
Copy link
Author

I tried with and without BitDefender on a brand-new laptop and it works. I don't know why the extension doesn't work on our laptops :(

@rjmholt
Copy link
Contributor

rjmholt commented Apr 3, 2019

Looks like #1831, which has had a fix merged and will be in the next release.

Deduplicating this issue to #1831. If it turns out to be a different problem, we can reopen.

@rjmholt rjmholt closed this as completed Apr 3, 2019
@hvCoder2k18
Copy link

I also had a similar issue last week. Besides, run selection would also not work.

To resolve this, I tried reinstalling vscode, reinstalling powershell extension in vain.

Finally, went into the powershell extension settings and found the path for powershell.powerShellExePath to be empty. Once I defined a path to powershell.exe there everything started working again

image

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Nov 27, 2019
@TylerLeonhardt
Copy link
Member

@hvCoder2k18 thanks!

That issue should be fixed in the next preview as we are removing that setting for something better.

@TylerLeonhardt TylerLeonhardt removed the Needs: Maintainer Attention Maintainer attention needed! label Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants