-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
program crashes when showing help if terminal height is less than help modal height #63
Comments
That was fast! :) |
With version 0.3.0, this still happens to me on a terminal with height of 18 lines. |
@guss77 that's weird. I can't reproduce that anymore. can you run with logging enabled and send me the backtrace that should be dumped? |
@guss77 you can find details on how to enable logging in the readme: https://github.com/extrawurst/gitui#diagnostics it would be great if you could share the generated log after |
With diagnostics, the log for the crash has this:
|
Ok @guss77 I am still lost on this one. May I ask you a couple of questions to allow me to find this badboy:
|
I'll review the build instructions and see if I can build gitui. |
@guss77 thanks for going through with this. Please build from master it will dump diagnostics into the terminal once it crashes, so u don't have to run with logging. Regarding discord it is the easiest if you come over to crossterm's discord server: https://discord.gg/K4nyTDB - looking forward to figure this out |
Sorry it took me so long - Ubuntu 20.04 carries Rust 1.141 while gitui requires Rust 1.142. With the current master debug build, I can't crash gitui by resizing the terminal, and the help screen shows fine for my use case (for which I reported the problem originally). With more testing I concluded that vertical size is not a problem - I can resize the terminal down to 1 line and it still works, while when resizing horizontally, gitui crashes when going down to 14 characters of width - regardless of whether the help screen is on or not. When crashing due to insufficient terminal width, I get this in stderr:
|
After the update, I can no longer crash gitui by resizing the terminal :-) |
wohoooo 🥳 |
Describe the bug
program crashes when showing help if terminal height is less than help modal height
To Reproduce
Steps to reproduce the behavior:
gitui
h
to display helpExpected behavior
A warning about the terminal height maybe but no crash.
Desktop (please complete the following information):
Additional context
This is an issue when the tool is used in integrated terminals inside IDE where the user might resize the terminal often.
The text was updated successfully, but these errors were encountered: