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
When starting EditorServices for PowerShell. Here's the error message:
PowerShell Extension v2023.6.0
Copyright (c) Microsoft Corporation.
https://aka.ms/vscode-powershell
Type 'help' to get help.
Exception encountered starting EditorServices. Exception logged in D:\a\_work\1\s\src\PowerShellEditorServices.Hosting\Commands\StartEditorServicesCommand.cs on line 236 in EndProcessing:
System.MissingMethodException: Méthode introuvable : '!0 OmniSharp.Extensions.JsonRpc.JsonRpcOptionsRegistryBase`1.WithServices(System.Action`1<Microsoft.Extensions.DependencyInjection.IServiceCollection>)'.
à Microsoft.PowerShell.EditorServices.Server.PsesLanguageServer.<StartAsync>b__14_0(LanguageServerOptions options)
à OmniSharp.Extensions.LanguageServer.Server.LanguageServer.From(Action`1 optionsAction, IServiceProvider outerServiceProvider, CancellationToken cancellationToken)
à Microsoft.PowerShell.EditorServices.Server.PsesLanguageServer.<StartAsync>d__14.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à Microsoft.PowerShell.EditorServices.Hosting.EditorServicesRunner.<CreateEditorServicesAndRunUntilShutdown>d__9.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à Microsoft.PowerShell.EditorServices.Commands.StartEditorServicesCommand.EndProcessing()
VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z)
OS version: Windows_NT x64 10.0.19044
Modes:
System Info
Item
Value
CPUs
Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz (8 x 2112)
Thanks @gabfv for opening this issue, sorry that you are hitting this... it looks like an issue with the GAC which happens on Windows PowerShell 5.1, the workaround is to use PowerShell 7...it is a duplicate of #2538
Thanks for the follow-up! I'll close this issue since this is a duplicate and I'll try pushing for PowerShell 7 in my org (we don't have admin rights for a proper install). I've tried the zip installation method for PS7 and the extension works with it.
@gabfv for what it's worth, I believe v2024.5.1-preview of the extension fixes this as we removed the conflicting Serilog dependency entirely, so there should be fewer (though not zero) potential conflicts with the GAC when using PowerShell 5.1.
Prerequisites
Summary
Type: Bug
When starting EditorServices for PowerShell. Here's the error message:
VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z)
OS version: Windows_NT x64 10.0.19044
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (18)
A/B Experiments
PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
Visuals
Logs
The text was updated successfully, but these errors were encountered: