Skip to content

PowerShell Integrated Console hangs for PowerShell 7.2 #4025

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

Closed
5 of 6 tasks
ShikeChen-MS opened this issue Jun 14, 2022 · 2 comments
Closed
5 of 6 tasks

PowerShell Integrated Console hangs for PowerShell 7.2 #4025

ShikeChen-MS opened this issue Jun 14, 2022 · 2 comments
Labels
Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.

Comments

@ShikeChen-MS
Copy link

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all 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

PowerShell Integrated Console hangs and fails to open. I looked into session log and found following error:

2022-06-14 11:41:01.289 -07:00 [INF] highlight handler loaded 2022-06-14 11:41:01.664 -07:00 [WRN] No ConfigurationItems have been defined, configuration won't surface any configuration from the client! 2022-06-14 11:41:01.698 -07:00 [INF] Host starting 2022-06-14 11:41:02.401 -07:00 [INF] ReadLine overridden with 'Microsoft.PowerShell.EditorServices.Services.PowerShell.Console.PsrlReadLine' 2022-06-14 11:41:02.606 -07:00 [FTL] Failed to handle request workspace/didChangeConfiguration System.Management.Automation.CommandNotFoundException: The module 'Microsoft.PowerShell.Security' could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Security'. ---> System.Management.Automation.CmdletInvocationException: Failure from remote command: Import-Module -Name 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Security\Microsoft.PowerShell.Security.psd1': The runspace state is not valid for this operation. ---> System.InvalidOperationException: Failure from remote command: Import-Module -Name 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Security\Microsoft.PowerShell.Security.psd1': The runspace state is not valid for this operation. ---> System.Management.Automation.Runspaces.InvalidRunspaceStateException: The runspace state is not valid for this operation. ---> System.Management.Automation.Runspaces.InvalidRunspacePoolStateException: Cannot perform the operation because the runspace pool is not in the 'Opened' state. The current state is 'Broken'. at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.AssertPoolIsOpen() at System.Management.Automation.PowerShell.CoreInvokeAsync[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings, AsyncCallback callback, Object state, PSDataCollection1 asyncResultOutput)
--- End of inner exception stack trace ---
at System.Management.Automation.PowerShell.CoreInvokeAsync[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings, AsyncCallback callback, Object state, PSDataCollection1 asyncResultOutput) at System.Management.Automation.PowerShell.BeginInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings, AsyncCallback callback, Object state) at System.Management.Automation.RemoteDiscoveryHelper.InvokeTopLevelPowerShell(PowerShell powerShell, PSCmdlet cmdlet, PSInvocationSettings invocationSettings, String errorMessageTemplate, CancellationToken cancellationToken)+MoveNext() at System.Management.Automation.RemoteDiscoveryHelper.EnumerateWithCatch[T](IEnumerable1 enumerable, Action1 exceptionHandler)+MoveNext() --- End of inner exception stack trace --- at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) --- End of inner exception stack trace --- at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke[T](IEnumerable input, IList1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke[T]() at System.Management.Automation.CommandDiscovery.AutoloadSpecifiedModule(String moduleName, ExecutionContext context, SessionStateEntryVisibility visibility, Exception& exception) --- End of inner exception stack trace --- at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke[T](IEnumerable input, IList1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke[T](IEnumerable input, PSInvocationSettings settings) at Microsoft.PowerShell.EditorServices.Services.PowerShell.Utility.PowerShellExtensions.InvokeAndClear[TResult](PowerShell pwsh, PSInvocationSettings invocationSettings) in D:\a\_work\1\s\src\PowerShellEditorServices\Services\PowerShell\Utility\PowerShellExtensions.cs:line 76 at Microsoft.PowerShell.EditorServices.Services.PowerShell.Utility.PowerShellExtensions.SetCorrectExecutionPolicy(PowerShell pwsh, ILogger logger) in D:\a\_work\1\s\src\PowerShellEditorServices\Services\PowerShell\Utility\PowerShellExtensions.cs:line 141 at Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost.CreateInitialPowerShell(HostStartupInfo hostStartupInfo, ReadLineProvider readLineProvider) in D:\a\_work\1\s\src\PowerShellEditorServices\Services\PowerShell\Host\PsesInternalHost.cs:line 960 at Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost.CreateInitialPowerShellSession() in D:\a\_work\1\s\src\PowerShellEditorServices\Services\PowerShell\Host\PsesInternalHost.cs:line 458 at Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost.Run() in D:\a\_work\1\s\src\PowerShellEditorServices\Services\PowerShell\Host\PsesInternalHost.cs:line 443 --- End of stack trace from previous location --- at Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost.TryStartAsync(HostStartOptions startOptions, CancellationToken cancellationToken) in D:\a\_work\1\s\src\PowerShellEditorServices\Services\PowerShell\Host\PsesInternalHost.cs:line 251 at Microsoft.PowerShell.EditorServices.Handlers.PsesConfigurationHandler.Handle(DidChangeConfigurationParams request, CancellationToken cancellationToken) in D:\a\_work\1\s\src\PowerShellEditorServices\Services\Workspace\Handlers\ConfigurationHandler.cs:line 91 at OmniSharp.Extensions.LanguageServer.Server.Pipelines.SemanticTokensDeltaPipeline2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestPreProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestPostProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionActionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionActionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at OmniSharp.Extensions.JsonRpc.RequestRouterBase1.g__InnerRoute|6_0(IServiceScopeFactory serviceScopeFactory, TDescriptor descriptor, Object params, CancellationToken token)
at OmniSharp.Extensions.JsonRpc.RequestRouterBase1.RouteNotification(IRequestDescriptor1 descriptors, Notification notification, CancellationToken token)
at OmniSharp.Extensions.JsonRpc.DefaultRequestInvoker.<>c__DisplayClass11_0.<b__3>d.MoveNext()
2022-06-14 11:41:03.402 -07:00 [INF] Unable to find PSSA settings file at 'c:\Users\shikechen\Desktop\Test\PSScriptAnalyzerSettings.psd1'. Loading default rules.
2022-06-14 11:41:03.402 -07:00 [INF] PSScriptAnalyzer settings file not found. Falling back to default rules`

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.2.4
PSEdition                      Core
GitCommitId                    7.2.4
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visual Studio Code Version

Version: 1.68.0 (user setup)
Commit: 4af164ea3a06f701fe3e89a2bcbb421d2026b68f
Date: 2022-06-08T11:44:16.822Z
Electron: 17.4.7
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Windows_NT x64 10.0.22000

Extension Version

ms-vscode.powershell v2022.5.1

Steps to Reproduce

Open a folder contain .ps1 file.
Select PowerShell 7 for integrated console.
Integrated console hangs!

Visuals

No response

Logs

Editor Service Log:

2022-06-14 11:41:01.289 -07:00 [INF] highlight handler loaded 2022-06-14 11:41:01.664 -07:00 [WRN] No ConfigurationItems have been defined, configuration won't surface any configuration from the client! 2022-06-14 11:41:01.698 -07:00 [INF] Host starting 2022-06-14 11:41:02.401 -07:00 [INF] ReadLine overridden with 'Microsoft.PowerShell.EditorServices.Services.PowerShell.Console.PsrlReadLine' 2022-06-14 11:41:02.606 -07:00 [FTL] Failed to handle request workspace/didChangeConfiguration System.Management.Automation.CommandNotFoundException: The module 'Microsoft.PowerShell.Security' could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Security'. ---> System.Management.Automation.CmdletInvocationException: Failure from remote command: Import-Module -Name 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Security\Microsoft.PowerShell.Security.psd1': The runspace state is not valid for this operation. ---> System.InvalidOperationException: Failure from remote command: Import-Module -Name 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Security\Microsoft.PowerShell.Security.psd1': The runspace state is not valid for this operation. ---> System.Management.Automation.Runspaces.InvalidRunspaceStateException: The runspace state is not valid for this operation. ---> System.Management.Automation.Runspaces.InvalidRunspacePoolStateException: Cannot perform the operation because the runspace pool is not in the 'Opened' state. The current state is 'Broken'. at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.AssertPoolIsOpen() at System.Management.Automation.PowerShell.CoreInvokeAsync[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings, AsyncCallback callback, Object state, PSDataCollection1 asyncResultOutput)
--- End of inner exception stack trace ---
at System.Management.Automation.PowerShell.CoreInvokeAsync[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings, AsyncCallback callback, Object state, PSDataCollection1 asyncResultOutput) at System.Management.Automation.PowerShell.BeginInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings, AsyncCallback callback, Object state) at System.Management.Automation.RemoteDiscoveryHelper.InvokeTopLevelPowerShell(PowerShell powerShell, PSCmdlet cmdlet, PSInvocationSettings invocationSettings, String errorMessageTemplate, CancellationToken cancellationToken)+MoveNext() at System.Management.Automation.RemoteDiscoveryHelper.EnumerateWithCatch[T](IEnumerable1 enumerable, Action1 exceptionHandler)+MoveNext() --- End of inner exception stack trace --- at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) --- End of inner exception stack trace --- at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke[T](IEnumerable input, IList1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke[T]() at System.Management.Automation.CommandDiscovery.AutoloadSpecifiedModule(String moduleName, ExecutionContext context, SessionStateEntryVisibility visibility, Exception& exception) --- End of inner exception stack trace --- at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke[T](IEnumerable input, IList1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke[T](IEnumerable input, PSInvocationSettings settings) at Microsoft.PowerShell.EditorServices.Services.PowerShell.Utility.PowerShellExtensions.InvokeAndClear[TResult](PowerShell pwsh, PSInvocationSettings invocationSettings) in D:\a\_work\1\s\src\PowerShellEditorServices\Services\PowerShell\Utility\PowerShellExtensions.cs:line 76 at Microsoft.PowerShell.EditorServices.Services.PowerShell.Utility.PowerShellExtensions.SetCorrectExecutionPolicy(PowerShell pwsh, ILogger logger) in D:\a\_work\1\s\src\PowerShellEditorServices\Services\PowerShell\Utility\PowerShellExtensions.cs:line 141 at Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost.CreateInitialPowerShell(HostStartupInfo hostStartupInfo, ReadLineProvider readLineProvider) in D:\a\_work\1\s\src\PowerShellEditorServices\Services\PowerShell\Host\PsesInternalHost.cs:line 960 at Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost.CreateInitialPowerShellSession() in D:\a\_work\1\s\src\PowerShellEditorServices\Services\PowerShell\Host\PsesInternalHost.cs:line 458 at Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost.Run() in D:\a\_work\1\s\src\PowerShellEditorServices\Services\PowerShell\Host\PsesInternalHost.cs:line 443 --- End of stack trace from previous location --- at Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost.TryStartAsync(HostStartOptions startOptions, CancellationToken cancellationToken) in D:\a\_work\1\s\src\PowerShellEditorServices\Services\PowerShell\Host\PsesInternalHost.cs:line 251 at Microsoft.PowerShell.EditorServices.Handlers.PsesConfigurationHandler.Handle(DidChangeConfigurationParams request, CancellationToken cancellationToken) in D:\a\_work\1\s\src\PowerShellEditorServices\Services\Workspace\Handlers\ConfigurationHandler.cs:line 91 at OmniSharp.Extensions.LanguageServer.Server.Pipelines.SemanticTokensDeltaPipeline2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestPreProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestPostProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionActionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestExceptionActionProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at OmniSharp.Extensions.JsonRpc.RequestRouterBase1.g__InnerRoute|6_0(IServiceScopeFactory serviceScopeFactory, TDescriptor descriptor, Object params, CancellationToken token)
at OmniSharp.Extensions.JsonRpc.RequestRouterBase1.RouteNotification(IRequestDescriptor1 descriptors, Notification notification, CancellationToken token)
at OmniSharp.Extensions.JsonRpc.DefaultRequestInvoker.<>c__DisplayClass11_0.<b__3>d.MoveNext()
2022-06-14 11:41:03.402 -07:00 [INF] Unable to find PSSA settings file at 'c:\Users\shikechen\Desktop\Test\PSScriptAnalyzerSettings.psd1'. Loading default rules.
2022-06-14 11:41:03.402 -07:00 [INF] PSScriptAnalyzer settings file not found. Falling back to default rules
`

vscode-powershell.log

`2022-06-14 11:40:58 a.m. [NORMAL] -
WARNING: In development mode but PowerShellEditorServices dev module path cannot be found (or has not been built yet): c:\Users\shikechen.vscode\extensions\PowerShellEditorServices\module

2022-06-14 11:40:58 a.m. [NORMAL] - Language server starting --
2022-06-14 11:40:58 a.m. [NORMAL] - PowerShell executable: C:\Program Files\PowerShell\7\pwsh.exe
2022-06-14 11:40:58 a.m. [NORMAL] - PowerShell args: -NoProfile -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\shikechen.vscode\extensions\ms-vscode.powershell-2022.5.1\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2022.5.1' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\shikechen.vscode\extensions\ms-vscode.powershell-2022.5.1\modules' -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2022.5.1 <=====
' -LogLevel 'Normal' -LogPath 'c:\Users\shikechen.vscode\extensions\ms-vscode.powershell-2022.5.1\logs\1655232058-426bd241-664e-4cae-a3f1-f9f3321244461655232053805\EditorServices.log' -SessionDetailsPath 'c:\Users\shikechen.vscode\extensions\ms-vscode.powershell-2022.5.1\sessions\PSES-VSCode-3956-603766' -FeatureFlags @()
2022-06-14 11:40:58 a.m. [NORMAL] - pwsh.exe started.
2022-06-14 11:40:58 a.m. [NORMAL] - Waiting for session file
2022-06-14 11:40:58 a.m. [NORMAL] - PowerShell Editor Services args: Import-Module 'c:\Users\shikechen.vscode\extensions\ms-vscode.powershell-2022.5.1\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2022.5.1' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\shikechen.vscode\extensions\ms-vscode.powershell-2022.5.1\modules' -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2022.5.1 <=====
' -LogLevel 'Normal' -LogPath 'c:\Users\shikechen.vscode\extensions\ms-vscode.powershell-2022.5.1\logs\1655232058-426bd241-664e-4cae-a3f1-f9f3321244461655232053805\EditorServices.log' -SessionDetailsPath 'c:\Users\shikechen.vscode\extensions\ms-vscode.powershell-2022.5.1\sessions\PSES-VSCode-3956-603766' -FeatureFlags @()
2022-06-14 11:41:00 a.m. [NORMAL] - Session file found
2022-06-14 11:41:00 a.m. [NORMAL] - Registering terminal close callback
2022-06-14 11:41:00 a.m. [NORMAL] - Registering terminal PID log callback
2022-06-14 11:41:00 a.m. [NORMAL] - pwsh.exe PID: 16168
2022-06-14 11:41:00 a.m. [NORMAL] - {"status":"started","languageServiceTransport":"NamedPipe","languageServicePipeName":"\\.\pipe\PSES_r10cdtum.kmg","debugServiceTransport":"NamedPipe","debugServicePipeName":"\\.\pipe\PSES_orcjs420.ism"}
2022-06-14 11:41:00 a.m. [NORMAL] - Connecting to language service on pipe \.\pipe\PSES_r10cdtum.kmg...
2022-06-14 11:41:00 a.m. [NORMAL] - Language server started.
2022-06-14 11:41:00 a.m. [NORMAL] - Language service connected.
`

@ShikeChen-MS ShikeChen-MS added the Issue-Bug A bug to squash. label Jun 14, 2022
@andyleejordan
Copy link
Member

@SeeminglyScience interesting log here:

[FTL] Failed to handle request workspace/didChangeConfiguration System.Management.Automation.CommandNotFoundException: The module 'Microsoft.PowerShell.Security' could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Security'. ---> System.Management.Automation.CmdletInvocationException: Failure from remote command: Import-Module -Name 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Security\Microsoft.PowerShell.Security.psd1': The runspace state is not valid for this operation. ---> System.InvalidOperationException: Failure from remote command: Import-Module -Name 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Security\Microsoft.PowerShell.Security.psd1': The runspace state is not valid for this operation. ---> System.Management.Automation.Runspaces.InvalidRunspaceStateException: The runspace state is not valid for this operation. ---> System.Management.Automation.Runspaces.InvalidRunspacePoolStateException: Cannot perform the operation because the runspace pool is not in the 'Opened' state. The current state is 'Broken'. at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.AssertPoolIsOpen() at System.Management.Automation.PowerShell.CoreInvokeAsync[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings, AsyncCallback callback, Object state

@andyleejordan
Copy link
Member

Closing this as duplicate, as we found a resolution for you here: #4012 (comment)

@andyleejordan andyleejordan added the Resolution-Duplicate Will close automatically. label Jun 21, 2022
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. Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

2 participants