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.

Exception encountered starting EditorServices (DryIoc has waited for the creation of the scoped)

See original GitHub issue

hello,

With reference to _Originally posted by @anankee26 in https://github.com/PowerShell/vscode-powershell/issues/3297#issuecomment-857624566_

Powershell Windows terminal 5.1 doesn’t start in vscode but ok with PS 7.1

Version : 1.58.1 (user setup)
Commit : 2aeda6b18e13c4f4f9edf6667158a6b8d408874b
Date : 2021-07-13T06:58:28.115Z
Electron : 12.0.13
Chrome : 89.0.4389.128
Node.js : 14.16.0
V8 : 8.9.255.25-electron.0
OS : Windows_NT x64 10.0.17763

with the powershell add-on in 2021.6.2

This message that appears in the terminal at startup:

=====> PowerShell Integrated Console v2021.6.2 <=====

Exception encountered starting EditorServices. Exception logged in D:\a\1\s\src\PowerShellEditorServices.Hosting\Commands\StartEditorServicesCommand.cs on line 246 in EndProcessing:
System.AggregateException: An error occurred while writing to logger(s). ---> DryIoc.ContainerException: code: Error.WaitForScopedServiceIsCreatedTimeoutExpired;
message: DryIoc has waited for the creation of the scoped (or singleton) service by 'other party' for the 5000 ticks without the completion. 
It means that either the 'other party' is the parallel thread which has started (!) but unable to finish the creation of the service in the provided amount of time. 
Or more likely the 'other party' is the same thread and there is an undetected recursive dependency or 
the scoped service creation is failed with the exception and the exception was catched (!) but you are trying to resolve the failed service again. 
For all those reasons DryIoc has a timeout to prevent the infinite waiting. 
You may change the default timeout via `Scope.WaitForScopedServiceIsCreatedTimeoutTicks=NewValue`
   à DryIoc.Throw.It(Int32 error, Object arg0, Object arg1, Object arg2, Object arg3)
   à DryIoc.Scope.WaitForItemIsSet(ImMapEntry`1 itemRef)
   à DryIoc.Factory.GetExpressionOrDefault(Request request)
   à DryIoc.Container.ResolveAndCacheKeyed(Int32 serviceTypeHash, Type serviceType, Object serviceKey, IfUnresolved ifUnresolved, Object scopeName, Type requiredServiceType, Request preResolveParent, Object[] args)
   à DryIoc.Container.DryIoc.IResolver.Resolve(Type serviceType, Object serviceKey, IfUnresolved ifUnresolved, Type requiredServiceType, Request preResolveParent, Object[] args)
   à DryIoc.Interpreter.InterpretResolveMethod(IResolverContext resolver, IList`1 callArgs, Object paramExprs, Object paramValues, ParentLambdaArgs parentArgs, Boolean useFec, Object& result)
   à DryIoc.Interpreter.TryInterpretMethodCall(IResolverContext r, Expression expr, Object paramExprs, Object paramValues, ParentLambdaArgs parentArgs, Boolean useFec, Object& result)
   à DryIoc.Interpreter.TryInterpret(IResolverContext r, Expression expr, Object paramExprs, Object paramValues, ParentLambdaArgs parentArgs, Boolean useFec, Object& result)
   à DryIoc.Interpreter.TryInterpretNestedLambdaBodyAndUnwrapException(IResolverContext r, Expression bodyExpr, Object paramExprs, Object paramValues, ParentLambdaArgs parentArgs, Boolean useFec)
   à DryIoc.Interpreter.<>c__DisplayClass3_0.<TryInterpretNestedLambda>b__0()
   à DryIoc.Interpreter.<>c__DisplayClass5_0`1.<ConvertFunc>b__0()
   à System.Lazy`1.CreateValue()
   à System.Lazy`1.LazyInitValue()
   à System.Lazy`1.get_Value()
   à OmniSharp.Extensions.JsonRpc.ResponseRouter.SendNotification[T](String method, T params)
   à OmniSharp.Extensions.JsonRpc.ResponseRouter.SendNotification(IRequest params)
   à OmniSharp.Extensions.LanguageServer.Protocol.LanguageProtocolProxy.SendNotification(IRequest request)
   à OmniSharp.Extensions.LanguageServer.Server.Logging.LanguageServerLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
   à Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state)
   --- Fin de la trace de la pile d'exception interne ---
   à Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
   à Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
   à Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args)
   à OmniSharp.Extensions.JsonRpc.OutputHandler.<.ctor>b__13_3(Exception e)
   à System.Reactive.Linq.ObservableImpl.Do`1.Actions._.OnError(Exception error)
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow(Exception exception)
   à System.Reactive.ExceptionHelpers.Throw(Exception exception)
   à System.Reactive.Stubs.<>c.<.cctor>b__2_1(Exception ex)
   à System.Reactive.AnonymousSafeObserver`1.OnError(Exception error)
   à System.Reactive.Linq.ObservableImpl.Do`1.Actions._.OnError(Exception error)
   à System.Reactive.Sink`2.OnError(Exception error)
   à System.Reactive.Linq.ObservableImpl.ThrowImmediate`1.Run(IObserver`1 observer)
   à System.Reactive.BasicProducer`1.SubscribeRaw(IObserver`1 observer, Boolean enableSafeguard)
   à System.ObservableExtensions.SubscribeSafe[T](IObservable`1 source, IObserver`1 observer)
   à System.Reactive.Sink`2.Run(IObservable`1 source)
   à System.Reactive.Linq.ObservableImpl.Defer`1._.Run()
   à System.Reactive.Linq.ObservableImpl.Defer`1.Run(_ sink)
   à System.Reactive.Producer`2.SubscribeRaw(IObserver`1 observer, Boolean enableSafeguard)
   à System.ObservableExtensions.SubscribeSafe[T](IObservable`1 source, IObserver`1 observer)
   à System.Reactive.Sink`2.Run(IObservable`1 source)
   à System.Reactive.Linq.ObservableImpl.Do`1.Actions.Run(_ sink)
   à System.Reactive.Producer`2.<>c.<SubscribeRaw>b__1_0(ValueTuple`2 tuple)
   à System.Reactive.Concurrency.Scheduler.<>c__75`1.<ScheduleAction>b__75_0(IScheduler _, ValueTuple`2 tuple)
   à System.Reactive.Concurrency.CurrentThreadScheduler.Schedule[TState](TState state, TimeSpan dueTime, Func`3 action)
   à System.Reactive.Concurrency.LocalScheduler.Schedule[TState](TState state, Func`3 action)
   à System.Reactive.Concurrency.Scheduler.ScheduleAction[TState](IScheduler scheduler, TState state, Action`1 action)
   à System.Reactive.Producer`2.SubscribeRaw(IObserver`1 observer, Boolean enableSafeguard)
   à System.Reactive.Producer`2.Subscribe(IObserver`1 observer)
   à System.ObservableExtensions.Subscribe[T](IObservable`1 source)
   à OmniSharp.Extensions.JsonRpc.OutputHandler..ctor(PipeWriter pipeWriter, ISerializer serializer, IEnumerable`1 outputFilters, IScheduler scheduler, ILogger`1 logger, IActivityTracingStrategy activityTracingStrategy)
   à DryIoc.Interpreter.TryInterpretAndUnwrapContainerException(IResolverContext r, Expression expr, Boolean useFec, Object& result)
   à DryIoc.Factory.ApplyReuse(Expression serviceExpr, Request request)
   à DryIoc.Factory.GetExpressionOrDefault(Request request)
   à DryIoc.ReflectionFactory.CreateExpressionOrDefault(Request request)
   à DryIoc.Factory.GetExpressionOrDefault(Request request)
   à DryIoc.ReflectionFactory.CreateExpressionOrDefault(Request request)
   à DryIoc.Factory.GetExpressionOrDefault(Request request)
   à DryIoc.Container.ResolveAndCache(Int32 serviceTypeHash, Type serviceType, IfUnresolved ifUnresolved)
   à DryIoc.Container.DryIoc.IResolver.Resolve(Type serviceType, IfUnresolved ifUnresolved)
   à DryIoc.Resolver.Resolve[TService](IResolver resolver, IfUnresolved ifUnresolved)
   à OmniSharp.Extensions.LanguageServer.Server.LanguageServer.<From>d__37.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.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à 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.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   à 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.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à Microsoft.PowerShell.EditorServices.Commands.StartEditorServicesCommand.EndProcessing()
---> (Exception interne #0) DryIoc.ContainerException: code: Error.WaitForScopedServiceIsCreatedTimeoutExpired;
message: DryIoc has waited for the creation of the scoped (or singleton) service by 'other party' for the 5000 ticks without the completion. 
It means that either the 'other party' is the parallel thread which has started (!) but unable to finish the creation of the service in the provided amount of time. 
Or more likely the 'other party' is the same thread and there is an undetected recursive dependency or 
the scoped service creation is failed with the exception and the exception was catched (!) but you are trying to resolve the failed service again. 
For all those reasons DryIoc has a timeout to prevent the infinite waiting. 
You may change the default timeout via `Scope.WaitForScopedServiceIsCreatedTimeoutTicks=NewValue`
   à DryIoc.Throw.It(Int32 error, Object arg0, Object arg1, Object arg2, Object arg3)
   à DryIoc.Scope.WaitForItemIsSet(ImMapEntry`1 itemRef)
   à DryIoc.Factory.GetExpressionOrDefault(Request request)
   à DryIoc.Container.ResolveAndCacheKeyed(Int32 serviceTypeHash, Type serviceType, Object serviceKey, IfUnresolved ifUnresolved, Object scopeName, Type requiredServiceType, Request preResolveParent, Object[] args)
   à DryIoc.Container.DryIoc.IResolver.Resolve(Type serviceType, Object serviceKey, IfUnresolved ifUnresolved, Type requiredServiceType, Request preResolveParent, Object[] args)
   à DryIoc.Interpreter.InterpretResolveMethod(IResolverContext resolver, IList`1 callArgs, Object paramExprs, Object paramValues, ParentLambdaArgs parentArgs, Boolean useFec, Object& result)
   à DryIoc.Interpreter.TryInterpretMethodCall(IResolverContext r, Expression expr, Object paramExprs, Object paramValues, ParentLambdaArgs parentArgs, Boolean useFec, Object& result)
   à DryIoc.Interpreter.TryInterpret(IResolverContext r, Expression expr, Object paramExprs, Object paramValues, ParentLambdaArgs parentArgs, Boolean useFec, Object& result)
   à DryIoc.Interpreter.TryInterpretNestedLambdaBodyAndUnwrapException(IResolverContext r, Expression bodyExpr, Object paramExprs, Object paramValues, ParentLambdaArgs parentArgs, Boolean useFec)
   à DryIoc.Interpreter.<>c__DisplayClass3_0.<TryInterpretNestedLambda>b__0()
   à DryIoc.Interpreter.<>c__DisplayClass5_0`1.<ConvertFunc>b__0()
   à System.Lazy`1.CreateValue()
   à System.Lazy`1.LazyInitValue()
   à System.Lazy`1.get_Value()
   à OmniSharp.Extensions.JsonRpc.ResponseRouter.SendNotification[T](String method, T params)
   à OmniSharp.Extensions.JsonRpc.ResponseRouter.SendNotification(IRequest params)
   à OmniSharp.Extensions.LanguageServer.Protocol.LanguageProtocolProxy.SendNotification(IRequest request)
   à OmniSharp.Extensions.LanguageServer.Server.Logging.LanguageServerLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
   à Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state)<---

and in editorservices.log

2021-07-15 10:07:32.926 +02:00 [FTL] unhandled exception
System.MissingMethodException: Méthode introuvable : 'System.Threading.Tasks.ValueTask`1<!0> System.Threading.Channels.ChannelReader`1.ReadAsync(System.Threading.CancellationToken)'.
   à OmniSharp.Extensions.JsonRpc.OutputHandler.<ProcessOutputStream>d__19.MoveNext()
   à System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   à OmniSharp.Extensions.JsonRpc.OutputHandler.ProcessOutputStream(CancellationToken cancellationToken)
   à System.Reactive.Linq.QueryLanguage.StartAsyncImpl(Func`1 actionAsync, IScheduler scheduler)


and in vscode-powershell.log

15/07/2021 10:07:25 [NORMAL] - Language server starting --
15/07/2021 10:07:25 [NORMAL] -     PowerShell Editor Services args: Import-Module 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2021.6.2' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\modules' -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2021.6.2 <=====
' -LogLevel 'Normal' -LogPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\logs\1626336445-48dbdd01-1952-4a1b-be13-e2e1351072541626336190022\EditorServices.log' -SessionDetailsPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\sessions\PSES-VSCode-17620-960386' -FeatureFlags @() 
15/07/2021 10:07:25 [NORMAL] -     PowerShell executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
15/07/2021 10:07:25 [NORMAL] -     PowerShell args: -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2021.6.2' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\modules' -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2021.6.2 <=====
' -LogLevel 'Normal' -LogPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\logs\1626336445-48dbdd01-1952-4a1b-be13-e2e1351072541626336190022\EditorServices.log' -SessionDetailsPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\sessions\PSES-VSCode-17620-960386' -FeatureFlags @() 
15/07/2021 10:07:25 [NORMAL] - Waiting for session file
15/07/2021 10:07:25 [NORMAL] - powershell.exe started.
15/07/2021 10:07:31 [NORMAL] - Session file found
15/07/2021 10:07:31 [NORMAL] - Registering terminal close callback
15/07/2021 10:07:31 [NORMAL] - Registering terminal PID log callback
15/07/2021 10:07:31 [NORMAL] - powershell.exe PID: 11468
15/07/2021 10:07:31 [NORMAL] - Language server started.
15/07/2021 10:07:31 [NORMAL] - {"status":"started","languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_j5ninm25.fjz","debugServiceTransport":"NamedPipe","debugServicePipeName":"\\\\.\\pipe\\PSES_gxwljakz.em2"}
15/07/2021 10:07:31 [NORMAL] - Connecting to language service on pipe \\.\pipe\PSES_j5ninm25.fjz...
15/07/2021 10:07:31 [NORMAL] - Language service connected.

Output terminal:

15/07/2021 10:03:18 [NORMAL] - Visual Studio Code v1.58.1 64-bit
15/07/2021 10:03:18 [NORMAL] - PowerShell Extension v2021.6.2
15/07/2021 10:03:18 [NORMAL] - Operating System: Windows 64-bit
15/07/2021 10:03:18 [NORMAL] - Language server starting --
15/07/2021 10:03:18 [NORMAL] -     PowerShell executable: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
15/07/2021 10:03:18 [NORMAL] -     PowerShell args: -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2021.6.2' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\modules' -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2021.6.2 <=====
' -LogLevel 'Normal' -LogPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\logs\1626336198-48dbdd01-1952-4a1b-be13-e2e1351072541626336190022\EditorServices.log' -SessionDetailsPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\sessions\PSES-VSCode-17620-286880' -FeatureFlags @() 
15/07/2021 10:03:18 [NORMAL] -     PowerShell Editor Services args: Import-Module 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2021.6.2' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\modules' -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2021.6.2 <=====
' -LogLevel 'Normal' -LogPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\logs\1626336198-48dbdd01-1952-4a1b-be13-e2e1351072541626336190022\EditorServices.log' -SessionDetailsPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\sessions\PSES-VSCode-17620-286880' -FeatureFlags @() 
15/07/2021 10:03:18 [NORMAL] - powershell.exe started.
15/07/2021 10:03:18 [NORMAL] - Waiting for session file
15/07/2021 10:03:26 [NORMAL] - Session file found
15/07/2021 10:03:26 [NORMAL] - Registering terminal close callback
15/07/2021 10:03:26 [NORMAL] - Registering terminal PID log callback
15/07/2021 10:03:26 [NORMAL] - powershell.exe PID: 2868
15/07/2021 10:03:26 [NORMAL] - Language server started.
15/07/2021 10:03:26 [NORMAL] - {"status":"started","languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_nas2maqs.b0h","debugServiceTransport":"NamedPipe","debugServicePipeName":"\\\\.\\pipe\\PSES_yi1ki3xa.tpn"}
15/07/2021 10:03:26 [NORMAL] - Connecting to language service on pipe \\.\pipe\PSES_nas2maqs.b0h...
15/07/2021 10:03:26 [NORMAL] - Language service connected.
15/07/2021 10:05:30 [ERROR] - Could not start language service: 
15/07/2021 10:05:30 [ERROR] - Error: Connection to server got closed. Server will not be restarted.
15/07/2021 10:05:31 [NORMAL] - powershell.exe terminated or terminal UI was closed
15/07/2021 10:07:25 [NORMAL] - Shutting down language client...
15/07/2021 10:07:25 [NORMAL] - Language server starting --
15/07/2021 10:07:25 [NORMAL] -     PowerShell executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
15/07/2021 10:07:25 [NORMAL] -     PowerShell args: -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2021.6.2' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\modules' -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2021.6.2 <=====
' -LogLevel 'Normal' -LogPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\logs\1626336445-48dbdd01-1952-4a1b-be13-e2e1351072541626336190022\EditorServices.log' -SessionDetailsPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\sessions\PSES-VSCode-17620-960386' -FeatureFlags @() 
15/07/2021 10:07:25 [NORMAL] -     PowerShell Editor Services args: Import-Module 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2021.6.2' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\modules' -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2021.6.2 <=====
' -LogLevel 'Normal' -LogPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\logs\1626336445-48dbdd01-1952-4a1b-be13-e2e1351072541626336190022\EditorServices.log' -SessionDetailsPath 'c:\Users\UUUU\.vscode\extensions\ms-vscode.powershell-2021.6.2\sessions\PSES-VSCode-17620-960386' -FeatureFlags @() 
15/07/2021 10:07:25 [NORMAL] - powershell.exe started.
15/07/2021 10:07:25 [NORMAL] - Waiting for session file
15/07/2021 10:07:31 [NORMAL] - Session file found
15/07/2021 10:07:31 [NORMAL] - Registering terminal close callback
15/07/2021 10:07:31 [NORMAL] - Registering terminal PID log callback
15/07/2021 10:07:31 [NORMAL] - powershell.exe PID: 11468
15/07/2021 10:07:31 [NORMAL] - Language server started.
15/07/2021 10:07:31 [NORMAL] - {"status":"started","languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_j5ninm25.fjz","debugServiceTransport":"NamedPipe","debugServicePipeName":"\\\\.\\pipe\\PSES_gxwljakz.em2"}
15/07/2021 10:07:31 [NORMAL] - Connecting to language service on pipe \\.\pipe\PSES_j5ninm25.fjz...
15/07/2021 10:07:31 [NORMAL] - Language service connected.

Thanks for support.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:48 (25 by maintainers)

github_iconTop GitHub Comments

2reactions
himynameissergeycommented, Apr 7, 2022

I installed the PowerShell Preview extension v2022.3.1 and this issue has been resolved

2reactions
anankee26commented, Feb 21, 2022

Hi,

For me, it has been resolved by a new OS… I was working on windows 1809 et now on windows 22H2 with an installation from scratch. So Vscode, vscode-powershell, and windows powershell 5.1.19041.1320 (and core v7.2.1) work perfectly together for the moment. The purpose of this new installation wasn’t to resolve this problem particularly… Thanks for your support !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code issue with running powershell
Exception encountered starting EditorServices. ... message: DryIoc has waited for the creation of the scoped or singleton service by the ...
Read more >
A brand new website interface for an even better experience!
Exception encountered starting EditorServices (DryIoc has waited for the creation of the scoped)
Read more >
PowerShell Extension for Visual Studio Code August 2022 ...
This release adds a walkthrough experience for getting started with PowerShell in VS Code, more regression tests, a major LSP client library ...
Read more >
DryIoc.ContainerException in Azure Functions App Running in ...
Registered factory delegate returns service is not assignable to ambiently scoped container, and how I fixed the problem.
Read more >
Error Inside Visual Studio Code - PowerShell Tools
... Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2020.6.0' -AdditionalModules ...
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