-
Notifications
You must be signed in to change notification settings - Fork 656
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
"go get -u github.com/nsf/gocode" don't do anything for me. #359
Comments
Are you able to install any other Go packages successfully? If not, it sounds like your Go installation is broken. I would recommend removing Go and installing it again. See https://golang.org/doc/install.
|
It doesn't work for other package either. |
Yes, I would highly recommend installing Go from its website rather than a package manager. In most cases, it's much easier, more up to date, and works flawlessly. Don't forget to remove your previous installation of Go from Also, make sure you have |
It's also really easy. On Linux, you can simply do: # Install Go on Linux.
curl -L https://golang.org/dl/go1.8.1.linux-amd64.tar.gz | sudo tar zx -C /usr/local/
# Add to ~/.bash_profile.
export PATH="$PATH:/usr/local/go/bin:$HOME/go/bin" Edit: Updated for Go 1.8.1. It's even easier now, because one can rely on default value of GOPATH instead of having to set it. |
You should export PATH="/usr/local/go/bin:$GOPATH/bin:$PATH" so that the newly installed version will be used rather than some other version that might be on your path. |
It's probably even better to uninstall some older version rather than sweep it under the rug. My instructions were for a clean Linux installation that does not have Go installed. |
In fact I am also on the same boat. Installing github.com/nsf/gocode FAILED. Almost all the packages are failing. |
If you installed from .msi delete your go directory and reinstall by using .zip |
Have same problem, "go get" command not working on Ubuntu 19.0.1, all paths configured correctly. |
@99zombies This is an old issue. There are different causes that can lead to the same outcome, and it's likely the people above had another instance of this problem. I suggest looking through the page at https://golang.org/wiki/InstallTroubleshooting, and if you're still having no luck, try asking in one of the resources listed at https://golang.org/help. |
FYI - I had the same issue - I resolved it by setting GOPATH to a valid path |
For me, the problem was fixed by setting the value of the env variable GO111MODULE from "on" to |
go get -u github.com/nsf/gocode |
As the title, when I run the command, it do nothing for me.
And I set the
$GOPATH
, but there is nothing inside$GOPATH/src/github.com
. And there is also no hint after run the command.The text was updated successfully, but these errors were encountered: