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

search package only in base gopath #85

Open
assalyn opened this issue Jul 29, 2016 · 3 comments
Open

search package only in base gopath #85

assalyn opened this issue Jul 29, 2016 · 3 comments

Comments

@assalyn
Copy link

assalyn commented Jul 29, 2016

e.g. I have a source dir like this
+src
_+ login_server
_____main.go (package main)
____
+ login
________login.go (package login)

main.go and dir login are children of dir src, login.go in dir login

when I try --instrument=login
complains
cannot find package "login" in any of:
C:\Go\src\login (from $GOROOT)
C:\Go\gopath\src\login (from $GOPATH)
G:\go\zhongshen\server\src\login

even if I add login_server to gopath, it can't work
cannot find package "login" in any of:
C:\Go\src\login (from $GOROOT)
C:\Go\gopath\src\login (from $GOPATH)
G:\go\zhongshen\server\src\login
G:\go\zhongshen\server\src\login_server\src\login

No idea how to make it work

@richard-julien
Copy link

Same problem for me. Do you find any solution ?

@assalyn
Copy link
Author

assalyn commented Sep 19, 2016

@richard-julien Now I use IntellJ's Go Plugin, which can debug golang step by step and visible some-like visual studio for C++, so~

@richard-julien
Copy link

@ChenWee thanks for your answer. I also tried dlv with intellij with some crashes. Anyway, it seems to be the best solution today.

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

No branches or pull requests

2 participants