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

Hangs in Git Bash (MINGW46) on Windows 10 #419

Open
metakeule opened this issue Jul 28, 2023 · 4 comments
Open

Hangs in Git Bash (MINGW46) on Windows 10 #419

metakeule opened this issue Jul 28, 2023 · 4 comments
Labels
question Further information is requested

Comments

@metakeule
Copy link

metakeule commented Jul 28, 2023

The pager hangs and does nothing
e.g.

package main

import (
	"bytes"

	"github.com/noborus/ov/oviewer"
)

func main() {

	doc, err := oviewer.NewDocument()
	if err != nil {
		panic(err)
	}

	if err := doc.ReadAll(bytes.NewBufferString("hiho")); err != nil {
		panic(err)
	}

	ov, err := oviewer.NewOviewer(doc)
	if err != nil {
		panic(err)
	}
	if err := ov.Run(); err != nil {
		panic(err)
	}
}

```
@metakeule metakeule changed the title Hangs in Git Gui (MINGW46) Hangs in Git Gui (MINGW46) on Windows 10 Jul 28, 2023
@noborus
Copy link
Owner

noborus commented Jul 28, 2023

I was able to confirm that the code shown works on windows 10, but I don't know the mingw environment.
sorry.

@metakeule metakeule changed the title Hangs in Git Gui (MINGW46) on Windows 10 Hangs in Git Bash (MINGW46) on Windows 10 Aug 15, 2023
@metakeule
Copy link
Author

Sorry, meant Git Bash.
To test:
Just install Git with Git Bash on Windows and run the generated binary in Git Bash.

@noborus
Copy link
Owner

noborus commented Aug 20, 2023

I tried to install it and it worked.

$ /mingw64/bin/git --version
git version 2.41.0.windows.3
$ file /c/Users/noborus/dev/bin/ov
/c/Users/noborus/dev/bin/ov: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows, 13 sections

ov-mingw64

@noborus
Copy link
Owner

noborus commented Aug 22, 2023

Oops, sorry.
The code above also worked.
t

@noborus noborus added the question Further information is requested label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants