-
Notifications
You must be signed in to change notification settings - Fork 524
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
When I start Visual Studio, I get a message stating "Unable to find PowerShell! Do you have it installed? You can also configure custom installations with the 'powershell.powerShellAdditionalExePaths' setting".
I don't have any custom installations of Power Shell, in fact, I just updated to 7.4.0 to see if this error goes away but no luck.
Below is my version table:
Name Value
PSVersion 7.4.0
PSEdition Core
GitCommitId 7.4.0
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
Unfortunately, when I try to debug from Visual Studio Code, I get the following errors:
12/27/2023 2:18:32 PM [NORMAL] - Visual Studio Code: v1.85.1 64-bit on Windows 64-bit
12/27/2023 2:18:32 PM [NORMAL] - PowerShell Extension: v2023.8.0
12/27/2023 2:18:32 PM [ERROR] - Error occurred while searching for a PowerShell executable:
TypeError: t.startsWith is not a function
12/27/2023 2:18:32 PM [ERROR] - Unable to find PowerShell! Do you have it installed? You can also configure custom installations with the 'powershell.powerShellAdditionalExePaths' setting.
Any help would be greatly appreciated as I'm dead in the water!
Regards
PowerShell Version
PSVersion 7.4.0Visual Studio Code Version
Visual Studio Code: v1.85.1 64-bit on Windows 64-bitExtension Version
ms-vscode.powershell@2023.11.1Steps to Reproduce
Open Visual Studio Code
Visuals
No response
Logs
12/27/2023 2:18:32 PM [NORMAL] - Visual Studio Code: v1.85.1 64-bit on Windows 64-bit
12/27/2023 2:18:32 PM [NORMAL] - PowerShell Extension: v2023.8.0
12/27/2023 2:18:32 PM [ERROR] - Error occurred while searching for a PowerShell executable:
TypeError: t.startsWith is not a function
12/27/2023 2:18:32 PM [ERROR] - Unable to find PowerShell! Do you have it installed? You can also configure custom installations with the 'powershell.powerShellAdditionalExePaths' setting.