nvim-treesitter/nvim-tree-docs

(bug): offset_encoding: expected string, got nil

vzytoi opened this issue · 9 comments

Hey, I just installed nvim-tree-docs and tried to execute it on a js class using gdd and here is the error I got:

E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/lsp/util.lua:342: offset_encoding: expected string, got nil
stack traceback:
	[C]: in function 'error'
	vim/shared.lua: in function 'validate'
	/usr/share/nvim/runtime/lua/vim/lsp/util.lua:342: in function 'doc_node_at_cursor'
	[string ":lua"]:1: in main chunk

Thank you for your time! (:

I got the same issue while using gdd.
Currently, I am using Neovim 0.7.0.

Thanks!

I got the same issue while using gdd. Currently, I am using Neovim 0.7.0.

Thanks!

Same issue

Same, using Neovim nightly as well:

NVIM v0.8.0-dev+165-g8658e8235                                                                                                                                                                                                                                                                                                                 
Build type: Release                                                                                                                                                                                                                                                                                                                            
LuaJIT 2.1.0-beta3                                                                                                                                                                                                                                                                                                                             
Compiled by aang@Nathaniels-MacBook-Pro-7.local                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                               
Features: +acl +iconv +tui                                                                                                                                                                                                                                                                                                                     
See ":help feature-compile"                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                               
   system vimrc file: "$VIM/sysinit.vim"                                                                                                                                                                                                                                                                                                       
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/HEAD-8658e82/share/nvim"  
hood commented

same here

Same here:

NVIM v0.8.0-dev
Build type: Release
LuaJIT 2.1.0-beta3
E5108: Error executing lua /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:364: offset_encoding: expected string, got nil                                                                                                                                                             
stack traceback:                                                                                                                                                                                                                                                                         
        [C]: in function 'error'                                                                                                                                                                                                                                                         
        vim/shared.lua: in function 'validate'                                                                                                                                                                                                                                           
        /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:364: in function 'doc_node_at_cursor'                                                                                                                                                                                         
        [string ":lua"]:1: in main chunk 

Same here on MacOS 12.5.1 and the current plugin version (nvim-tree-docs git hash: 5db023d)

NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Monterey

Error when trying to generate a jsdoc for a method in a typescript class:

E5108: Error executing lua ...r/neovim/0.7.2_1/share/nvim/runtime/lua/vim/lsp/util.lua:342: offset_encoding: expected string, got nil
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        ...r/neovim/0.7.2_1/share/nvim/runtime/lua/vim/lsp/util.lua:342: in function 'doc_node_at_cursor'
        [string ":lua"]:1: in main chunk

same here

stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        ...lar/neovim/0.7.0/share/nvim/runtime/lua/vim/lsp/util.lua:366: in function 'doc_node_at_cursor'
        [string ":lua"]:1: in main chunk

俺也一样,这个问题至今尚未修复(2023-03-06),This problem has not been fixed yet, :version NVIM v0.8.3 Build type: Release LuaJIT 2.1.0-beta3 Compiled by runner@fv-az183-550

No news here? I'm having the same issue