go-symbols icon indicating copy to clipboard operation
go-symbols copied to clipboard

Symbols not found inside godep GOPATH

Open liggitt opened this issue 8 years ago • 2 comments

(Moved from https://github.com/Microsoft/vscode-go/issues/250, I didn't realize the symbol lookup was a separate project)

I have a project using godeps to nest vendored packages.

The project root is at /Users/myuser/go/src/github.com/myuser/myrepo

The "go.gopath" setting is set to "/Users/myuser/go/src/github.com/myuser/myrepo/Godeps/_workspace:/Users/myuser/go"

Most things work (definition finding, etc), but "Show all symbols" does not include things inside the nested Godeps path (which is Godeps/_workspace relative to the project folder)

liggitt avatar Mar 17 '16 14:03 liggitt

(Moved from https://github.com/Microsoft/vscode-go/issues/250#issuecomment-197880533)

Check this branch of my fork of the go-symbols tool which use the build context for lookups.

I have an idea of how to make my branch backwards compatible with current go-symbols' behavior by creating a build.FakeContext, but it's low priority for me right now since the current behavior is pretty much broken for every Go project I work with due to vendor usage.

I think this tool would also benefit from some sort of caching.

We might want to take this discussion to the go-symbols project. cc @newhook

ironcladlou avatar Mar 17 '16 14:03 ironcladlou

@newhook, any thoughts here?

ironcladlou avatar Apr 09 '16 22:04 ironcladlou