Skip to content
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

Can not jump to GOROOT source in go1.4 #10

Open
GoogleCodeExporter opened this issue Mar 28, 2015 · 0 comments
Open

Can not jump to GOROOT source in go1.4 #10

GoogleCodeExporter opened this issue Mar 28, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.  install go 1.4 with homebrew or compile it from source code
2.  set the $GOROOT and locate it with the new install go soruce,
3.  write a go file with code which call with std function, such as 
`json.Marshal()`
4.  trigger godef at the cursor on json.Marshal()

It should jump to the source code in GOROOT, 
but actually it does nothing.

Vsersion Info:  go version go1.4 darwin/amd64

I believe the cause is the go source code change its directory architecture, 
there are no more  $GOROOT/src/pkg.
Change the code at 
https://code.google.com/p/rog-go/source/browse/exp/cmd/godef/godef.go#49
from
            gopath = append(gopath, r+"/src/pkg")
to

    gopath = append(gopath, r+"/src")
could easy solve the problem.

Original issue reported on code.google.com by [email protected] on 5 Jan 2015 at 11:32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant