Using Go-Plus with gb (http://getgb.io/) - Not picking up vendored path for autocomplete #325
Comments
Actually autocomplete is not working for any vendored package installed using "go get" as well. |
Can you please paste the output from |
Don't do that. Instead:
|
Don't do that as well. GOPATH is a fixed path, it shouldn't depend on PWD. |
Thanks for the detailed note @nsf . Works like a charm. |
🎉 Thanks, @nsf! |
I have a different issue (note: i do not have Autocomplete is working, however whenever I save a go file
here what I did to see if it would resolve my issue based on the comments above.
if anyone has a solution, I would appreciate the steps needed to get this to work. UPDATE - already reported here: #207 |
Listed is my settings as follows
Installed Atom with go-plus and all necessary libraries
Installed direnv (http://direnv.net/) environment switcher based on current project
Created a project using gb (getgb.io)
Added third party libraries using "gb vendor" which saves to vendor/pkg folder in $PWD
Created a .envrc file based on direnv profile. Content is
export GOOS=darwin
export GOARCH=amd64
gocode set lib-path $PWD/pkg/$GOOS_$GOARCH
export GOPATH=$(PWD)/vendor:$GOPATH
Initiated or executed "atom ." from $PWD to start the editor
I am now attempting to autocomplete the vendored library and it fails.
Am I missing anything here?
Since I initiated "atom ." from the $PWD context with the switched environment variable with the vendored folder added, it should autocomplete.
Why isn't it doing so?
Is atom+go-plus overriding $GOPATH ?
Please enlighten?
The text was updated successfully, but these errors were encountered: