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

Build fails with gocui errors #10

Closed
carc1n0gen opened this issue May 27, 2016 · 4 comments
Closed

Build fails with gocui errors #10

carc1n0gen opened this issue May 27, 2016 · 4 comments
Assignees
Labels

Comments

@carc1n0gen
Copy link

carc1n0gen commented May 27, 2016

There are no instructions, I got the code with go get and immediately got:

Code/Go/src/github.com/robert-butts/slackterm/gui.go:31: g.Flush undefined (type *gocui.Gui has no field or method Flush, but does have gocui.flush)
Code/Go/src/github.com/robert-butts/slackterm/gui.go:47: undefined: gocui.Quit
Code/Go/src/github.com/robert-butts/slackterm/gui.go:63: undefined: gocui.ErrorUnkView
Code/Go/src/github.com/robert-butts/slackterm/gui.go:75: undefined: gocui.ErrorUnkView
Code/Go/src/github.com/robert-butts/slackterm/gui.go:85: undefined: gocui.ErrorUnkView
Code/Go/src/github.com/robert-butts/slackterm/gui.go:92: undefined: gocui.ErrorUnkView
Code/Go/src/github.com/robert-butts/slackterm/gui.go:106: undefined: gocui.Quit
Code/Go/src/github.com/robert-butts/slackterm/gui.go:203: g.Flush undefined (type *gocui.Gui has no field or method Flush, but does have gocui.flush)
Code/Go/src/github.com/robert-butts/slackterm/gui.go:244: g.Flush undefined (type *gocui.Gui has no field or method Flush, but does have gocui.flush)
Code/Go/src/github.com/robert-butts/slackterm/gui.go:250: g.ShowCursor undefined (type *gocui.Gui has no field or method ShowCursor)
Code/Go/src/github.com/robert-butts/slackterm/gui.go:250: too many errors

Moving to its directory and running go build slackterm.go gives me:

# command-line-arguments
./slackterm.go:31: undefined: StartChannelIdManager
./slackterm.go:32: undefined: StartUserManager
./slackterm.go:33: undefined: StartMessagesManager
./slackterm.go:34: undefined: StartSlackRtmHandler
./slackterm.go:36: undefined: EnterTheGui
@rob05c rob05c closed this as completed in 42bf7c4 May 27, 2016
@rob05c
Copy link
Owner

rob05c commented May 27, 2016

Looks like gocui changed underneath this. Should be fixed. Try it now?

I just vendored gocui (the only third-party dependency), so hopefully it won't happen again.

@rob05c rob05c added the bug label May 27, 2016
@rob05c rob05c changed the title How do I run this? Build fails with gocui errors May 28, 2016
@rob05c rob05c self-assigned this May 28, 2016
@rob05c
Copy link
Owner

rob05c commented May 28, 2016

FYI the case was automatically closed with the commit. If you're still seeing issues, reopen or make a new case.

@carc1n0gen
Copy link
Author

I don't seem to have the ability to reopen the issue but I still get errors trying to build or run it. Maybe I'm not running this correctly, I haven't been using go since 1.4.

go build slackterm.go
# command-line-arguments
./slackterm.go:34: undefined: StartChannelIdManager
./slackterm.go:35: undefined: StartUserManager
./slackterm.go:36: undefined: StartMessagesManager
./slackterm.go:37: undefined: StartSlackRtmHandler
./slackterm.go:39: undefined: EnterTheGui
go run slackterm.go
# command-line-arguments
./slackterm.go:34: undefined: StartChannelIdManager
./slackterm.go:35: undefined: StartUserManager
./slackterm.go:36: undefined: StartMessagesManager
./slackterm.go:37: undefined: StartSlackRtmHandler
./slackterm.go:39: undefined: EnterTheGui

@rob05c rob05c reopened this May 28, 2016
@rob05c
Copy link
Owner

rob05c commented May 28, 2016

go build <file> only builds that file, and slackterm.go needs symbols in the other files. Try just go build?

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

2 participants