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
[WFCORE-3540] hardcode terminal width and height to avoid malformed t… #3062
Conversation
@@ -1650,7 +1650,7 @@ public int getTerminalWidth() { | |||
@Override | |||
public int getTerminalHeight() { | |||
if( !INTERACT ){ | |||
return 0; | |||
return 40; |
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.
Strangely, in the same method when an error occurs, 24 is returned. This value seems random. That is strange to have 24 returned in one case and 40 in another. I looked at GIT history but nothing special. You should perhaps try to replace 24 by 40, I can't see how this could have an effect.
will do. |
2eb7f4d
to
0cb55cb
Compare
Last run, AttachmentTestCase failed due to MissingFormatWidthException from Formatter. Because SimpleTable constructor allows to create object without headers, that makes an empty columnLengths array. It was previously filled with value.length() + 1 as it allows to have terminal width 0 in tests. |
@jfdenise how do you feel about the change in SimpleTable.java ? |
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.
Other than the tiny comment, that is good to go. Thank-you.
@@ -1650,7 +1650,7 @@ public int getTerminalWidth() { | |||
@Override | |||
public int getTerminalHeight() { | |||
if( !INTERACT ){ | |||
return 0; | |||
return 24; |
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.
Perhaps add a comment saying that 24 has no special meaning except that it is a value greater than 0.
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.
thanks, comment is added.
…able view in non interactive mode.
0cb55cb
to
9ceebf0
Compare
test failure is unrelated. |
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.
Thanks, approved.
…able view in non interactive mode.
https://issues.jboss.org/browse/WFCORE-3540