asciimoo / wuzz

Interactive cli tool for HTTP inspection
GNU Affero General Public License v3.0
10.57k stars 412 forks source link

v.Editor undefined #42

Open daveroberts opened 7 years ago

daveroberts commented 7 years ago
$ go get github.com/asciimoo/wuzz
# github.com/asciimoo/wuzz
../code/src/github.com/asciimoo/wuzz/wuzz.go:202: v.Editor undefined (type *gocui.View has no field or method Editor)
../code/src/github.com/asciimoo/wuzz/wuzz.go:213: v.Editor undefined (type *gocui.View has no field or method Editor)
../code/src/github.com/asciimoo/wuzz/wuzz.go:231: v.Editor undefined (type *gocui.View has no field or method Editor)
../code/src/github.com/asciimoo/wuzz/wuzz.go:249: assignment count mismatch: 2 = 1
../code/src/github.com/asciimoo/wuzz/wuzz.go:469: g.SetManagerFunc undefined (type *gocui.Gui has no field or method SetManagerFunc)
../code/src/github.com/asciimoo/wuzz/wuzz.go:843: g.InputEsc undefined (type *gocui.Gui has no field or method InputEsc)
../code/src/github.com/asciimoo/wuzz/wuzz.go:913: undefined: gocui.Output256
../code/src/github.com/asciimoo/wuzz/wuzz.go:913: too many arguments in call to gocui.NewGui
../code/src/github.com/asciimoo/wuzz/wuzz.go:913: assignment count mismatch: 2 = 1
$ go version
go version go1.7.5 linux/amd64
Benaiah commented 7 years ago

I can't repro this (also on Linux, but go 1.6) - I'll see if I can test with go 1.7.5 and see if it repros.

EDIT: updated my go version to 1.7.4 (the current debian unstable release), and still couldn't repro. Currently figuring out how to build go 1.7.5 from source so I can test that version.

cyberj commented 7 years ago

Maybe your version of gocui is too old. Try :

go get -u github.com/jroimartin/gocui
daveroberts commented 7 years ago

I updated gocui and wuzz installed without issue. Is there a way to specify a version dependency of gocui on wuzz so this doesn't happen to others?

cyberj commented 7 years ago

With the future dependency management tool : https://github.com/golang/dep but not production ready :)

daveroberts commented 7 years ago

Until Go has proper dependency management it may be worth adding this information to the installation instructions.

daveroberts commented 7 years ago

I saw that a feature was added to wuzz in order to support insecure SSL certs. I removed the wuzz source and re-downloaded the code and got a different error:

$ go get github.com/asciimoo/wuzz
# github.com/asciimoo/wuzz
asciimoo/wuzz/wuzz.go:1059: g.ASCII undefined (type *gocui.Gui has no field or method ASCII)

I removed the jroimartin/gocui code, re-downloaded that, then re-downloading wuzz, and now wuzz works. This information may be helpful to other confused users.

tehbilly commented 7 years ago

Might want to vendor dependencies. Don't have to use go dep to do that. Glide works well, and is likely to be very similar to the linked utility.