Comments (6)
I'm not able to reproduce this when opening files, but if you are opening new Go files, perhaps you are encountering #3?
from gocode.
I'm not able to reproduce this when opening files, but if you are opening new Go files, perhaps you are encountering #3?
No, sometimes when the external package is big/complex, it seems will fail. I think it is caused by some different reason. I don't know how to get the error from vim/ycmd (even i added -debug option for gocode, the output from ycm seems have no help).
from gocode.
To get the debug output, you will have to start gocode manually.
$ gocode close
$ gocode -s -debug
Then you should be able to open up Vim and type normally, and the completion output will show up in terminal.
from gocode.
Where should the -source
option be added for external package completion?
from gocode.
-source
is necessary to type-check packages from source (rather than export data from a build), so it shouldn't be necessary for external packages to be completed. The -source
flag should be provided on the client side, so you will have to configure it in your editor settings.
from gocode.
Closing this issue, as the current recommendation for autocompletion is to use gopls
.
from gocode.
Related Issues (20)
- Autocomplete does not work within incomplete if statements HOT 1
- merge stamblerre/gocode and mdempsky/gocode (in the same way as godef) HOT 4
- gocode is using gigabytes and gigabytes of memory HOT 9
- How can this fork be much faster than the origin? HOT 2
- It is slower than visualfc/gocode HOT 2
- External packages no autocomplete HOT 2
- Contextually autocomplete structs properties HOT 2
- nil pointer panic when autocompleting HOT 4
- Nil panic, no method _, internal error HOT 2
- test
- test2
- gocode hangs emacs during lookup HOT 12
- Feature request: goimports support in Sublime Text plugin HOT 3
- gocode: not working with stdin HOT 3
- not working with vim 8.1 HOT 1
- go install error HOT 2
- This repo doesn't have a go mod file so it will not work in vscode HOT 1
- vscode install fail HOT 1
- I need Autobuild !! HOT 1
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.