question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to load PowerShell

See original GitHub issue

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 :

fatihacet.gitlab-workflow@2.0.1
ms-mssql.mssql@1.5.0
ms-vscode.powershell@1.12.0
shakram02.bash-beautify@0.1.1

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 !

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
toniino38commented, Apr 2, 2019

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.

0reactions
TylerLeonhardtcommented, Nov 27, 2019

@hvCoder2k18 thanks!

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix for PowerShell Script cannot be loaded because ...
Open PowerShell Console by selecting “Run as Administrator” and get the execution Policy with the command: Get-ExecutionPolicy to get the ...
Read more >
PowerShell module cannot be loaded? Try these simple fixes
PowerShell module cannot be loaded? Try these simple fixes ; 1. Set Execution Policy to Unrestricted.
Read more >
Powershell error: Could not load file or assembly
I'm trying to install a solution from github and I get the error: Import-Module : Could not load file or assembly.
Read more >
PowerShell runtime exception - "could not load file or ...
The file may be blocked from being loaded because of its origin (stored in NTFS streams). Check properties and see if the little...
Read more >
When I upgrade to Powershell 7.0.0 I'm unable to load ...
Make sure you are able to repro it on the [latest released version]: 7.0.0 Search the existing issues. Refer to the FAQ.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found