Skip to content
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 not displaying anything (on mingw) #222

Closed
hgtok opened this issue Sep 29, 2019 · 11 comments
Closed

termui not displaying anything (on mingw) #222

hgtok opened this issue Sep 29, 2019 · 11 comments

Comments

@hgtok
Copy link

hgtok commented Sep 29, 2019

tested git-bug.exe 0.5.0 (both 386, amd64) on win10 (x64) and win7 (x64)

Installation steps:

  1. extract PortableGit 2.23.0 to C:\PortableGit\
  2. copy git-bug.exe to C:\PortableGit\usr\local\bin\
  3. run PortableGit git-bash.exe (MinGW)
  4. cd to git project
  5. git bug user create
  6. git bug termui << nothing is shown

Any flags to enable verbosity/debug to see what's wrong?

(Update 4 Oct)

  • Found a workaround for this issue:
    winpty git bug termui
    However the interactive UI get sluggish after exiting the subprocess editor (e.g. create new bug, add comment)
@a-hilaly
Copy link
Collaborator

a-hilaly commented Sep 30, 2019

FWIK there are no flags to enable verbosity for git bug termui. Is there any specific exit status or visual bug we can investigate ?

This might be related to PortableGit if this is what you are using. Did you try using any other environnement ?

@MichaelMure
Copy link
Owner

What terminal are you using ?

Does other commands like git bug add of git bug ls work ?

@hgtok
Copy link
Author

hgtok commented Oct 1, 2019

image

just hangs there..

@hgtok
Copy link
Author

hgtok commented Oct 1, 2019

image

no issue with git bug add or git bug ls..

@MichaelMure
Copy link
Owner

Could you try another project using gocui to see if it's git-bug or not ? https://github.com/awesome-gocui/gocui#projects-using-gocui

@hgtok
Copy link
Author

hgtok commented Oct 1, 2019

@a-hilaly i tried on official Git-2.23.0-64-bit.exe installation.. same issue..

@MichaelMure i'm not sure how to use gocui to test this issue.. none of them appears to offer a bash terminal..

Or do you mean to git clone any one of the projects, and try git bug termui on them using official Git client?

@MichaelMure
Copy link
Owner

I mean install one project that use the gocui library (say, https://github.com/gulyasm/jsonui/releases) and test if it works properly. If not, it's likely that gocui is broken, not git-bug.

@hgtok hgtok changed the title termui not displaying anything (on windows) termui not displaying anything (on mingw) Oct 1, 2019
@hgtok
Copy link
Author

hgtok commented Oct 1, 2019

I think we narrowed it, same issue also appears for jsonui

MinGW: cat test.json | ./jsonui_windows_amd64.exe
Result: not working

DOS: type test.json | jsonui_windows_amd64.exe
Result: working!

This lead me to test git-bug on msdos:
MSDOS: git-bug_windows_amd64.exe termui
Result: working!

(But it errors out when I try to create "new bug" on MSDOS, looking for sh. lol )
image

Have updated bug title to reflect MinGW, as that is my use case

@MichaelMure
Copy link
Owner

So it's a gocui compatibility problem. Not much we can do here.

You might want to open an issue at https://github.com/jroimartin/gocui (the original project) and https://github.com/awesome-gocui/gocui (a more maintained fork).

@hgtok
Copy link
Author

hgtok commented Oct 4, 2019

Found a workaround for this issue:
winpty git bug termui

However the interactive UI gets sluggish after exiting the subprocess editor (e.g. create new bug, add comment)

@MichaelMure
Copy link
Owner

Closing as it's now a 3 year old ticket. Feel free to reopen if it's still a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants