ov icon indicating copy to clipboard operation
ov copied to clipboard

Hangs in Git Bash (MINGW46) on Windows 10

Open metakeule opened this issue 2 years ago • 4 comments

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 avatar Jul 28 '23 14:07 metakeule

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

noborus avatar Jul 28 '23 15:07 noborus

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

metakeule avatar Aug 15 '23 14:08 metakeule

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 avatar Aug 20 '23 00:08 noborus

Oops, sorry. The code above also worked. t

noborus avatar Aug 22 '23 15:08 noborus