Skip to content

ParameterBindingValidationException when you create a new file and set file type to PowerShell #555

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
rkeithhill opened this issue Oct 21, 2017 · 0 comments
Assignees
Labels
Issue-Bug A bug to squash.

Comments

@rkeithhill
Copy link
Contributor

This happens on VSCode 1.17.2 on Windows 10 FCU with Windows PowerShell 5.1.

Open a new VSCode session with no workspace open - configure the extension to start the VS debugger.
Create a new file.
Set the file's type to PowerShell.
The debugger will break at this point with the specified exception:

image

@rkeithhill rkeithhill added the Issue-Bug A bug to squash. label Oct 21, 2017
@rkeithhill rkeithhill self-assigned this Oct 21, 2017
rkeithhill added a commit to rkeithhill/PowerShellEditorServices that referenced this issue Oct 21, 2017
Fix bug where the user can select the bottom most stack frame during interactive session debugging and that generates an error in VSCode when it can't find <No File>.
Fix PowerShell#555 ParameterBindingValidationException when invoking PSSA on an empty PS1 file.
daviwil pushed a commit that referenced this issue Oct 23, 2017
Fix bug where the user can select the bottom most stack frame during interactive session debugging and that generates an error in VSCode when it can't find <No File>.
Fix #555 ParameterBindingValidationException when invoking PSSA on an empty PS1 file.
TylerLeonhardt pushed a commit to TylerLeonhardt/PowerShellEditorServices that referenced this issue Feb 26, 2019
This change enables untitled files to be debugged when they are set to the
'powershell' language mode.

Fixes PowerShell#555.
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.
Projects
None yet
Development

No branches or pull requests

1 participant