Giter Club home page Giter Club logo

Comments (4)

ajenkinski avatar ajenkinski commented on June 2, 2024

I just started getting this same error, for any git command I try to run. For example if I run :Git status I get

Error executing Lua callback: ...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:64: The coroutine failed with this message: ...ns/.local/share/nvim/lazy/gitsigns.nvim/lua/gitsigns.lua:406: status is
 not a valid function or action
stack traceback:
        [C]: in function 'error'
        ...ns/.local/share/nvim/lazy/gitsigns.nvim/lua/gitsigns.lua:406: in function <...ns/.local/share/nvim/lazy/gitsigns.nvim/lua/gitsigns.lua:369>
stack traceback:
        [C]: in function 'error'
        ...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:64: in function 'step'
        ...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:79: in function <...cal/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:52>

I've been using vim-fugitive for months, and don't know what changed recently.

I'm using nvim v0.9.4.

from vim-fugitive.

tpope avatar tpope commented on June 2, 2024

That error is from gitsigns.nvim. My guess would be that Fugitive isn't loaded at all, and when you call :Git, it's actually calling :Gitsigns.

from vim-fugitive.

ajenkinski avatar ajenkinski commented on June 2, 2024

That error is from gitsigns.nvim. My guess would be that Fugitive isn't loaded at all, and when you call :Git, it's actually calling :Gitsigns.

Interesting. That is what's happening, but I don't understand why. I can see that the :Git command isn't defined, but :Gitsigns is:

:command Git
    Name              Args Address Complete    Definition
    Gitsigns          *    .       <Lua function> <Lua 660: ~/.local/share/nvim/lazy/gitsigns.nvim/lua/gitsigns/async.lua:52>

What's weird though is I'm using the lazy.nvim package manager, and when I check package statuses, it shows that vim-fugitive is loaded. Yet somehow the :Git command isn't getting defined.

I seem to have fixed the problem by adding the lazy = false option for the vim-fugitive plugin. Previously, it was supposed to be lazily loaded the first time I ran the :Git command, but I think because gitsigns had already been loaded, nvim was just auto-completing it to :Gitsigns and not loading vim-fugitive.

from vim-fugitive.

tpope avatar tpope commented on June 2, 2024

I seem to have fixed the problem by adding the lazy = false option for the vim-fugitive plugin. Previously, it was supposed to be lazily loaded the first time I ran the :Git command, but I think because gitsigns had already been loaded, nvim was just auto-completing it to :Gitsigns and not loading vim-fugitive.

Gonna go ahead and say that "lazy" loading of any form is expressly unsupported. Even if lazy loading on :Git worked perfectly, there's a lot more to Fugitive than just :Git.

from vim-fugitive.

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.