Skip to content

rust-analyzer does not support workspace/executeCommand #400

Closed
@mohamed-abdelnour

Description

@mohamed-abdelnour

Hello, @ms-jpq! Thank you for all your work; I recently switched to coq.nvim, and it's fantastic!

return vim.lsp.buf_request(0, "workspace/executeCommand", cmd, on_resp)

I'm getting the following error using coq.nvim with rust-analyzer:

method workspace/executeCommand is not supported by any of the servers registered for the current buffer

Here are a couple of relevant issues on the rust-analyzer and Neovim repositories, respectively:

Reproduction

Assuming cargo, rust, rust-analyzer, the built-in LSP client and coq.nvim are installed and configured:

  • Create a project, and open main.rs.
$ cargo new demo && cd demo
$ nvim src/main.rs
  • Define a function, for example, fn f(x: i32) {}.
  • Call f from main using completion, upon hitting enter on f(…) [Function] 「LSP」 the error pops up.

2021-11-24-11-14-16
2021-11-24-11-14-20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions