Open chmouel opened 6 months ago
What happens here is that the <c-o>
handler tries to throw the error "Feature not available for users using GPG", but nobody catches it, and so it bubbles up all the way into gocui, which panics seeing the error.
Which means that there are two potential solutions to this bug:
The first of these is tricky and requires more work (see here; I'm not really sure I understand that comment though...).
The second is much easier, all it takes is a call to c.Error(err)
at the appropriate point in the call chain. A good place might be in MenuController.press()
. However, an even better fix would be to do #3491, this would solve it once and for all everywhere.
Describe the bug A clear and concise description of what the bug is.
When editing a GPG signed commit, and doing C-o e to Open in Editor lazygit crash
To Reproduce Steps to reproduce the behavior:
Expected behavior not crashing
Screenshots If applicable, add screenshots to help explain your problem.
Version info:
commit=, build date=, build source=homebrew, version=0.41.0, os=darwin, arch=arm64, git version=2.44.0
Additional context Add any other context about the problem here.
Note: please try updating to the latest version or manually building the latest
master
to see if the issue still occurs.