Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Better error message when using unsupported PowerShell #4521

Closed
Assignees
Labels
Area-Tech DebtIssues for Tech Debt Days! Issue-BugA bug to squash.
@saeedt2

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

ms-vscode.powershell@2023年3月3日
1.77.3
704ed70d4fd1c6bd6342c436f1ede30d1cff4710
x64

Extension Version

ms-vscode.powershell@2023年3月3日

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\PowerShell7円\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\logs1681614605円-ae62c778-393e-45ea-aa23-844718bebce11681614602721\EditorServices.log' -SessionDetailsPath 'c:\Users\ahmads\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\sessions\PSES-VSC...

Visuals

image

Logs

No response

Metadata

Metadata

Labels

Area-Tech DebtIssues for Tech Debt Days! Issue-BugA bug to squash.

Type

No type

Projects

Status

Done

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /