-
-
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
exits on Branches #1470
Comments
please see https://github.com/extrawurst/gitui#diagnostics - the log would be crucial to figure this one out. even better if you have a public repo I can reproduce this in |
Great, thanks! The log is here. This happens with all the repos I've tried today (4-5) in Termux. |
Ok do you have a public repository I can reproduce this with? |
Sure. It happens with any repository I've tried so far. |
I got hit by this issue too. It took me a while to narrow down when it happened and when it didn't because sometimes things seemed to arbitrarily work, and sometimes it would just crash on going to branches. Long story short, I believe this bug is triggered when the terminal size is too small to display the list of branches. You can trigger this bug by opening a gitui in a big terminal, displaying the list of branches, and then resizing the terminal window with click-drag. Once the vertical size of the terminal window is too small to display all the branches, gitui will crash. Here is a log from one such run of GitUI log from shrinking window with branches active until crash
Let me know if there's anything else I can do to help narrow down the root cause! |
Seems likely! This is happening on a phone, which was not explicitly stated but I thought it was obvious from the LineageOS (Android) and Termux references. |
good catch! fixes on master |
Just to double-check:
Is the width used here on purpose? |
@alensiljak good catch. fixed in 669ea61 |
I tried the master version on desktop, resizing the window to an allowed minimum, as suggested by chipbuster. Seems ok. The minimum size seems even smaller than the one on the phone so the implemented solution should fix it. |
Whenever I type B to open the branches view, the program exits. This is happening in Termux on Android. The application works fine otherwise.
I tried with -l but am not sure where the log location is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
See the Branches view or whatever is supposed to be displayed on B.
Context (please complete the following information):
Additional context
Installed via Termux packages.
The text was updated successfully, but these errors were encountered: