-
Notifications
You must be signed in to change notification settings - Fork 317
Closed
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues, especially the pinned issues.
Exception report
Every time I open Visual Studio Code I have the following error message in the PowerShell 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: Méthode introuvable : 'Microsoft.Extensions.Logging.ILoggerFactory Serilog.SerilogLoggerFactoryExtensions.AddSerilog(Microsoft.Extensions.Logging.ILoggerFactory, Serilog.ILogger, Boolean)'.
à Microsoft.PowerShell.EditorServices.Hosting.EditorServicesServerFactory.Create(String logDirectoryPath, Int32 minimumLogLevel, IObservable`1 hostLogger)
à Microsoft.PowerShell.EditorServices.Hosting.EditorServicesRunner..ctor(HostLogger logger, EditorServicesConfig config, ISessionFileWriter sessionFileWriter, IReadOnlyCollection`1 loggersToUnsubscribe)
à Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.LoadAndRunEditorServicesAsync()
à Microsoft.PowerShell.EditorServices.Commands.StartEditorServicesCommand.EndProcessing()
== Press any key to close terminal ==
"
I reinstalled both Visual Studio Code and the PowerShell module
Here are the environment info :
Version : 1.95.1 (user setup)
Validation : 65edc4939843c90c34d61f4ce11704f09d3e5cb6
Date : 2024-10-31T05:14:54.222Z
Electron : 32.2.1
ElectronBuildId : 10427718
Chromium : 128.0.6613.186
Node.js : 20.18.0
V8 : 12.8.374.38-electron.0
Système d’exploitation : Windows_NT x64 10.0.19045Screenshot
Environment data
PS Version: 5.1.19041.5007
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.4522 (WinBuild.160101.0800)
BufferWidth: 226
BufferHeight: 34Steps to reproduce
Visual Studio launches PowerShell terminal
Expected behavior
I don't understand.... Expected behavior is not to have an error message I guess ?
Actual behavior
Shows the error message above
Metadata
Metadata
Assignees
Labels
No labels
