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
Address #166: Set history file max size from inputrc via JLine #183
Conversation
OK, this is failing because there's no |
I have an
So I think it just needs a failsafe where if |
Ah, thanks! That explains why I was having trouble isolating this error. I'll put in a fix. |
- missing history-size declaration - unparseable history-size value Also assert that stderr is empty in various integration tests, which came up while testing this.
(should-contain #"Unmatched delimiter.+\n.+\n.+Unmatched delimiter" (str @fake-out))) | ||
|
||
(it "does not print an error when given empty input lines" | ||
(main/launch-standalone {:input-stream | ||
(java.io.ByteArrayInputStream. | ||
(.getBytes "\n\n\n")) | ||
:output-stream @fake-out}) | ||
(should= "" (str @fake-err)) |
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.
I wonder if this addition actually obviates these existing should-not-contain
checks on stdout, or if those errors might really appear on stdout if a bug is present.
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.
Hrm, great question - I suspect you're right that these should've been checks against fake-err
. In any case, non-blocker. Thanks!
OK, this works better, and I fixed an additional issue around possibly malformed |
Thanks!! 🎉 |
And thank you! |
Set history file max size based on inputrc, using newer jline2 to support this configuration.
Please let me know if there are any tests you would like to see.