Skip to content

Error BufReadPost Autocommands after git commit command #1050

Closed
@jrmejiaa

Description

@jrmejiaa

Describe the bug

Hi devs,

I am using the last version commit 56b9114 with Neovim v0.10.1. I got the following error after trying to commit a change in my git

# git commit
Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /usr/local/share/nvim/runtime/filetype.lua:35: Error executing lua: /usr/local/share/nvim/runtime/filetype.lua:36: BufReadPost Autocommands for "*"..FileType Autocommands for "*": Vim(append):Error executing lua callback: ...eesitter/lua/nvim-treesitte
r/shell_command_selectors.lua:308: bad argument #3 to 'format' (value expected)
stack traceback:
        [C]: in function 'format'
        ...eesitter/lua/nvim-treesitter/shell_command_selectors.lua:308: in function 'select_download_commands'
        ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/install.lua:406: in function 'run_install'
        ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/install.lua:495: in function 'install_lang'
        ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/install.lua:552: in function <...vim/lazy/nvim-treesitter/lua/nvim-treesitter/install.lua:514>
        ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/install.lua:564: in function <...vim/lazy/nvim-treesitter/lua/nvim-treesitter/install.lua:561>
        [C]: in function 'nvim_cmd'
        /usr/local/share/nvim/runtime/filetype.lua:36: in function </usr/local/share/nvim/runtime/filetype.lua:35>
        [C]: in function 'nvim_buf_call'
        /usr/local/share/nvim/runtime/filetype.lua:35: in function </usr/local/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_cmd'
        /usr/local/share/nvim/runtime/filetype.lua:36: in function </usr/local/share/nvim/runtime/filetype.lua:35>
        [C]: in function 'nvim_buf_call'
        /usr/local/share/nvim/runtime/filetype.lua:35: in function </usr/local/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_buf_call'
        /usr/local/share/nvim/runtime/filetype.lua:35: in function </usr/local/share/nvim/runtime/filetype.lua:10>

To Reproduce

  • Set nvim as default editor in your shell
  • Try to make a commit in any repository with the command git commit (without -m flag)
  • Got error

Desktop

  • OS: Debian 12
  • Terminal: zsh 5.9 (x86_64-debian-linux-gnu)

Neovim Version

NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1713484068

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions