Giter VIP home page Giter VIP logo

Comments (6)

cixtor avatar cixtor commented on August 24, 2024 2

@p554157atch the fact that you are using company-mode is irrelevant. Gocode was marked as “unmaintained” by the author so you should not expect them to fix the problems you are having on Spacemacs. As I suggested before, you should switch to gopls like the rest of the Go developers in the community. Please refer to this issue on spacemacs that was opened specifically to discuss problems with company-go. There you will find that other people have suggested to replace company-mode with lsp-mode which works with gopls (both with and without Go modules).

from gocode.

cixtor avatar cixtor commented on August 24, 2024

@p554157atch read the README again:

VERY IMPORTANT: this project is not maintained anymore, look for alternatives or forks if you need Go autocompletion tool

The majority of Go developers in the community switched to gopls more than a year ago. I suggest you to do the same.

from gocode.

p554157atch avatar p554157atch commented on August 24, 2024

Spacemacs company-mode, that calls company-go is still using gocode for its output.
This is supposed to work with GOMODULES disabled.

from gocode.

p554157atch avatar p554157atch commented on August 24, 2024

Last updated 4 years ago,
https://github.com/emacsmirror/company-go/blob/master/company-go.el

from gocode.

mdempsky avatar mdempsky commented on August 24, 2024

You can try https://github.com/mdempsky/gocode if you don't need modules support, or https://github.com/stamblerre/gocode if you do.

But long term, you should probably look into switching from company-mode to lsp-mode (with gopls), or ask spacemacs to look into this.

from gocode.

benjamin-rood avatar benjamin-rood commented on August 24, 2024

@cixtor Or, crazy idea, the go layer and the defaults could be fixed to have that configuration out of the box? Or at least the go layer documentation could be taken down as it is outrageously incorrect and out-of-date?

from gocode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.