Description
Prerequisites
- I have written a descriptive issue title.
- I have searched all open and closed 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
I am getting this error every time I start VS code
4/16/2023 1:10:06 PM [NORMAL] - pwsh.exe started.
4/16/2023 1:10:06 PM [NORMAL] - Waiting for session file...
4/16/2023 1:10:36 PM [WARNING] - Loading the PowerShell extension is taking longer than expected. If you're using privilege enforcement software, this can affect start up performance.
4/16/2023 1:14:08 PM [NORMAL] - Timed out waiting for session file to appear!
4/16/2023 1:14:08 PM [ERROR] - PowerShell process failed to start:
4/16/2023 1:14:08 PM [ERROR] - Timed out waiting for session file to appear!
4/16/2023 1:14:08 PM [ERROR] - Unknown session status 'undefined' with reason 'undefined
PowerShell Version
Name Value
---- -----
PSVersion 7.1.4
PSEdition Core
GitCommitId 7.1.4
OS Microsoft Windows 10.0.19044
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
[email protected]
1.77.3
704ed70d4fd1c6bd6342c436f1ede30d1cff4710
x64
Extension Version
Steps to Reproduce
the error is produced at each start of Visual studio Code, both by standard or run as admin. Tried to uninstall extension and reinstall. does not fix
get this error
The terminal process "C:\Program Files\PowerShell\7\pwsh.exe '-NoProfile', '-ExecutionPolicy', 'Bypass', '-Command', 'Import-Module 'c:\Users\ahmads.vscode\extensions\ms-vscode.powershell-2023.3.3\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2023.3.3' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\ahmads.vscode\extensions\ms-vscode.powershell-2023.3.3\modules' -EnableConsoleRepl -StartupBanner "PowerShell Extension v2023.3.3 Copyright (c) Microsoft Corporation. https://aka.ms/vscode-powershell Type 'help' to get help. " -LogLevel 'Normal' -LogPath 'c:\Users\ahmads\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\logs\1681614605-ae62c778-393e-45ea-aa23-844718bebce11681614602721\EditorServices.log' -SessionDetailsPath 'c:\Users\ahmads\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\sessions\PSES-VSC...
Visuals
Logs
No response
Metadata
Metadata
Assignees
Type
Projects
Status