deoplete-plugins/deoplete-go

autocomplete candidate not expection

cossonleo opened this issue · 10 comments

It is not expection when I donit set GOPATH, but is normal after I set GOPATH.

Do you mean exception? If so, can you post the entire error?

@nhooyr No error, but not the candidate I want

It's unclear what you mean. Could you be more specific? What is the candidate you want?

@nhooyr
like this, if do not set GOPATH, complete like picture 1; if set, picture 2
1:
20161118173312
2:
20161118173430

You have to set $GOPATH, otherwise how will gocode know how to complete the code?

I think @ahlks said deoplete-go should print warning if users don't set $GOPATH

zchee commented

@nhooyr @Shougo Thanks for comment :)

@ahlks Ah, If want to deoplete-go should print warning if users don't set $GOPATH , That user also can't go get if don't set the $GOPATH until go1.8.
IIRC go1.8 will automatically set $GOPATH to $HOME/go if not set, So it might changes gocode behavior.
However, It remains the env which is essential for Go language. I think "displays the error message" is not the scope of deoplete-go.

@nhooyr @Shougo @zchee Thanks
I understand.
When use neocomplete in vim, it is the same either set or not. So I mistakenly think deoplete-go is the same.

This is closable?

zchee commented

It seems good to close this thread.
Close.