-
Notifications
You must be signed in to change notification settings - Fork 446
#991 more robust terminal width detection for international Windows versions #993
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
Conversation
S-Gaertner
commented
Apr 16, 2020
- changed terminal width detection regex pattern for Windows
- check for process termination in order to fail faster
…k for process termination
Codecov Report
@@ Coverage Diff @@
## master #993 +/- ##
============================================
- Coverage 94.68% 94.65% -0.04%
Complexity 415 415
============================================
Files 2 2
Lines 6136 6138 +2
Branches 1637 1638 +1
============================================
Hits 5810 5810
Misses 89 89
- Partials 237 239 +2
Continue to review full report at Codecov.
|
| if (size.intValue() >= 0) { break; } | ||
| try { Thread.sleep(25); } catch (InterruptedException ignored) {} | ||
| } while (System.currentTimeMillis() < now + 2000); | ||
| } while (System.currentTimeMillis() < now + 2000 && t.isAlive()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Were you able to test that this prevents the 2 second timeout when the pattern cannot match anything (e.g. with the old pattern on a German language environment)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I manually tested that on my system with the old pattern. The 2 second delay was gone as soon as I introduced the alive test for the thread.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thank you!
|
Overall looks good. I have some other work in progress but I will try to merge this soon. Thank you for the contribution! |
|
You're welcome! Thank you for this great project :) |
|
Can I ask:
|
|
What I like about picocli:
What I would do without picocli:
|
|
@S-Gaertner Great feedback, thank you! 👍 |