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

GotoDefinition from external Libraries #13

Closed
tilupe opened this issue Aug 12, 2022 · 1 comment
Closed

GotoDefinition from external Libraries #13

tilupe opened this issue Aug 12, 2022 · 1 comment

Comments

@tilupe
Copy link

tilupe commented Aug 12, 2022

This is not a real issue since it it not the problem of your plugin, but I wanted to know if it is only me who has that problem, that I am not able to go to external libraries.
I always get the error:

Error executing vim.schedule lua callback: ...t_nvimWvgMgH/usr/share/nvim/runtime/lua/vim/lsp/util.lua:997: Cursor
position outside buffer
stack traceback:
[C]: in function 'nvim_win_set_cursor'
...t_nvimWvgMgH/usr/share/nvim/runtime/lua/vim/lsp/util.lua:997: in function 'jump_to_location'
...imWvgMgH/usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:343: in function 'handler'
....mount_nvimWvgMgH/usr/share/nvim/runtime/lua/vim/lsp.lua:1025: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>

I guess somehow it doesn't find the correct way since it opens afterward a buffer with the correct name.

If this problem is not only mine, would it be maybe possible to extend this plugin such that this is also possible?

@Hoffs
Copy link
Owner

Hoffs commented Aug 13, 2022

Hi,

Not really sure, but it sounds like it fails to load the file initially and then tries to jump to non existing file. Do you have decompilation enabled and omnisharp properly configured (though it still should work without decompilation)?

https://github.com/Hoffs/omnisharp-extended-lsp.nvim#omnisharp-settings

Also you can try enabling lsp debugging :lua vim.lsp.set_log_level("debug") and seeing if log has anything interesting (you can see log file with :lua print(vim.lsp.get_log_path()).

@Hoffs Hoffs closed this as not planned Won't fix, can't repro, duplicate, stale Oct 29, 2022
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

No branches or pull requests

2 participants