playground icon indicating copy to clipboard operation
playground copied to clipboard

Failed to open playground with nvim latest

Open ray-x opened this issue 1 year ago • 1 comments

It works fine with nvim-0.8.x but failed to work with nvim github latest(NVIM v0.9.0-dev-1248+g204a8b17c) I can not reproduce with minium vimrc.

The issue seems to related to this line:

https://github.com/nvim-treesitter/playground/blob/4044b53c4d4fcd7a78eae20b8627f78ce7dc6f56/lua/nvim-treesitter-playground/internal.lua#L650

If I comment it out, it works fine again. Any ideas?

ray-x avatar Mar 19 '23 09:03 ray-x

since new release it doesn't seem like playground works at all .. tried reinstalling but I still get

Error executing lua callback: /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:73: lang: expected string, got nil
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:73: in function 'add'
        /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:135: in function 'inspect'
        ...ayground/lua/nvim-treesitter-playground/query_linter.lua:80: in function 'lint'
        ...ayground/lua/nvim-treesitter-playground/query_linter.lua:159: in function <...ayground/lua/nvim-treesitter-playground/query_linter.lua:158>```

NVIM v0.9.0 Build type: Release LuaJIT 2.1.0-beta3

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

desdic avatar Apr 09 '23 05:04 desdic