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

v.Editor undefined #42

Open
daveroberts opened this issue Feb 8, 2017 · 7 comments
Open

v.Editor undefined #42

daveroberts opened this issue Feb 8, 2017 · 7 comments
Labels

Comments

@daveroberts
Copy link

$ 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 Benaiah added the bug label Feb 8, 2017
@Benaiah
Copy link
Contributor

Benaiah commented Feb 8, 2017

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
Copy link
Contributor

cyberj commented Feb 10, 2017

Maybe your version of gocui is too old. Try :

go get -u github.com/jroimartin/gocui

@daveroberts
Copy link
Author

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
Copy link
Contributor

cyberj commented Feb 11, 2017

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

@daveroberts
Copy link
Author

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

@daveroberts
Copy link
Author

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
Copy link

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.

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

No branches or pull requests

4 participants