Comments (4)
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.
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.
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.
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)
- Use winfixbuf in nvim for specific propouse windows HOT 6
- Git push issues and improvements HOT 1
- winfixbuf leads to duplicate status window after interactive rebase HOT 2
- E1513: Cannot switch buffer. 'winfixbuf' is enabled HOT 21
- the cursor doesn't go back to the buffer that opened the status buffer when using "gq" HOT 1
- `:Git log` display is inconsistent with command-line defaults
- E1513: Cannot switch buffer. 'winfixbuf' is enabled when refreshing HOT 1
- FugitivePager is triggered for non-fugitive BufReadPost Events
- Completion of the commit hash in cmdline? HOT 2
- Do not open quickfix on `:G difftool`
- Option to disable winfixbuf. HOT 6
- [Feature request] Allow custom format string for status buffer log lines HOT 1
- file does not belong to a Git repository. issue still there
- issue still there HOT 3
- `Git difftool -y` reports errors about newly created files
- [Question] Look-around branch autocompletion
- support for difftastic HOT 1
- :Gedit and similar commands spawn non-persistent buffers HOT 2
- confusing section folding toggle behavior
- Is there a way to "force" color to be enabled for a Git command that just loads a split? 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 vim-fugitive.