-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
termui hanging in FreeBSD #387
Comments
FreeBSD port maintainer for git-bug here. As the go package awesome-gocui is using a custom fork of termbox, it's slightly outdated and hasn't inherited the FreeBSD fixes from upstream and subsequently causing these issues you're experiencing. Since applying the patch aforementioned I'm no longer facing this issue, either:
In any case it would be worth creating an issue there mentioning this. For now, I'll submit a patch on FreeBSD bugzilla including the fixes and we can go from there. Edit: Report has been submitted on bugzilla. As per standards, it'll await for review and will be merged when someone gets an opportunity to. If you want to try this fix locally, apply this patch to the port and rebuild. |
Ho hello, thank you ! So if this patch is accepted in the FreeBSD package, does that mean that this problem is resolved in practice ? Otherwise there is still the possibility to fork the forked (sight) go-termbox and pin this version in git-bug but that's something I would gladly avoid if possible. |
In theory, it's resolved in practice via the package; only because a band-aid is being applied to this very particular case—what it doesn't do is solve the underlying issue. It doesn't stop someone from manually cloning this repo on FreeBSD, building and facing what's been described above. Since it's a one-liner fix it wouldn't be too difficult to have it merged into the fork at awesome-gocui/termbox-go. However, I'm not sure if/when it'll be merged seeing that it hasn't had that much activity. I suggest:
I'll happily complete both 1 and 2. I don't mind either way, really. :) |
Yes the best scenario is to have that merged upstream. Not sure it's going to happen soon because they are in the process of ditching entirely go-termbox to use tcell instead (awesome-gocui/gocui#45). This is a rather slow and painful process. 1 and 2 sounds good to me. Let's keep this issue open as well until it's fully resolved. |
Amended: * Import upstream fix for termui [1] as mentioned here [2]. We can now _actually_ use 'git bug termui' without it indefinitely hanging. [1]: nsf/termbox-go@58d4fcb [2]: MichaelMure/git-bug#387 PR: 246486 Submitted by: Lewis Cook <vulcan@wired.sh> (maintainer) git-svn-id: svn+ssh://svn.freebsd.org/ports/head@535333 35697150-7ecd-e111-bb59-0022644237b5
Amended: * Import upstream fix for termui [1] as mentioned here [2]. We can now _actually_ use 'git bug termui' without it indefinitely hanging. [1]: nsf/termbox-go@58d4fcb [2]: MichaelMure/git-bug#387 PR: 246486 Submitted by: Lewis Cook <vulcan@wired.sh> (maintainer)
In other news, the FreeBSD bugzilla report has been reviewed and merged fixing this issue for the package.
For now I think it's best to wait and see what happens in regards to this, then to act accordingly for termbox. |
Amended: * Import upstream fix for termui [1] as mentioned here [2]. We can now _actually_ use 'git bug termui' without it indefinitely hanging. [1]: nsf/termbox-go@58d4fcb [2]: MichaelMure/git-bug#387 PR: 246486 Submitted by: Lewis Cook <vulcan@wired.sh> (maintainer) git-svn-id: svn+ssh://svn.freebsd.org/ports/head@535333 35697150-7ecd-e111-bb59-0022644237b5
Confirmed that the patch fixes the FreeBSD port version, and I was able to apply the same patch and build git-bug from GitHub source. |
This should be resolved now as gocui doesn't use termbox anymore. |
Amended: * Import upstream fix for termui [1] as mentioned here [2]. We can now _actually_ use 'git bug termui' without it indefinitely hanging. [1]: nsf/termbox-go@58d4fcb [2]: MichaelMure/git-bug#387 PR: 246486 Submitted by: Lewis Cook <vulcan@wired.sh> (maintainer)
When I start termui, I see the git-bug termui interface, but none of my keys work. I have to kill the process to get out.
FWIW, all other git-bug operations seem to work (add, ls, ls-label, etc.)
The text was updated successfully, but these errors were encountered: