Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitsigns errors on launch #2450

Closed
lunacd opened this issue Apr 12, 2022 · 3 comments · Fixed by #2451
Closed

gitsigns errors on launch #2450

lunacd opened this issue Apr 12, 2022 · 3 comments · Fixed by #2451
Labels
bug Something isn't working

Comments

@lunacd
Copy link

lunacd commented Apr 12, 2022

Problem description

  1. Install the lastest stable lvim
  2. Open a file within a git repository
  3. Throws the following error:

Error executing luv callback:
...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:75: The coroutine failed with this message: ...aowenl/.local/share/lunarvim/lvim/lua/lvim/impatient.lua:206: E5560: nvim_get_option must not be called in a lua loop callback

LunarVim version

f92a0d6

Neovim version (>= 0.6.1)

NVIM v0.6.1

Operating system/version

Fedora 35

Relevant log output

# checkhealth:


null-ls: require("null-ls.health").check()
========================================================================
  - INFO: no sources registered

nvim: health#nvim#check
========================================================================
## Configuration
  - WARNING: Missing user config file: /home/haowenl/.config/nvim/init.vim
    - ADVICE:
      - :help |init.vim|

## Performance
  - OK: Build type: RelWithDebInfo

## Remote Plugins
  - OK: Up to date

## terminal
  - INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
  - INFO: $VTE_VERSION='6800'
  - INFO: $COLORTERM='truecolor'

nvim-lsp-installer: require("nvim-lsp-installer.health").check()
========================================================================
## nvim-lsp-installer report
  - OK: neovim version >= 0.6.0
  - WARNING: **Go**: not available
  - WARNING: **Ruby**: not available
  - WARNING: **RubyGem**: not available
  - WARNING: **Composer**: not available
  - WARNING: **julia**: not available
  - OK: **bash**: `GNU bash, version 5.1.16(1)-release (x86_64-redhat-linux-gnu)`
  - OK: **tar**: `tar (GNU tar) 1.34`
  - OK: **gzip**: `gzip 1.11`
  - OK: **curl**: `curl 7.82.0 (x86_64-redhat-linux-gnu) libcurl/7.82.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 libidn2/2.3.2 libpsl/0.21.1 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.46.0 OpenLDAP/2.6.1`
  - OK: **wget**: `GNU Wget 1.21.3 built on linux-gnu.`
  - OK: **python3**: `Python 3.10.4`
  - OK: **PHP**: `PHP 8.1.4 (cli) (built: Mar 15 2022 20:18:41) (NTS gcc x86_64)`
  - OK: **sh**: `Ok`
  - OK: **node**: `v16.14.0`
  - OK: **java**: `Ok`
  - OK: **javac**: `javac 17.0.2`
  - OK: **pip3**: `pip 21.3.1 from /usr/lib/python3.10/site-packages/pip (python 3.10)`
  - OK: **npm**: `8.5.5`

nvim-treesitter: require("nvim-treesitter.health").check()
========================================================================
## Installation
  - OK: `tree-sitter` found 0.20.6 (ccd6bf554d922596ce905730d98a77af368bba5c) (parser generator, only needed for :TSInstallFromGrammar)
  - OK: `node` found v16.14.0 (only needed for :TSInstallFromGrammar)
  - OK: `git` executable found.
  - OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
    Version: cc (GCC) 12.0.1 20220308 (Red Hat 12.0.1-0)
  - OK: Neovim was compiled with tree-sitter runtime ABI version 13 (required >=13). Parsers must be compatible with runtime ABI.

## Parser/Features H L F I J
  - css            ✓ . ✓ ✓ ✓ 
  - python         ✓ ✓ ✓ ✓ ✓ 
  - json           ✓ ✓ ✓ ✓ . 
  - lua            ✓ ✓ ✓ ✓ ✓ 
  - c              ✓ ✓ ✓ ✓ ✓ 
  - tsx            ✓ ✓ ✓ ✓ ✓ 
  - bash           ✓ ✓ ✓ . ✓ 
  - typescript     ✓ ✓ ✓ ✓ ✓ 
  - rust           ✓ ✓ ✓ ✓ ✓ 
  - yaml           ✓ ✓ ✓ ✓ ✓ 
  - java           ✓ ✓ . ✓ ✓ 
  - javascript     ✓ ✓ ✓ ✓ ✓ 

  Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
         +) multiple parsers found, only one will be used
         x) errors found in the query, try to run :TSUpdate {lang}

provider: health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: xsel

## Python 2 provider (optional)
  - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.
  - ERROR: Python provider error:
    - ADVICE:
      - provider/pythonx: Could not load Python 2:
          /usr/bin/python2 does not have the "neovim" module. :help |provider-python|
          /usr/bin/python2.7 does not have the "neovim" module. :help |provider-python|
          python2.6 not found in search path or not executable.
          /usr/bin/python is Python 3.10 and cannot provide Python 2.
  - INFO: Executable: Not found

## Python 3 provider (optional)
  - INFO: `g:python3_host_prog` is not set.  Searching for python3 in the environment.
  - INFO: Executable: /usr/bin/python3
  - INFO: Python version: 3.10.4
  - INFO: pynvim version: 0.4.3
  - OK: Latest pynvim is installed.

## Python virtualenv
  - OK: no $VIRTUAL_ENV

## Ruby provider (optional)
  - WARNING: `ruby` and `gem` must be in $PATH.
    - ADVICE:
      - Install Ruby and verify that `ruby` and `gem` commands work.

## Node.js provider (optional)
  - INFO: Node.js: v16.14.0
  - INFO: Nvim node.js host: /usr/local/lib/node_modules/neovim/bin/cli.js
  - OK: Latest "neovim" npm/yarn package is installed: 4.10.1

## Perl provider (optional)
  - ERROR: perl provider error:
    - ADVICE:
      - "Neovim::Ext" cpan module is not installed

telescope: require("telescope.health").check()
========================================================================
## Checking for required plugins
  - OK: plenary installed.
  - OK: nvim-treesitter installed.

## Checking external dependencies
  - OK: rg: found ripgrep 13.0.0
  - OK: fd: found fd 8.2.1

## ===== Installed extensions =====

## Telescope Extension: `fzf`
  - INFO: No healthcheck provided

## Telescope Extension: `projects`
  - INFO: No healthcheck provided

vim.lsp: require("vim.lsp.health").check()
========================================================================
  - INFO: LSP log level : WARN
  - INFO: Log path: /home/haowenl/.cache/nvim/lsp.log
  - INFO: Log size: 0 KB

vim.treesitter: require("vim.treesitter.health").check()
========================================================================
  - INFO: Runtime ABI version : 13
  - OK: Loaded parser for bash: ABI version 13
  - OK: Loaded parser for c: ABI version 13
  - OK: Loaded parser for css: ABI version 13
  - OK: Loaded parser for java: ABI version 13
  - OK: Loaded parser for javascript: ABI version 13
  - OK: Loaded parser for json: ABI version 13
  - OK: Loaded parser for lua: ABI version 13
  - OK: Loaded parser for python: ABI version 13
  - OK: Loaded parser for rust: ABI version 13
  - OK: Loaded parser for tsx: ABI version 13
  - OK: Loaded parser for typescript: ABI version 13
  - OK: Loaded parser for yaml: ABI version 13

which_key: health#which_key#check
========================================================================
## WhichKey: checking conflicting keymaps
  - WARNING: buffer-local keymap overriding global for mode **"n"**, buf: 0, lhs: **"<leader>Lc"**
  - INFO: old rhs: `<CMD>edit /home/haowenl/.config/lvim/config.lua <CR>`
  - INFO: new rhs: `<cmd>edit /home/haowenl/.config/lvim/config.lua<cr>`
  - WARNING: buffer-local keymap overriding global for mode **"n"**, buf: 0, lhs: **"<leader>sr"**
  - INFO: old rhs: `<CMD>Telescope oldfiles<CR>`
  - INFO: new rhs: `<cmd>Telescope oldfiles<cr>`
  - WARNING: buffer-local keymap overriding global for mode **"n"**, buf: 0, lhs: **"<leader>st"**
  - INFO: old rhs: `<CMD>Telescope live_grep<CR>`
  - INFO: new rhs: `<cmd>Telescope live_grep<cr>`
  - WARNING: buffer-local keymap overriding global for mode **"n"**, buf: 0, lhs: **"<leader>f"**
  - INFO: old rhs: `<CMD>Telescope find_files<CR>`
  - INFO: new rhs: `<cmd>lua require("which-key").execute(1)<cr>`

# messages:

Error executing luv callback:
...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:75: The coroutine failed with this message: ...aowenl/.local/share/lunarvim/lvim/lua/lvim/impatient.lua:206: E5560: nvim_get_option must not be called in a lua loop callback
stack traceback:
	[C]: in function 'require'
	...site/pack/packer/opt/gitsigns.nvim/lua/gitsigns/diff.lua:8: in function 'run_diff'
	...e/pack/packer/opt/gitsigns.nvim/lua/gitsigns/manager.lua:298: in function 'fn'
	.../pack/packer/opt/gitsigns.nvim/lua/gitsigns/debounce.lua:71: in function 'update'
	...rvim/site/pack/packer/opt/gitsigns.nvim/lua/gitsigns.lua:296: in function 'attach0'
	...rvim/site/pack/packer/opt/gitsigns.nvim/lua/gitsigns.lua:344: in function 'attach'
	...rvim/site/pack/packer/opt/gitsigns.nvim/lua/gitsigns.lua:567: in function <...rvim/site/pack/packer/opt/gitsigns.nvim/lua/gitsigns.lua:505>
stack traceback:
	[C]: in function 'error'
	...ite/pack/packer/opt/gitsigns.nvim/lua/gitsigns/async.lua:75: in function 'callback'
	.../site/pack/packer/opt/gitsigns.nvim/lua/gitsigns/git.lua:183: in function 'callback'
	...ack/packer/opt/gitsigns.nvim/lua/gitsigns/subprocess.lua:66: in function <...ack/packer/opt/gitsigns.nvim/lua/gitsigns/subprocess.lua:52>
1 change; before #1  3 seconds ago
E488: Trailing characters

Screenshots

No response

@lunacd lunacd added the bug Something isn't working label Apr 12, 2022
@alechp
Copy link

alechp commented Apr 12, 2022

Seeing this on my end as well

Screen Shot 2022-04-11 at 9 31 52 PM

@kylo252
Copy link
Collaborator

kylo252 commented Apr 12, 2022

Please let me know if you're still having problems after #2451

@alechp
Copy link

alechp commented Apr 14, 2022

@kylo252 seems to have solved it for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants