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

(consoleapp) Fix exception in mintty-based shells on Windows #278

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

perlun
Copy link
Collaborator

@perlun perlun commented Feb 15, 2022

I had thought about this for some day(s), and decided to give it a look. The fact that winpty exists surely makes this a whole lot easier to "fix", even though it's a bit of a workaround. It does make Perlang much more accessible for people who are locked inside their Windows, so that makes this a noteworthy fix. 😛

Closes #107

@@ -201,7 +205,7 @@ public static int MainWithCustomConsole(string[] args, IConsole console)
replMode: true,
standardOutputHandler: console.Out.WriteLine,
disabledWarningsAsErrors: disabledWarningsAsErrorsList
).RunPrompt();
).RunPrompt(args);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(args is typically empty in these cases, but it doesn't hurt to provide it to future-proof in case it will be non-empty sometime in the future.)

@perlun perlun force-pushed the fix/windows-exception-in-mintty branch 2 times, most recently from 9be825b to dcb40e5 Compare February 15, 2022 20:33
@perlun perlun force-pushed the fix/windows-exception-in-mintty branch from dcb40e5 to 9985fbf Compare February 15, 2022 21:18
@perlun perlun enabled auto-merge (squash) February 15, 2022 21:19
@perlun perlun merged commit ab3c391 into master Feb 15, 2022
@perlun perlun deleted the fix/windows-exception-in-mintty branch February 15, 2022 21:21
@perlun perlun added bug Something isn't working as expected platform support Support for new operating systems and/or architectures labels Feb 18, 2022
@perlun perlun added this to the 0.1.0 milestone Feb 18, 2022
perlun added a commit that referenced this pull request Feb 21, 2022
Introduced in #278, no longer needed. See #285 for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected platform support Support for new operating systems and/or architectures
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Windows installation experience
1 participant