Skip to content

Failed to start PowerShell Extension VsCode on Mac Ventura 13.3 M1 #4497

@jcstorino

Description

@jcstorino

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

PowerShell extension not load...

`05/04/2023 11:35:44 [NORMAL] - PowerShell Editor Services args: Import-Module '/Users/jcstorino/.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 '/Users/jcstorino/.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 '/Users/jcstorino/Library/Application Support/Code/User/globalStorage/ms-vscode.powershell/logs/1680705343-b7385f7a-9f47-4169-9977-ce5d2963e2861680705342975/EditorServices.log' -SessionDetailsPath '/Users/jcstorino/Library/Application Support/Code/User/globalStorage/ms-vscode.powershell/sessions/PSES-VSCode-66251-378352.json' -FeatureFlags @()

05/04/2023 11:35:44 [NORMAL] - pwsh started.

05/04/2023 11:35:44 [NORMAL] - Waiting for session file...

05/04/2023 11:36:14 [WARNING] - Loading the PowerShell extension is taking longer than expected. If you're using privilege enforcement software, this can affect start up performance.

05/04/2023 11:39:45 [NORMAL] - Timed out waiting for session file to appear!

05/04/2023 11:39:45 [ERROR] - PowerShell process failed to start:

05/04/2023 11:39:45 [ERROR] - Timed out waiting for session file to appear!

05/04/2023 11:39:45 [ERROR] - Unknown session status 'undefined' with reason 'undefined
`

PowerShell Version

PS VSC > $psversionTable

Name                           Value
----                           -----
PSVersion                      7.3.3
PSEdition                      Core
GitCommitId                    7.3.3
OS                             Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar  6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visual Studio Code Version

PS VSC > code --version                                                   
1.77.0
7f329fe6c66b0f86ae1574c2911b681ad5a45d63
arm64

Extension Version

PS VSC > code --list-extensions --show-versions | Select-String powershell

ms-vscode.powershell@2023.3.3

Steps to Reproduce

Just open VSC and wait for extension load.

Visuals

Captura de Tela 2023-04-05 às 11 45 58

Logs

vscode-powershell.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions