You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drag and drop an empty file with the name "xxx.ps1" into VS Code with the above referred PowerShell extension from Microsoft
Visuals
No response
Logs
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, IObservable1 hostLogger) at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesRunner..ctor(HostLogger logger, EditorServicesConfig config, ISessionFileWriter sessionFileWriter, IReadOnlyCollection1 loggersToUnsubscribe)
at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.LoadAndRunEditorServicesAsync()
at Microsoft.PowerShell.EditorServices.Commands.StartEditorServicesCommand.EndProcessing()
11/30/2024 7:43:16 AM [NORMAL] - Visual Studio Code: v1.95.3 64-bit on Windows 64-bit
11/30/2024 7:43:16 AM [NORMAL] - PowerShell Extension: v2024.4.0
Thanks for the report! Try the latest extension preview, we have removed serilog which causes these conflicts. If you also use PowerShell 7, that should resolve the issue as well.
Prerequisites
Summary
I get this error message when I open an empty file named xxx.ps1 in VSCode.
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
drag and drop an empty file with the name "xxx.ps1" into VS Code with the above referred PowerShell extension from Microsoft
Visuals
No response
Logs
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()
11/30/2024 7:43:16 AM [NORMAL] - Visual Studio Code: v1.95.3 64-bit on Windows 64-bit
11/30/2024 7:43:16 AM [NORMAL] - PowerShell Extension: v2024.4.0
11/30/2024 7:43:16 AM [NORMAL] - Starting 'Windows PowerShell (x86)' at: C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
11/30/2024 7:43:16 AM [NORMAL] - PowerShell process started with PID: 15696
11/30/2024 7:43:33 AM [WARNING] - PowerShell process terminated or Extension Terminal was closed, PID: 15696
11/30/2024 7:43:33 AM [ERROR] - Extension Terminal is undefined.
11/30/2024 7:43:33 AM [ERROR] - PowerShell Language Server process didn't start!
The text was updated successfully, but these errors were encountered: