Skip to content
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

PowerShellKernel sends CommandFailed on unrecognized command #3326

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

jonsequitur
Copy link
Contributor

@jonsequitur jonsequitur commented Nov 16, 2023

This provides a workaround for PowerShell/PowerShell#20079.


if (pwsh.HadErrors)
if (!success || pwsh.HadErrors)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider returning false from RunSubmitCodeLocally when pwsh.HadErrors is true so that we can just check for !success over here.

@jonsequitur jonsequitur merged commit 7047d36 into dotnet:main Nov 16, 2023
4 checks passed
@colombod colombod added the bug Something isn't working label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants