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
x/tools/cmd/guru: vim-guru can't find description for objects if package not in GOPATH #15797
Comments
This may be working as expected. |
I don't know whether it's bug or not. But it would be nice if it's working also in my project directory which may not be inside $GOPATH. Also godef was working, but it seems it's not part of golang project though. |
How do you build your project if it is not in GOPATH? Do you use gb?
Maybe this issue should be about adding support for gb projects to guru?
|
Why it should be?
and my $GOPATH is: |
You are right, projects containing only package main can be built this way. BTW, the reported error only occurs if an identifier is defined in a different file. |
If guru could work outside the |
CL https://golang.org/cl/30451 mentions this issue. |
Thank you, @alandonovan! |
Just updated! Works like a charm :) |
Please answer these questions before submitting your issue. Thanks!
go version
)?go env
)?osx 10.11.4 amd64
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
I'm using guru to find object's definitions in my package. I'm running it's as it should be:
guru definition main.go:#260,#269
(which specifies bytes position of start and end of my object)
(I run it inside vim-go, but it's don't work even if I ran it by hand from command line)
I expect to find out a position where this element was defined
guru: directory <workdir> is not beneath any of these GOROOT/GOPATH directories: $GOPATH $GOROOT
The text was updated successfully, but these errors were encountered: