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

weired behaviour when calling multiple Console.ReadLine() methods, user input got stuck #218

Closed
pinkli opened this issue Jun 20, 2024 · 2 comments

Comments

@pinkli
Copy link

pinkli commented Jun 20, 2024

when call multitple Console.ReadLine(), I get no user input from the second or the third call.
demo code as below

string? userinput;

Console.Write("User1 > ");
userinput = Console.ReadLine();
Console.WriteLine(userinput);

Console.Write("User2 > ");
userinput = Console.ReadLine();
Console.WriteLine(userinput);

Console.Write("User3 > ");
userinput = Console.ReadLine();
Console.WriteLine(userinput);

Console.Write("User4 > ");
userinput = Console.ReadLine();
Console.WriteLine(userinput);

sometimes it stops at printing "User3 >" without reading the actual user input, sometimes it stops at "User2 >";
"User4 >" never prints in my machine. sometimes the NetPad got freeze not responding.
I'm using Mac X64 Sonoma 14.5, NetPad 0.7.1, .Net 8.

WX20240620-120307@2x

@tareqimbasher
Copy link
Owner

tareqimbasher commented Jun 20, 2024

I'll take a look! Thank you for reporting.

@tareqimbasher
Copy link
Owner

v0.7.2 is released with this bug fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants