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

(bug): offset_encoding: expected string, got nil #20

Open
vzytoi opened this issue May 1, 2022 · 9 comments · May be fixed by #23
Open

(bug): offset_encoding: expected string, got nil #20

vzytoi opened this issue May 1, 2022 · 9 comments · May be fixed by #23

Comments

@vzytoi
Copy link

vzytoi commented May 1, 2022

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! (:

@hpb0412
Copy link

hpb0412 commented May 6, 2022

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

Thanks!

@lumenghz
Copy link

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

Thanks!

Same issue

@nathanielks
Copy link

Same, using Neovim nightly as well:

NVIM v0.8.0-dev+165-g8658e8235                                                                                                                                                                                                                                                                                                                 
Build type: Release                                                                                                                                                                                                                                                                                                                            
LuaJIT 2.1.0-beta3                                                                                                                                                                                                                                                                                                                             
Compiled by [email protected]                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                               
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
Copy link

hood commented Jun 13, 2022

same here

@zettlrobert
Copy link

zettlrobert commented Jul 1, 2022

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 

@alex-heinz
Copy link

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

@hannadrehman
Copy link

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

@nativecache
Copy link

nativecache commented Mar 6, 2023

俺也一样,这个问题至今尚未修复(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

@Omochice Omochice linked a pull request Aug 16, 2023 that will close this issue
@juanmagalhaes
Copy link

No news here? I'm having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants