-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Go to definition (gd) on a C# project throws an error. #4554
Comments
Can repro the same. |
Same here. It looks to me like it's happening when the type definition is in a different project (though the same solution) as the project of the file from which lvim: release-1.3/neovim-0.9-d1c1bace
|
I temporarily resolved this by switching to omnisharp. It seems to be having issues finding some of my symbols, but it doesn't fail on every |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
When a press "gd" to go a method definition in a C# project I get the follow error:
Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/lsp/util.lua:1828: index out of range
stack traceback:
[C]: in function '_str_byteindex_enc'
/usr/share/nvim/runtime/lua/vim/lsp/util.lua:1828: in function 'locations_to_items'
/usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:398: in function 'handler'
/usr/share/nvim/runtime/lua/vim/lsp.lua:1393: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Press ENTER or type command to continue
LunarVim version
release-1.3/neovim-0.9-d1c1bace
Neovim version (>= 0.9.1)
NVIM v0.9.5
Operating system/version
Fedora 40
Affected language servers
c#
Steps to reproduce
1 - Open a folder containing a c# project
2 - Open a .cs file
3 - On any call to object method, press "gd" to go do definition.
Actual behavior
Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/lsp/util.lua:1828: index out of range
stack traceback:
[C]: in function '_str_byteindex_enc'
/usr/share/nvim/runtime/lua/vim/lsp/util.lua:1828: in function 'locations_to_items'
/usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:398: in function 'handler'
/usr/share/nvim/runtime/lua/vim/lsp.lua:1393: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Press ENTER or type command to continue
Expected behavior
To go to the definition
support info
logs
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: