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

File scheme missing when renaming funtion #478

Closed
JingMatrix opened this issue Jul 9, 2023 · 0 comments · Fixed by #563
Closed

File scheme missing when renaming funtion #478

JingMatrix opened this issue Jul 9, 2023 · 0 comments · Fixed by #563
Labels
bug Something isn't working

Comments

@JingMatrix
Copy link

I use neovim with kotlin-language-server. When I try to rename a function, it causes error:

/usr/share/nvim/runtime/lua/vim/uri.lua:107: URI must contain a scheme: /home/jing/D
ocuments/Project/someKotlinFile.kt
stack traceback:
        [C]: in function 'assert'
        /usr/share/nvim/runtime/lua/vim/uri.lua:107: in function 'uri_to_fname'
        /usr/share/nvim/runtime/lua/vim/uri.lua:128: in function 'uri_to_bufnr'
        /usr/share/nvim/runtime/lua/vim/lsp/util.lua:578: in function 'apply_text_document_edit'
        /usr/share/nvim/runtime/lua/vim/lsp/util.lua:866: in function 'apply_workspace_edit'
        /usr/share/nvim/runtime/lua/vim/lsp/handlers.lua:300: in function 'handler'
        /usr/share/nvim/runtime/lua/vim/lsp/buf.lua:321: in function 'handler'
        /usr/share/nvim/runtime/lua/vim/lsp.lua:1394: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Apparently, the file scheme is missing before the file location.

@themkat themkat added the bug Something isn't working label Jul 11, 2023
@fwcd fwcd closed this as completed in #563 Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants