gocode icon indicating copy to clipboard operation
gocode copied to clipboard

[Emacs24 - Fedora25] show-menu’: (file-error "Searching for program" "No such file or directory" "gocode")

Open ZenStudioLab opened this issue 9 years ago • 4 comments

image

ZenStudioLab avatar Mar 04 '17 18:03 ZenStudioLab

Can't you read? It's in the title. Your emacs can't find the "gocode". Where do programs look for other programs? In PATH directories. Add your GOPATH/bin to your PATH and you're good to go. Or wherever the gocode binary is. Make sure the right PATH is visible in emacs by doing M-x getenv <enter> PATH <enter>

nsf avatar Mar 04 '17 18:03 nsf

Hello,

Sorry for being idiot. I did add Gopath to my PATH already. But still got some error. show-menu’: (file-error "Searching for program" "No such file or directory" "gocode")

result of M-x getenv <enter> PATH <enter> image

result of ls my GOPATH/bin image

ZenStudioLab avatar Mar 04 '17 18:03 ZenStudioLab

I don't see /home/nerdyhermit/go/bin on that getenv screenshot. That dir should be in PATH that emacs gets.

nsf avatar Mar 04 '17 18:03 nsf

OK I have got it. Thank for your patience. It is a silly mistake that I held thought the GOPATH I already exported /usr/local/go/bin is what I need to do.

ZenStudioLab avatar Mar 05 '17 03:03 ZenStudioLab