rust-tools.nvim icon indicating copy to clipboard operation
rust-tools.nvim copied to clipboard

RustReloadWorkspace Erorr!!!

Open Ritzier opened this issue 3 years ago • 1 comments

Error while run :RustReloadWorkspace.

Error executing vim.schedule lua callback: ...art/rust-tools.nvim/lua/rust-tools/workspace_refresh.lua:5: RPC[Error] code_name = MethodNotFound, message = "method not suported: rust-analyzer/reloadWorkspace" stack traceback":
    [C]: in function 'error'
    ...art/rust-tools.nvim/lua/rust-tools/workspace_refresh.lua:5: in function 'handler'
    ...mount_nvimrs76CS/usr/share/nvim/runtime/lua/vim/lsp.lua:1396: in function ''
    vim/_editor.lua: in function <vim/_editor.lua:0>
Press ENTER or type command to continue
Cargo workspace reloaded
Press ENTER or type command to continue

Ritzier avatar Oct 11 '22 08:10 Ritzier

@Ritzier a couple questions:

  • Are you using Copilot?
  • Can you share a screenshot of what is displayed when you run LspInfo in whatever context generated this error?

Thanks!

I've been facing this error and it seems to me that the issue is caused by the reload_workspace function making the assumption that it is the only registered LSP for a Rust buffer.

Will test and determine if this is the case. If so, I'll fix it and submit a PR.

speelbarrow avatar Jul 26 '23 16:07 speelbarrow