Skip to content

Powershell.ShowSessionMenu failed #3001

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
chughesvf opened this issue Oct 12, 2020 · 14 comments
Closed

Powershell.ShowSessionMenu failed #3001

chughesvf opened this issue Oct 12, 2020 · 14 comments
Labels
Resolution-Inactive Will close automatically.

Comments

@chughesvf
Copy link

chughesvf commented Oct 12, 2020

System Details

System Details Output

OS Name             : Microsoft Windows 10 Enterprise
OS Version          : 10.0.19041 N/A Build 19041
OS Manufacturer     : Microsoft Corporation
OS Configuration    : Member Workstation
OS Build Type       : Multiprocessor Free

PSVersion                      5.1.19041.1
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

VSCODE Insider 1.51.0
PS Preview: 2020.9.0

Issue Description

The information pain shows "Starting Powershell Session Menu" and an error inside:
"Running the contributed command: 'PowerShell.ShowSessionMenu' failed."

Should note, when disabling the preview powershell extension, and enabling the version 2020.6.0 this problem goes away

Already followed this thread and set execution policy of the current user to unrestricted without any luck.
#2895

Expected Behaviour

The Powershell language server should load with no errors

Actual Behaviour

Seems not all functionality of powershell extension is available in this state.

Attached Logs

logs.zip

@ghost ghost added the Needs: Triage Maintainer attention needed! label Oct 12, 2020
@SydneyhSmith
Copy link
Collaborator

Thanks @chughesvf when you were hitting this issue, you only had the PowerShell Preview extension enabled correct?
Was there any output in the console? (we added some logging there to diagnose start-up issues)

@SydneyhSmith SydneyhSmith added Needs-Repro-Info and removed Needs: Triage Maintainer attention needed! labels Oct 13, 2020
@chughesvf
Copy link
Author

chughesvf commented Oct 14, 2020

Hi @SydneyhSmith I ensured I was not running both, in fact I only reinstalled the release version for this issue.

The console seems to be loaded fine, if I look at the PS Extension output it also seems normal.

10/14/2020 11:55:42 AM [NORMAL] - Visual Studio Code v1.51.0-insider 64-bit
10/14/2020 11:55:42 AM [NORMAL] - PowerShell Preview Extension v2020.9.0
10/14/2020 11:55:42 AM [NORMAL] - Operating System: Windows 64-bit
10/14/2020 11:55:42 AM [NORMAL] - Language server starting --
10/14/2020 11:55:42 AM [NORMAL] -     PowerShell executable: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
10/14/2020 11:55:42 AM [NORMAL] -     PowerShell args: -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2020.9.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules' -EnableConsoleRepl -StartupBanner '=====> PowerShell Preview Integrated Console v2020.9.0 <=====
' -WaitForDebugger -LogLevel 'Diagnostic' -LogPath 'c:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\logs\1602690942-821c694c-ed58-408c-9606-d2ff794825ce1602690939388\EditorServices.log' -SessionDetailsPath 'c:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\sessions\PSES-VSCode-17192-183796' -FeatureFlags @() 
10/14/2020 11:55:42 AM [NORMAL] -     PowerShell Editor Services args: Import-Module 'c:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2020.9.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules' -EnableConsoleRepl -StartupBanner '=====> PowerShell Preview Integrated Console v2020.9.0 <=====
' -WaitForDebugger -LogLevel 'Diagnostic' -LogPath 'c:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\logs\1602690942-821c694c-ed58-408c-9606-d2ff794825ce1602690939388\EditorServices.log' -SessionDetailsPath 'c:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\sessions\PSES-VSCode-17192-183796' -FeatureFlags @() 
10/14/2020 11:55:42 AM [NORMAL] - powershell.exe started.
10/14/2020 11:55:42 AM [NORMAL] - Waiting for session file
10/14/2020 11:55:44 AM [NORMAL] - Session file found
10/14/2020 11:55:44 AM [NORMAL] - Registering terminal close callback
10/14/2020 11:55:44 AM [NORMAL] - Registering terminal PID log callback
10/14/2020 11:55:44 AM [NORMAL] - powershell.exe PID: 21416
10/14/2020 11:55:44 AM [NORMAL] - Language server started.
10/14/2020 11:55:44 AM [NORMAL] - {"status":"started","languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_j14frgrm.0kx","debugServiceTransport":"NamedPipe","debugServicePipeName":"\\\\.\\pipe\\PSES_p4xbps5k.j1e"}
10/14/2020 11:55:44 AM [NORMAL] - Connecting to language service on pipe \\.\pipe\PSES_j14frgrm.0kx...
10/14/2020 11:55:44 AM [NORMAL] - Language service connected.

But as you can see in the screenshot something has not fully loaded. I can't see powershell versions and intellisense freezes pretty much immediately.

image

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Oct 14, 2020
@rjmholt
Copy link
Contributor

rjmholt commented Oct 14, 2020

@chughesvf does the integrated console start? If so, what do you see in it?

@chughesvf
Copy link
Author

@rjmholt I am using the traditional Powershell.exe and not the ISE inside VSCode as my terminal. Is this what you mean by console?

@rjmholt
Copy link
Contributor

rjmholt commented Oct 15, 2020

Is this what you mean by console?

No, there should also be an "Integrated Console":

image

That's a window into the PowerShell process that runs the extension and errors that occur on startup are likely to be shown there.

If you don't see it, you may have a configuration set to disable it from showing?

@TylerLeonhardt TylerLeonhardt removed the Needs: Maintainer Attention Maintainer attention needed! label Oct 15, 2020
@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Oct 19, 2020
@chughesvf
Copy link
Author

chughesvf commented Oct 19, 2020

ignore my last comment (deleted)

I was able to get the integrated console to start with the preview extension enabled. here is the output, and it is still stuck on "Starting Powershell" and I cannot use the console in the current state:

DEBUG: Logging started
DEBUG: Beginning EndProcessing block
VERBOSE: Removing PSReadLine
DEBUG: Creating host configuration
DEBUG: Determining REPL kind        
DEBUG: REPL configured as PSReadLine
DEBUG: Configuring LSP transport    
DEBUG: Configuring debug transport
DEBUG: Session file writer created
VERBOSE: Adding AssemblyResolve event handler for dependency loading
VERBOSE: Loading EditorServices
DEBUG: Assembly resolve event fired for Microsoft.PowerShell.EditorServices, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null
DEBUG: Loading Microsoft.PowerShell.EditorServices, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null from PSES dependency dir into LoadFile context
DEBUG: Loaded 'Microsoft.PowerShell.EditorServices, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null' from 
'C:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\bin\Common\Microsoft.PowerShell.EditorServices.dll'
DEBUG: Loaded 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' from 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\netstandard\v4.0_2.0.0.0__cc7b13ffcd2ddd51\netstandard.dll'
DEBUG: Logging host information
DEBUG: 
PID: 12192
VERBOSE: 
== Build Details ==
- Editor Services version: 2.3.0-preview.2
- Build origin:            Release
- Build time:              9/15/2020 11:15:18 PM
VERBOSE: 
== Host Startup Configuration Details ==
 - Host name:                 Visual Studio Code Host
 - Host version:              2020.9.0
 - Host profile ID:           Microsoft.VSCode
 - PowerShell host type:      System.Management.Automation.Internal.Host.InternalHost

 - REPL setting:              PSReadLine
 - Session details path:      c:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\sessions\PSES-VSCode-17548-291434
 - Bundled modules path:      c:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules
 - Additional modules:        PowerShellEditorServices.VSCode
 - Feature flags:

 - Log path:                  c:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\logs\1603142466-d02ffde6-3c05-4409-bda5-b617a07c00e71603142430528\EditorServices.log
 - Minimum log level:         Diagnostic

 - Profile paths:
   + AllUsersAllHosts:       C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1
   + AllUsersCurrentHost:    C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.VSCode_profile.ps1
   + CurrentUserAllHosts:    C:\Users\chughes\Documents\WindowsPowerShell\profile.ps1
   + CurrentUserCurrentHost: C:\Users\chughes\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1
DEBUG: Loaded 'Microsoft.PowerShell.Commands.Diagnostics, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' from 
'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Diagnostics\v4.0_3.0.0.0__31bf3856ad364e35\Microsoft.PowerShell.Commands.Diagnostics.dll'
DEBUG: Loaded 'System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' from 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration.Install\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.Install.dll'
DEBUG: Loaded 'Microsoft.PowerShell.Commands.Utility, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' from 
'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Utility\v4.0_3.0.0.0__31bf3856ad364e35\Microsoft.PowerShell.Commands.Utility.dll'
DEBUG: Loaded 'Microsoft.PowerShell.Commands.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' from 
'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Management\v4.0_3.0.0.0__31bf3856ad364e35\Microsoft.PowerShell.Commands.Management.dll'
DEBUG: Loaded 'Microsoft.WSMan.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' from 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.WSMan.Management\v4.0_3.0.0.0__31bf3856ad364e35\Microsoft.WSMan.Management.dll'
DEBUG: Assembly resolve event fired for Microsoft.PowerShell.Security.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35
DEBUG: Assembly resolve event fired for Microsoft.PowerShell.Security.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35
DEBUG: Assembly resolve event fired for Microsoft.WSMan.Management.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35
DEBUG: Assembly resolve event fired for Microsoft.WSMan.Management.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35
VERBOSE: 
== Console Details ==
 - Console input encoding: Western European (DOS)
 - Console output encoding: Western European (DOS)
 - PowerShell output encoding: US-ASCII
VERBOSE: 
== PowerShell Details ==
- PowerShell version: 5.1.19041.1
- Language mode:      FullLanguage
DEBUG: Loaded 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' from 
'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.InteropServices.RuntimeInformation\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.InteropServices.RuntimeInformation.dll'
VERBOSE: 
== Environment Details ==
 - OS description:  Microsoft Windows 10.0.19041
 - OS architecture: X64
 - Process bitness: 64
DEBUG: Checking that .NET Framework version is at least 4.6.1
VERBOSE: .NET registry version: 528372
VERBOSE: Updated PSModulePath to: 'C:\Users\chughes\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL 
Server\120\Tools\PowerShell\Modules\;c:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules'
DEBUG: Validating configuration
VERBOSE: Loading PowerShell Editor Services
VERBOSE: Starting EditorServices
DEBUG: Assembly resolve event fired for Microsoft.Extensions.Logging.Abstractions, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
DEBUG: Loading Microsoft.Extensions.Logging.Abstractions, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 from PSES dependency dir into LoadFile context
DEBUG: Loaded 'Microsoft.Extensions.Logging.Abstractions, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' from 
'C:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\bin\Common\Microsoft.Extensions.Logging.Abstractions.dll'
DEBUG: Assembly resolve event fired for Serilog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10
DEBUG: Loading Serilog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10 from PSES dependency dir into LoadFile context
DEBUG: Loaded 'Serilog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10' from 'C:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\bin\Common\Serilog.dll'
DEBUG: Assembly resolve event fired for Serilog.Sinks.Async, Version=1.4.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10
DEBUG: Loading Serilog.Sinks.Async, Version=1.4.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10 from PSES dependency dir into LoadFile context
DEBUG: Loaded 'Serilog.Sinks.Async, Version=1.4.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10' from 'C:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\bin\Common\Serilog.Sinks.Async.dll'
DEBUG: Assembly resolve event fired for Microsoft.Extensions.Logging, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
DEBUG: Loading Microsoft.Extensions.Logging, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 from PSES dependency dir into LoadFile context
DEBUG: Loaded 'Microsoft.Extensions.Logging, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' from 
'C:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\bin\Common\Microsoft.Extensions.Logging.dll'
DEBUG: Assembly resolve event fired for Microsoft.Extensions.Logging.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
DEBUG: Loading Microsoft.Extensions.Logging.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 from PSES dependency dir into LoadFile context
DEBUG: Assembly resolve event fired for Serilog.Extensions.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10
DEBUG: Loading Serilog.Extensions.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10 from PSES dependency dir into LoadFile context
DEBUG: Loaded 'Serilog.Extensions.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10' from 'C:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\bin\Common\Serilog.Extensions.Logging.dll'    
DEBUG: Assembly resolve event fired for Microsoft.Extensions.Logging.Abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
DEBUG: Loading Microsoft.Extensions.Logging.Abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 from PSES dependency dir into LoadFile context
DEBUG: Assembly resolve event fired for Serilog.Sinks.File, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10
DEBUG: Loading Serilog.Sinks.File, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10 from PSES dependency dir into LoadFile context
DEBUG: Loaded 'Serilog.Sinks.File, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10' from 'C:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\bin\Common\Serilog.Sinks.File.dll'
DEBUG: Loaded 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' from 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll'
DEBUG: Loaded 'System.Text.Encoding, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' from 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Text.Encoding\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Text.Encoding.dll'
DEBUG: Loaded 'System.IO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' from 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IO\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.IO.dll'
DEBUG: Loaded 'System.IO.FileSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' from 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IO.FileSystem\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.IO.FileSystem.dll'
DEBUG: Loaded 'System.Runtime.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' from 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Extensions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Extensions.dll'
DEBUG: Loaded 'System.IO.FileSystem.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' from 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IO.FileSystem.Primitives\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.IO.FileSystem.Primitives.dll'
DEBUG: Loaded 'System.Text.Encoding.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' from 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Text.Encoding.Extensions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Text.Encoding.Extensions.dll'
DEBUG: Assembly resolve event fired for Microsoft.Extensions.Options, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
DEBUG: Loading Microsoft.Extensions.Options, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 from PSES dependency dir into LoadFile context
DEBUG: Loaded 'Microsoft.Extensions.Options, Version=3.1.8.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' from 
'C:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\bin\Common\Microsoft.Extensions.Options.dll'
DEBUG: Assembly resolve event fired for Microsoft.Extensions.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
DEBUG: Loading Microsoft.Extensions.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 from PSES dependency dir into LoadFile context
DEBUG: Loaded 'System.Threading, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' from 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Threading\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.dll'
DEBUG: Assembly resolve event fired for OmniSharp.Extensions.LanguageServer, Version=0.17.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022
DEBUG: Loading OmniSharp.Extensions.LanguageServer, Version=0.17.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022 from PSES dependency dir into LoadFile context
DEBUG: Loaded 'OmniSharp.Extensions.LanguageServer, Version=0.17.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022' from 
'C:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\bin\Common\OmniSharp.Extensions.LanguageServer.dll'
DEBUG: Assembly resolve event fired for OmniSharp.Extensions.JsonRpc, Version=0.17.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022
DEBUG: Loading OmniSharp.Extensions.JsonRpc, Version=0.17.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022 from PSES dependency dir into LoadFile context
DEBUG: Loaded 'OmniSharp.Extensions.JsonRpc, Version=0.17.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022' from 
'C:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\bin\Common\OmniSharp.Extensions.JsonRpc.dll'
DEBUG: Assembly resolve event fired for MediatR, Version=8.0.1.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2
DEBUG: Loading MediatR, Version=8.0.1.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2 from PSES dependency dir into LoadFile context
DEBUG: Loaded 'MediatR, Version=8.0.1.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2' from 'C:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\bin\Common\MediatR.dll'
DEBUG: Assembly resolve event fired for OmniSharp.Extensions.LanguageProtocol, Version=0.17.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022
DEBUG: Loading OmniSharp.Extensions.LanguageProtocol, Version=0.17.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022 from PSES dependency dir into LoadFile context
DEBUG: Loaded 'OmniSharp.Extensions.LanguageProtocol, Version=0.17.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022' from 
'C:\Users\chughes\.vscode-insiders\extensions\ms-vscode.powershell-preview-2020.9.0\modules\PowerShellEditorServices\bin\Common\OmniSharp.Extensions.LanguageProtocol.dll'
DEBUG: Creating/running editor services
DEBUG: Creating startup info object
VERBOSE: Starting server, deregistering host logger and registering shutdown listener
=====> PowerShell Preview Integrated Console v2020.9.0 <=====

image

@SydneyhSmith
Copy link
Collaborator

Thanks @chughesvf it would be great to understand how many versions of PowerShell this effects, have you seen this same issue on newer versions of PowerShell (PowerShell 7)?

@SydneyhSmith SydneyhSmith removed the Needs: Maintainer Attention Maintainer attention needed! label Oct 22, 2020
@chughesvf
Copy link
Author

Hey @SydneyhSmith I added a powershell path to the extension for version 7.0.1. This loads no issue using the non-preview version but freezes in the same spot for the preview version. I verified in the log that the path is correctly grabbing the right EXE:

10/27/2020 11:23:19 AM [NORMAL] - PowerShell executable: C:\Program Files\WindowsPowerShell71\pwsh.exe

and the screenshot shows it is stuck at loading:

image

Unable to use any intellisense or features of the extension in this state.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Oct 27, 2020
@alexis-spx
Copy link

alexis-spx commented Oct 28, 2020

Not sure this helps, but this seems to have just happened to me.

I was using the integrated terminal quite happily on ps 7.1 although hitting an related powershell issue that I thought I would try in 5.1 so switched session to Windows Powershell (x64) and now getting much the same behaviour as described here although I am not using the Preview version am using Powreshell 2020.6.0.

Integrated Console just hangs.

changing
"powershell.powerShellDefaultVersion": "Windows PowerShell (x64)",
back to
"powershell.powerShellDefaultVersion": "PowerShell (x64)",

in the setting files gets the integrated console working again.

I assume this is an issue with the september vscode update as I installed that yesterday and hadn't noticed any issues before that. Although can't really remember the last time I tried to swtich to ps 5.1.

@SydneyhSmith SydneyhSmith removed the Needs: Maintainer Attention Maintainer attention needed! label Oct 29, 2020
@ghost
Copy link

ghost commented Nov 13, 2020

This issue is being closed as inactive, if this issue is still occurring it will be re-opened

@ghost ghost added the Resolution-Inactive Will close automatically. label Nov 13, 2020
@ghost ghost closed this as completed Nov 13, 2020
@jdiekhoff
Copy link

I too am seeing this issue running on a Mac. Using the PowerShell extension, V2020.6.0 and Code version 1.51.1

11/18/2020 5:06:44 PM [NORMAL] - pwsh started.
11/18/2020 5:06:44 PM [NORMAL] - Waiting for session file
11/18/2020 5:06:46 PM [NORMAL] - Session file found
11/18/2020 5:06:46 PM [NORMAL] - Registering terminal close callback
11/18/2020 5:06:46 PM [NORMAL] - Registering terminal PID log callback
11/18/2020 5:06:46 PM [NORMAL] - pwsh PID: 66908
11/18/2020 5:06:46 PM [NORMAL] - Language server started.
11/18/2020 5:06:46 PM [NORMAL] - {"status":"started","languageServiceTransport":"NamedPipe","languageServicePipeName":"/var/folders/n0/8kfv8lw12p16vrk_3hw2lwlh0000gp/T/CoreFxPipe_PSES_g4o53b52.jcs","debugServiceTransport":"NamedPipe","debugServicePipeName":"/var/folders/n0/8kfv8lw12p16vrk_3hw2lwlh0000gp/T/CoreFxPipe_PSES_bhoz2wxg.vhw"}
11/18/2020 5:06:46 PM [NORMAL] - Connecting to language service on pipe /var/folders/n0/8kfv8lw12p16vrk_3hw2lwlh0000gp/T/CoreFxPipe_PSES_g4o53b52.jcs...
11/18/2020 5:06:46 PM [NORMAL] - Language service connected.
2020-11-18_17-12-02

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Nov 18, 2020
@MateuszG
Copy link

I have similar thing, Powershell.ShowSessionMenu. I think since September.

15.01.2021 13:00:26 [NORMAL] - Visual Studio Code v1.52.1 64-bit
15.01.2021 13:00:26 [NORMAL] - PowerShell Extension v2020.6.0
15.01.2021 13:00:26 [NORMAL] - Operating System: Windows 64-bit
15.01.2021 13:00:26 [NORMAL] - Language server starting --
15.01.2021 13:00:26 [NORMAL] -     PowerShell executable: C:\Users\galgmapl\.dotnet\tools\pwsh.exe
15.01.2021 13:00:26 [NORMAL] -     PowerShell args: -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2020.6.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules' -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel 'Normal' -LogPath 'c:\Users\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1610712026-8ffd0b64-9f1f-4cae-9096-ab2fbde7336d1610712018782\EditorServices.log' -SessionDetailsPath 'c:\Users\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-24020-699868' -FeatureFlags @() 
15.01.2021 13:00:26 [NORMAL] -     PowerShell Editor Services args: Import-Module 'c:\Users\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2020.6.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules' -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel 'Normal' -LogPath 'c:\Users\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1610712026-8ffd0b64-9f1f-4cae-9096-ab2fbde7336d1610712018782\EditorServices.log' -SessionDetailsPath 'c:\Users\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-24020-699868' -FeatureFlags @() 
15.01.2021 13:00:26 [NORMAL] - pwsh.exe started.
15.01.2021 13:00:26 [NORMAL] - Waiting for session file
15.01.2021 13:01:26 [NORMAL] - Timed out waiting for session file to appear.
15.01.2021 13:01:26 [NORMAL] - Language server startup failed.
15.01.2021 13:01:26 [ERROR] - The language service could not be started: 
15.01.2021 13:01:26 [ERROR] - Error: Timed out waiting for session file to appear.

@FLAMESpl
Copy link

FLAMESpl commented Jan 24, 2021

Trying it now, got something different:

exthost.log

[2021-01-24 21:26:52.556] [exthost] [info] extension host started
[2021-01-24 21:26:52.707] [exthost] [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication {"startup":false,"extensionId":{"value":"vscode.microsoft-authentication","_lower":"vscode.microsoft-authentication"},"activationEvent":"onAuthenticationRequest:microsoft"}
[2021-01-24 21:26:52.707] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/microsoft-authentication/dist/extension.js
[2021-01-24 21:26:52.723] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"extensionId":{"value":"vscode.debug-auto-launch","_lower":"vscode.debug-auto-launch"},"activationEvent":"*"}
[2021-01-24 21:26:52.723] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/debug-auto-launch/dist/extension
[2021-01-24 21:26:52.727] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"extensionId":{"value":"vscode.emmet","_lower":"vscode.emmet"},"activationEvent":"*"}
[2021-01-24 21:26:52.727] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/emmet/dist/node/emmetNodeMain
[2021-01-24 21:26:52.748] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"extensionId":{"value":"vscode.github","_lower":"vscode.github"},"activationEvent":"*"}
[2021-01-24 21:26:52.748] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/git/dist/main
[2021-01-24 21:26:52.771] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":true,"extensionId":{"value":"vscode.merge-conflict","_lower":"vscode.merge-conflict"},"activationEvent":"*"}
[2021-01-24 21:26:52.772] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/merge-conflict/dist/mergeConflictMain
[2021-01-24 21:26:52.779] [exthost] [info] ExtensionService#_doActivateExtension vscode.search-result {"startup":true,"extensionId":{"value":"vscode.search-result","_lower":"vscode.search-result"},"activationEvent":"*"}
[2021-01-24 21:26:52.779] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/search-result/dist/extension.js
[2021-01-24 21:26:52.788] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode.powershell {"startup":false,"extensionId":{"value":"ms-vscode.powershell","_lower":"ms-vscode.powershell"},"activationEvent":"onLanguage:powershell"}
[2021-01-24 21:26:52.788] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/.vscode/extensions/ms-vscode.powershell-2020.6.0/out/src/main
[2021-01-24 21:26:53.227] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode.js-debug {"startup":false,"extensionId":{"value":"ms-vscode.js-debug","_lower":"ms-vscode.js-debug"},"activationEvent":"onCommand:extension.js-debug.clearAutoAttachVariables"}
[2021-01-24 21:26:53.227] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/extension.js
[2021-01-24 21:26:53.405] [exthost] [info] ExtensionService#_doActivateExtension vscode.github {"startup":true,"extensionId":{"value":"vscode.github","_lower":"vscode.github"},"activationEvent":"*"}
[2021-01-24 21:26:53.405] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/github/dist/extension.js
[2021-01-24 21:26:53.434] [exthost] [info] eager extensions activated
[2021-01-24 21:26:53.454] [exthost] [info] ExtensionService#_doActivateExtension vscode.github-authentication {"startup":false,"extensionId":{"value":"vscode.github-authentication","_lower":"vscode.github-authentication"},"activationEvent":"onAuthenticationRequest:github"}
[2021-01-24 21:26:53.454] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/github-authentication/dist/extension.js
[2021-01-24 21:26:53.465] [exthost] [info] ExtensionService#_doActivateExtension esbenp.prettier-vscode {"startup":false,"extensionId":{"value":"esbenp.prettier-vscode","_lower":"esbenp.prettier-vscode"},"activationEvent":"onStartupFinished"}
[2021-01-24 21:26:53.465] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/.vscode/extensions/esbenp.prettier-vscode-5.8.0/dist/extension
[2021-01-24 21:26:54.538] [exthost] [info] ExtensionService#_doActivateExtension GrapeCity.gc-excelviewer {"startup":false,"extensionId":{"value":"GrapeCity.gc-excelviewer","_lower":"grapecity.gc-excelviewer"},"activationEvent":"onLanguage:plaintext"}
[2021-01-24 21:26:54.538] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/.vscode/extensions/grapecity.gc-excelviewer-3.0.40/dist/extension
[2021-01-24 21:26:54.541] [exthost] [info] ExtensionService#_doActivateExtension mechatroner.rainbow-csv {"startup":false,"extensionId":{"value":"mechatroner.rainbow-csv","_lower":"mechatroner.rainbow-csv"},"activationEvent":"onLanguage:plaintext"}
[2021-01-24 21:26:54.541] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/lszafirski/.vscode/extensions/mechatroner.rainbow-csv-1.8.0/extension
[2021-01-24 21:27:31.417] [exthost] [error] TypeError: Cannot read property 'displayVersion' of undefined
	at SessionManager.showSessionMenu (c:\Users\lszafirski\.vscode\extensions\ms-vscode.powershell-2020.6.0\out\src\session.js:516:55)
	at c:\Users\lszafirski\.vscode\extensions\ms-vscode.powershell-2020.6.0\out\src\session.js:303:91
	at _executeContributedCommand (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:701:220)
	at _.$executeContributedCommand (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:701:595)
	at m._doInvokeHandler (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:892:926)
	at m._invokeHandler (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:892:618)
	at m._receiveRequest (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:891:252)
	at m._receiveOneMessage (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:890:6)
	at c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:888:136
	at l.fire (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:46:801)
	at v.fire (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:233:787)
	at c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:1094:104
	at l.fire (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:46:801)
	at v.fire (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:233:787)
	at t.PersistentProtocol._receiveMessage (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:238:1004)
	at c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:235:927
	at l.fire (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:46:801)
	at p.acceptChunk (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:231:195)
	at c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:230:547
	at Socket.t (c:\Users\lszafirski\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:240:822)
	at Socket.emit (events.js:223:5)
	at addChunk (_stream_readable.js:309:12)
	at readableAddChunk (_stream_readable.js:290:11)
	at Socket.Readable.push (_stream_readable.js:224:10)
	at Pipe.onStreamRead (internal/stream_base_commons.js:181:23) PowerShell.ShowSessionMenu

3-PowerShell Extension Logs.log

24.01.2021 21:26:53 [NORMAL] - Visual Studio Code v1.52.1 64-bit
24.01.2021 21:26:53 [NORMAL] - PowerShell Extension v2020.6.0
24.01.2021 21:26:53 [NORMAL] - Operating System: Windows 64-bit
24.01.2021 21:26:53 [NORMAL] - Language server starting --
24.01.2021 21:26:53 [NORMAL] -     PowerShell executable: C:\Program Files\PowerShell\6\pwsh.exe
24.01.2021 21:26:53 [NORMAL] -     PowerShell args: -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\lszafirski\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2020.6.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\lszafirski\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules' -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel 'Normal' -LogPath 'c:\Users\lszafirski\.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1611520013-3aeceae5-80b2-4af9-963e-efb0b4f56b601611520011206\EditorServices.log' -SessionDetailsPath 'c:\Users\lszafirski\.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-5572-695193' -FeatureFlags @() 
24.01.2021 21:26:53 [NORMAL] -     PowerShell Editor Services args: Import-Module 'c:\Users\lszafirski\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2020.6.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\lszafirski\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules' -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel 'Normal' -LogPath 'c:\Users\lszafirski\.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1611520013-3aeceae5-80b2-4af9-963e-efb0b4f56b601611520011206\EditorServices.log' -SessionDetailsPath 'c:\Users\lszafirski\.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-5572-695193' -FeatureFlags @() 
24.01.2021 21:26:53 [NORMAL] - pwsh.exe started.
24.01.2021 21:26:53 [NORMAL] - Waiting for session file
24.01.2021 21:26:55 [NORMAL] - Session file found
24.01.2021 21:26:55 [NORMAL] - Registering terminal close callback
24.01.2021 21:26:55 [NORMAL] - Registering terminal PID log callback
24.01.2021 21:26:55 [NORMAL] - pwsh.exe PID: 3336
24.01.2021 21:26:55 [NORMAL] - Language server started.
24.01.2021 21:26:55 [NORMAL] - {"status":"started","languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_xcpemdru.zxm","debugServiceTransport":"NamedPipe","debugServicePipeName":"\\\\.\\pipe\\PSES_jrzmgiry.2wv"}
24.01.2021 21:26:55 [NORMAL] - Connecting to language service on pipe \\.\pipe\PSES_xcpemdru.zxm...
24.01.2021 21:26:55 [NORMAL] - Language service connected.

It is with a setting "powershell.powerShellDefaultVersion": "PowerShell (x64)"
changing value to "Windows PowerShell (x64)" makes integrated console work and produces no error in exthost.log.

EDIT: I have updated powershell from 6 to 7 and it works fine now.

@babichomrv
Copy link

This problem was fixed by setting the $PSModulePath system variable to the correct value.

@SydneyhSmith SydneyhSmith removed the Needs: Maintainer Attention Maintainer attention needed! label May 18, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Inactive Will close automatically.
Projects
None yet
Development

No branches or pull requests

9 participants