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

PowerShell Language Server process didn't start! #5125

Closed
1 of 6 tasks
DParthiban-XOM opened this issue Jan 13, 2025 · 4 comments
Closed
1 of 6 tasks

PowerShell Language Server process didn't start! #5125

DParthiban-XOM opened this issue Jan 13, 2025 · 4 comments
Labels
Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed!

Comments

@DParthiban-XOM
Copy link

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

Cannot open PowerShell ext. after recent updates of extensions, including SQL PowerShell Language Server process didn't start!

PowerShell Version

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

Visual Studio Code Version

1.96.2
x64

Extension Version

ms-vscode.powershell@2024.4.0

Steps to Reproduce

Just open a VSC to edit a PS script

Visuals

No response

Logs

No response

@DParthiban-XOM DParthiban-XOM added Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed! labels Jan 13, 2025
@ThubLives
Copy link

ThubLives commented Jan 13, 2025

I am having the same issue. Everything looks the same as the original report (e.g. Windows PowerShell 5.1, extension version 2024.4.0, etc.), but I've updated to vscode 1.96.3 and the problem is still happening.

More background:
Initially, the language server seemed to be timing out, but since I tried to uninstall and re-install the PowerShell extension it now immediately reports that the language server process didn't start.

vscode-powershell.log

I've also tested with PowerShell 7.3.4 and 7.4.6 and they behaved the same way.

@ThubLives
Copy link

I found this in the default terminal:

Exception encountered starting EditorServices. Exception logged in C:\__w\1\s\src\PowerShellEditorServices.Hosting\Commands\StartEditorServicesCommand.cs on line 239 in EndProcessing:
System.MissingMethodException: Method not found: 'Microsoft.Extensions.Logging.ILoggerFactory Serilog.SerilogLoggerFactoryExtensions.AddSerilog(Microsoft.Extensions.Logging.ILoggerFactory, Serilog.ILogger, Boolean)'.
   at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesServerFactory.Create(String logDirectoryPath, Int32 minimumLogLevel, IObservable`1 hostLogger)
   at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesRunner..ctor(HostLogger logger, EditorServicesConfig config, ISessionFileWriter sessionFileWriter, IReadOnlyCollection`1 loggersToUnsubscribe)
   at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.LoadAndRunEditorServicesAsync()
   at Microsoft.PowerShell.EditorServices.Commands.StartEditorServicesCommand.EndProcessing()

@andyleejordan
Copy link
Member

Hi, please try the pre-release version of the extension. We removed Serilog as a dependency because of the frequency in which it has conflicts (like you're seeing here). Let me know if that works for you!

@JustinGrote
Copy link
Collaborator

Closing as dupe of #5084 for housekeeping, feel free to update there if you are still having problems after using the latest prerelease.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed!
Projects
None yet
Development

No branches or pull requests

4 participants