Skip to content

rust-analyzer does not have a configuration #19663

Closed
@dr-kernel

Description

@dr-kernel

When I start up the server, I get these errors sometimes (haven't found a consistent root cause), as time goes on it will eventually fail entirely with this error. Trying to "restart" the server fails with this error. If i restart the editor SOMETIMES it will work but then eventually fail.

 ...m/lsp/client.lua:623	"LSP[rust-analyzer]"	"Cannot find request with id 3715 whilst attempting to cancel"
.../lua/vim/lsp.lua:393	"rust-analyzer does not have a configuration"

rust-analyzer version: latest and currently trying 0.3.2291

rustc version: 1.86 and 1.83

editor or extension: VScode and Nvim (0.11)

relevant settings: VScode (default),
Nvim:

return {
    "mrcjkb/rustaceanvim",
    opts = {
        server = {
            settings = {
                ["rust-analyzer"] = {
                    cargo = {
                        extraEnv = { CARGO_TARGET_DIR = ".ra_target" },
                        features = "all",
                    },
                    check = {
                        features = "all",
                    },
                },
            },
        },
    },
}

code snippet to reproduce:
n/a

Posted on LSP prabirshrestha/vim-lsp#1599 too

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions