-
Notifications
You must be signed in to change notification settings - Fork 659
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
I can't get any suggestions at any time,just like the plugin doesn't work. #474
Comments
That's weird, it should work. Probably it can't find your GOROOT and GOPATH. Try running gocode in a separate terminal window: |
As you indicate, the console outputs this information: *:***>gocode -s -debug import ( func main() { |
Well, see what it prints for GOROOT, obviously "fmt" package wasn't resolved and it says that GOROOT is "C:\go". Does that match your Go installation? If you build Go from source code it will set a magic constant GOROOT default to whatever place it was compiled in. If you move the Go compiler suite later to a different location, there will be problems with that kind of approach. As for gocode, it will pass to server whatever environment variables client gets when doing an autocompletion request. Server will use those. |
Alright,but how i config this?like GOROOT or other. |
Environment variables. |
Oh,It's great that you solved my problem. |
main.go:
gocode -f=json --in=main.go autocomplete 52
The text was updated successfully, but these errors were encountered: