Skip to content

VSCode Error When Trying to Run Any Powershell Script #5085

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
1 of 6 tasks
Kilya419 opened this issue Nov 7, 2024 · 3 comments
Closed
1 of 6 tasks

VSCode Error When Trying to Run Any Powershell Script #5085

Kilya419 opened this issue Nov 7, 2024 · 3 comments
Labels
Issue-Bug A bug to squash. Needs: Author Feedback Please give us the requested feedback!

Comments

@Kilya419
Copy link

Kilya419 commented Nov 7, 2024

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

VSCode Error When Trying to Run Any Powershell Script. I can run directly from the terminal window but now from my coding window

PowerShell Version

Name                           Value                                                                                   
----                           -----                                                                                   
PSVersion                      5.1.22621.2506                                                                          
PSEdition                      Desktop                                                                                 
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
BuildVersion                   10.0.22621.2506                                                                         
CLRVersion                     4.0.30319.42000                                                                         
WSManStackVersion              3.0                                                                                     
PSRemotingProtocolVersion      2.3                                                                                     
SerializationVersion           1.1.0.1

Visual Studio Code Version

1.95.1
x64

Extension Version

Steps to Reproduce

Not sure how to reproduce it just stopped working

Visuals

No response

Logs

No response

@Kilya419 Kilya419 added Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed! labels Nov 7, 2024
@andyleejordan
Copy link
Member

Hi, can you please try PowerShell 7? PowerShell 5.1 support is provided on a best-effort basis.

@JustinGrote
Copy link
Collaborator

Possible #5084 dupe.

@JustinGrote JustinGrote added Needs: Author Feedback Please give us the requested feedback! and removed Needs: Triage Maintainer attention needed! labels Nov 9, 2024
@Kilya419
Copy link
Author

Kilya419 commented Nov 9, 2024

Powershell 7 did the trick. Thank you.

@Kilya419 Kilya419 closed this as completed Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash. Needs: Author Feedback Please give us the requested feedback!
Projects
None yet
Development

No branches or pull requests

3 participants