Comments (9)
from gocode.
If you're like me and wondering how to get gocode
working with YouCompleteMe/Vim, here's what I did: ycm-core/ycmd#1090 (comment)
from gocode.
@phenixrizen is this in module-aware mode per chance?
from gocode.
@myitcv I'm not using module-aware mode
from gocode.
@myitcv I've built gocode with 1.11 and made sure I killed the daemon and removed the socket file. I've ran the daemon with the debug flag and I'm getting the following output when it's trying to do a dot lookup of methods:
2018/08/29 08:44:06 -------------------------------------------------------
2018/08/29 08:44:06 Error parsing input file (outer block):
2018/08/29 08:44:06 /home/pr/gosrc/src/github.com/phenixrizen/teststorage/main.go:26:5: expected selector or type assertion, found ';'
2018/08/29 08:44:06 /home/pr/gosrc/src/github.com/phenixrizen/teststorage/main.go:28:2: expected ';', found containers
2018/08/29 08:44:06 Elapsed duration: 1.314347ms
2018/08/29 08:44:06 Offset: 0
2018/08/29 08:44:06 Number of candidates found: 0
2018/08/29 08:44:06 Candidates are:
2018/08/29 08:44:06 =======================================================
from gocode.
@myitcv Also noticed that if I don't ad a . it thinks st is not a valid type, therefore it cannot find the methods:
2018/08/29 09:27:23 -------------------------------------------------------
2018/08/29 09:27:23 Elapsed duration: 1.205946ms
2018/08/29 09:27:23 Offset: 0
2018/08/29 09:27:23 Number of candidates found: 4
2018/08/29 09:27:23 Candidates are:
2018/08/29 09:27:23 package spew
2018/08/29 09:27:23 package storage
2018/08/29 09:27:23 type string string
2018/08/29 09:27:23 var st invalid type
2018/08/29 09:27:23 =======================================================
from gocode.
from gocode.
@myitcv You can clone this repo: https://github.com/phenixrizen/testjsondb.git
I dug into this and the package.Scope returned in the call on line 34 of internal/suggest.go returns the following Scope if I type "db" on line 16 of main.go in testjsondb:
(*types.Scope)(0xc0000c8870)(function scope 0xc0000c8870 {
. var db invalid type
. var err invalid type
})
from gocode.
This works properly with go1.11, I didn't notice the change to not look at source outside the stdlib.
from gocode.
Related Issues (20)
- Intellisense not working for imported packages when using dep HOT 3
- can't find package in gopath HOT 12
- Panic when autocompleting files under GOPATH HOT 2
- company-go: unwanted completion menu pops up right after left curly brace HOT 3
- No auto-complete with type-assertions HOT 4
- gocode: autocomplete broken in VS Code HOT 3
- Gabage completions after `..` or `...` HOT 2
- missing dependency HOT 1
- Use claat offline
- I can't install
- gocode: not restarting HOT 2
- Contributing
- panic: runtime error: slice bounds out of range [:-1] HOT 2
- Unable to recompile gocode after upgrading golang HOT 1
- Code completion always shows "PANIC" HOT 1
- add build on save to emacs plugin HOT 2
- Antivirus software terminates and detects go-code as infected with Win32/Xpaj.gen virus HOT 1
- Autocomplete and dep's [ignored] tag HOT 2
- Performance problems on code completion suggestions HOT 13
- Automatic prompting function for package paths HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocode.