limetext / lime

Open source API-compatible alternative to the text editor Sublime Text
http://limetext.github.io
BSD 2-Clause "Simplified" License
15.3k stars 1.06k forks source link

Error while trying to build Lime Text : termbox compilation fail #543

Closed gbersac closed 9 years ago

gbersac commented 9 years ago

I am in the process to install Lime text on ubuntu 14.04 using this totorial : https://github.com/limetext/lime/wiki/Building-on-Ubuntu-14.04 When I try to run the command :

go get -u github.com/limetext/lime/frontend/termbox

I get the following error message :

# github.com/limetext/lime/frontend/termbox
../termbox/main.go:514: syntax error: unexpected range, expecting {
../termbox/main.go:517: syntax error: unexpected }
../termbox/main.go:592: syntax error: unexpected range, expecting {
../termbox/main.go:595: syntax error: argument to go/defer must be function call
../termbox/main.go:600: non-declaration statement outside function body
../termbox/main.go:605: non-declaration statement outside function body
../termbox/main.go:632: non-declaration statement outside function body
../termbox/main.go:633: syntax error: unexpected }
gbersac commented 9 years ago

I just read the contributing guideline and I am not sure this ticket doesn't belong here any more (though it is likely to require a code change). Sorry, I'll know it for the next time ^^

FichteFoll commented 9 years ago

So yeah, I have zero experience with writing or running Go code since I only follow this repo, but I suggest you to check your Go version.

erbridge commented 9 years ago

You need go 1.4 or later. The syntax changed in that version.

gbersac commented 9 years ago

That's right ! I installed go using :

sudo apt-get install golang

But the repository is outdated. I should consider moving to arch linux ^^

erbridge commented 9 years ago

Try gvm.