DisposaBoy / GoSublime

A Golang plugin collection for SublimeText 3, providing code completion and other IDE-like features.
MIT License
3.42k stars 302 forks source link

Autocomplete of local pkgs lags behind source code #737

Closed sinbad closed 5 years ago

sinbad commented 8 years ago

Sometime recently autocomplete stopped updating to reflect code changes in local packages when I save the source. If I force an update in $GOPATH/pkg via either go install or by deleting the relevant subpath of $GOPATH/pkg/darwin_amd64, then autocomplete picks up the code changes. This is tedious to do frequently and never occurred before, and I've been using GoSublime for almost 2 years. I'm not clear on whether the ST3, GS or golang update was the trigger since all updated recently and I'm not using golang quite as often.

Appreciate any help!

Sublime Text 3 Build 3126 Go 1.7.1 (built from source) GoSublime v2016.07.09.19.36.28 OS X 10.11.6

sinbad commented 8 years ago

Oh and I checked the error log and it all looks fine:

Gocode env: gocode.margoEnv{LibPath:"/Users/steve/projects/go_src/pkg/darwin_amd64:/Users/steve/projects/Go/pkg/darwin_amd64", GOOS:"darwin", GOARCH:"amd64", Compiler:"gc", GOROOT:"/Users/steve/projects/go_src", GOPATH:"/Users/steve/projects/Go", InstallSuffix:""}
Gocode pkg: "github.com/github/git-lfs/git"
Gocode pkg: "github.com/github/git-lfs/commands"
Gocode pkg: "github.com/github/git-lfs/git"
Gocode pkg: "github.com/github/git-lfs/commands"
Gocode pkg: "github.com/github/git-lfs/locking"
Gocode pkg: "github.com/github/git-lfs/errors"
Gocode pkg: "github.com/github/git-lfs/locking"
Gocode pkg: "github.com/github/git-lfs/commands"
Gocode pkg: "github.com/github/git-lfs/locking"
Gocode pkg: "github.com/github/git-lfs/commands"

You can see where Gocode is supposedly updating; it adds a new line for the package as soon as I save a source file in it, which suggests it's updating, but autocomplete does not pick up the changes in other packages.