gizak / termui

Golang terminal dashboard
MIT License
13.23k stars 786 forks source link

too many arguments in call to stack.ParseDump #197

Closed covertbert closed 6 years ago

covertbert commented 6 years ago

When trying to implement this package and run go build, even in it's most basic form with simply err := ui.Init(), I get the error stated in the title.

Here's a stack trace:

go build
# github.com/gizak/termui
../../../go/pkg/mod/github.com/gizak/termui@v2.3.0+incompatible/render.go:107:30: too many arguments in call to stack.ParseDump
    have (*bytes.Reader, *os.File, bool)
    want (io.Reader, io.Writer)
../../../go/pkg/mod/github.com/gizak/termui@v2.3.0+incompatible/render.go:112:15: undefined: stack.Aggregate
../../../go/pkg/mod/github.com/gizak/termui@v2.3.0+incompatible/render.go:112:33: gs.Goroutines undefined (type []stack.Goroutine has no field or method Goroutines)
make: *** [build] Error 2
covertbert commented 6 years ago

It's worth noting that this only happens in 2.3.0, 2.2.0 works fine. Maybe the docs aren't up-to-date?

covertbert commented 6 years ago

Closing as it's the same issue as #196