Giter Site home page Giter Site logo

Comments (9)

robdimsdale avatar robdimsdale commented on August 27, 2024

Also in case it's relevant, I'm using go1.18.1 darwin/amd64

from nvim.

luan avatar luan commented on August 27, 2024

I can't seem to repro this, and the failure is coming from the plugin. Are you able to reproduce it consistently? It might be worth opening an issue on ray-x/go.nvim instead

from nvim.

robdimsdale avatar robdimsdale commented on August 27, 2024

So, I can resolve this issue by adding require'go'.setup() to the before.lua in the ~/.config/nvim/lua/user/ directory. However, that seems like something that would be part of this config, rather than user-provided.

Without that change, it is 100% reproducible on my machine - uninstalling neovim (and the python plugins etc) and this config, and reinstalling it, and it consistently fails.

In my comment above I liked to a closed issue on ray-x/go.nvim which suggests that to fix the problem I'm having:

Make sure require'go'.setup() is called before require'go.lsp'.config()

I don't understand enough of this flow to understand why I need to add this config explicitly whereas it just works for you.

That seems like the sort of thing that would belong in this config. I don't know where I would make that change - I tried

from nvim.

luan avatar luan commented on August 27, 2024

You had said that adding that to before.lua didn't solve the problem, that's why I thought it'd be something else. I'll add it in the right place.

from nvim.

luan avatar luan commented on August 27, 2024

Can you try after this change?

from nvim.

robdimsdale avatar robdimsdale commented on August 27, 2024

That seems to fix it.

Before when I was reproducing it, I think I was accidentally adding the line require'go'.setup() to the user.defaults/before.lua not user/before.lua. But my understanding was that these two files would be processed the same way. Maybe I got that wrong.

from nvim.

robdimsdale avatar robdimsdale commented on August 27, 2024

Thank you for adding this. I still don't understand why you weren't running into this. I assume you had updated all of your plugins?

from nvim.

luan avatar luan commented on August 27, 2024

from nvim.

robdimsdale avatar robdimsdale commented on August 27, 2024

Alright - I think we're good to close this now. Thank you for your help!

from nvim.

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.