nsf / godit

A very religious text editor
MIT License
576 stars 77 forks source link

Cannot compile and run godit. #9

Closed joepoe closed 9 years ago

joepoe commented 11 years ago

Must be doing something wrong:

$ go run /Users/johanlundberg/gocode/src/github.com/nsf/godit/godit.go

src/github.com/nsf/godit/godit.go:53: undefined: view_tree src/github.com/nsf/godit/godit.go:54: undefined: view_tree src/github.com/nsf/godit/godit.go:55: undefined: buffer src/github.com/nsf/godit/godit.go:56: undefined: vcommand_class src/github.com/nsf/godit/godit.go:59: undefined: overlay_mode src/github.com/nsf/godit/godit.go:87: undefined: buffer src/github.com/nsf/godit/godit.go:131: undefined: buffer src/github.com/nsf/godit/godit.go:183: undefined: buffer src/github.com/nsf/godit/godit.go:336: undefined: view_tree src/github.com/nsf/godit/godit.go:365: undefined: view_tree src/github.com/nsf/godit/godit.go:365: too many errors

nsf commented 11 years ago

go run doesn't compile the whole package, it compiles only the files you're passing to it as arguments. Use go get instead. Read more about it here: http://golang.org/doc/code.html and there: http://golang.org/cmd/go/

nsf commented 11 years ago

Well, to be fair if you have downloaded the godit already, you can just use go install within its directory. go get downloads and installs it for you.

joepoe commented 11 years ago

Thanks for your reply and the links. I never really got my head around the source structure, my short scripts tend to work anyway. I guess it's about time I invest some more and try to understand it.

/j

On Wednesday, September 4, 2013, nsf wrote:

Well, to be fair if you have downloaded the godit already, you can just use go install within its directory. go get downloads and installs it for you.

— Reply to this email directly or view it on GitHubhttps://github.com/nsf/godit/issues/9#issuecomment-23765995 .