-
Notifications
You must be signed in to change notification settings - Fork 659
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
Gocode not working for specifically one of my packages #237
Comments
Well, if it can't find standard packages, most likely something is wrong with Go installation. |
What |
I think there's nothing wrong with Go installation, because it WORKS for ALL other packages that don't depend on that one package. I have been using it (in LiteIDE) for a long time and there's no problem.
|
It's weird. Is there any sort of temporary storage, optimization or something that could cause errors? (I tried running |
the vim view? i don't know if you have them enabled, but they could be the issue |
@kurojishi no i'm not using vim to code this thing. |
Gocode doesn't save anything on disk, except its config file, but as log shows, the |
I seem to have a somewhat similar problem. Were you perhaps using a release candidate of Go 1.3 @phaikawl ? My specific thing: ➜ interpreter git:(master) ls -la
total 12
drwxr-xr-x 2 player player 4096 Jun 20 20:44 .
drwxr-xr-x 15 player player 4096 Jun 20 20:44 ..
-rw-r--r-- 1 player player 588 Jun 20 20:44 interpreter.go
➜ interpreter git:(master) pwd
/home/player/go/src/bitbucket.org/aktau/ansible-go/interpreter gocode debug output
|
@aktau Gocode doesn't parse source code of your package, it needs to be compiled. |
I mean gocode uses compiled libraries to resolve stuff, that is the file something like: |
@nsf it is indeed true that the package in question is not where it should be according to you: ➜ pkg pwd
/home/player/go/pkg
➜ pkg tree
.
└── linux_amd64
├── code.google.com
│ └── p
│ └── go.net
│ └── websocket.a
├── github.com
│ ├── ActiveState
│ │ ├── tail
│ │ │ ├── ratelimiter.a
│ │ │ ├── util.a
│ │ │ └── watch.a
│ │ └── tail.a
│ ├── cloudfoundry
│ │ └── gosigar.a
│ └── howeyc
│ └── fsnotify.a
├── gopkg.in
│ └── tomb.v1.a
└── launchpad.net
├── goyaml.a
└── tomb.a Perhaps the behaviour of the go toolchain changed? I use What should I do to force Go to compile these things? I'm going to look around on the system to see if these packages are anywhere else... UPDATE: ➜ pkg sudo find / -name 'interpreter.*'
/home/player/go/src/bitbucket.org/aktau/ansible-go/interpreter/interpreter.go
/home/player/go/src/bitbucket.org/aktau/ansible-go/client/interpreter.go
/home/player/go/src/bitbucket.org/aktau/ansible-go/server/interpreter.go It's getting stranger and stranger. |
|
What do you use @nsf, do you always just |
Yes, I use |
Mentioned in nsf#237.
Mentioned in nsf#237.
At first it works normally, but just stopped working altegether for my specific package for a while. (for other packages that don't depend on it, gocode works normally)
I used
gocode -s -debug
to see the problem, and it outputs a lot of these:Import path "github.com/phaikawl/wade/services/http" was not resolved
it even outputs these silly things:
Import path "fmt" was not resolved
Import path "reflect" was not resolved
I tried
gocode drop-cache
, but nothing changes.Full log at https://gist.github.com/phaikawl/4c562f7264070bd1dd5c.
My full package code is at https://github.com/phaikawl/wade in case you want to test it.
The text was updated successfully, but these errors were encountered: