nvim-remote-containers icon indicating copy to clipboard operation
nvim-remote-containers copied to clipboard

nvim 10 broken :BuildImage command

Open jbohanon opened this issue 11 months ago • 0 comments

$ nvim --version
NVIM v0.10.0-dev+877-g81d5550d7
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Run "nvim -V1 -v" for more info

From within neovim, the :BuildImage true command returns

E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:777: table expected
stack traceback:
        [C]: in function '_rawquery'
        /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:777: in function 'iter_matches'
        .../jacob/.vim/plugged/nvim-remote-containers/lua/utils.lua:15: in function 'jsonc_no_comment'
        .../jacob/.vim/plugged/nvim-remote-containers/lua/utils.lua:33: in function 'jsonc_to_json'
        .../jacob/.vim/plugged/nvim-remote-containers/lua/utils.lua:54: in function 'parseConfig'
        ...jacob/.vim/plugged/nvim-remote-containers/lua/docker.lua:194: in function 'buildImage'
        [string ":lua"]:1: in main chunk

I have been able to work around this by adding an explicit opts = {} into the file /usr/share/nvim/runtime/lua/vim/treesitter/query.lua above the expected call.

jbohanon avatar Sep 07 '23 15:09 jbohanon