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.

Initialisation Error - Windows 10, new install of code and extension

See original GitHub issue

The extension fails to load the console. It takes a while before it times out with an initialisation error. The logs just show…

05/04/2019 07:46:50 [NORMAL] - Visual Studio Code v1.33.0 64-bit
05/04/2019 07:46:50 [NORMAL] - PowerShell Extension v1.12.0
05/04/2019 07:46:50 [NORMAL] - Operating System: Windows 64-bit
05/04/2019 07:46:50 [NORMAL] - Language server starting --
05/04/2019 07:46:50 [NORMAL] -     exe: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
05/04/2019 07:46:50 [NORMAL] -     args: C:\Users\ME\.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\ME\.vscode\extensions\ms-vscode.powershell-1.12.0\modules' -EnableConsoleRepl -LogLevel 'Normal' -LogPath 'C:\Users\ME\.vscode\extensions\ms-vscode.powershell-1.12.0\logs\1554446810-5aaeda74-9b5e-4ab8-bf2c-7c6a614b098a1554446804466\EditorServices.log' -SessionDetailsPath 'C:\Users\ME\.vscode\extensions\ms-vscode.powershell-1.12.0\sessions\PSES-VSCode-1292-974954' -FeatureFlags @()
05/04/2019 07:46:53 [NORMAL] - powershell.exe started, pid: 11356
05/04/2019 07:46:54 [NORMAL] - powershell.exe terminated or terminal UI was closed
05/04/2019 07:48:51 [NORMAL] - Language server startup failed.
05/04/2019 07:48:51 [ERROR] - The language service could not be started: 
05/04/2019 07:48:51 [ERROR] - Timed out waiting for session file to appear.

I can see people have had this issue in the past but they appear to be fixed on releases. This is a fresh install of Windows 10 along with Code and the extension. This is a company laptop though on Azure AD so something tells me they might have changed something.

PowerShell 6 will open fine. Execution policy is RemoteSigned

Tried the preview extension but also fails.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
TylerLeonhardtcommented, Apr 11, 2019

@SwarfegaGit do you use an anti virus? We’ve received a lot of reports in the last version that antivirus has been getting in the way of PowerShell Editor Services starting up in the background.

We have a fix that is pending a new release.

0reactions
TylerLeonhardtcommented, Apr 12, 2019

I will dupe this to https://github.com/PowerShell/vscode-powershell/issues/1831. We’ve already got a report that says the fix worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to initialize extension - Visual Studio Feedback
My extension package references a Microsoft.VisualStudio.TextTemplating.VSHost.15.0.dll. The BindingRedirect to this assembly in devenv.exe.config file is ...
Read more >
Windows Installer Error Messages (for Developers)
Message codes, message text, and remarks for Windows Installer error messages. Errors include ship errors, internal errors, and errors ...
Read more >
Application installation common error codes reference
Run the install from the new windows with the installation command line. For example, msiexec /i "My App.msi" /q would be a quiet...
Read more >
Get help with Windows upgrade and installation errors
See some of the most common upgrade and installation errors for Windows 10 and Windows 11, and what you can do to try...
Read more >
Stop error or blue screen error troubleshooting - Windows Client
Learn advanced options for troubleshooting stop errors, also known as blue screen errors or bug check errors.
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