Lsp rust-analyzer failed to run build scripts in nvim

Hello, I install rust-analyzer via pacman and also via official git rep, this one: User Manual, so, when I open any rust files, I got error, that fail to run build scripts


I install it via vim plug, settings:

local servers = { 'pyright', 'rust_analyzer' }
for _, lsp in ipairs(servers) do
  nvim_lsp[lsp].setup {
    settings = {
            ["rust_analyzer"] = {
                    cargo = {
                         checkOnSave = false,   
                        }
                }
        },
    on_attach = on_attach,
    flags = {
      debounce_text_changes = 150,
    }
  }
end

Are you using lspconfig? If so, what is the output of the command :LspInfo?

this one

I also started get this error(

Update: 20.08.2022, every new project, I got this error...

Same issue. I'll update here if I find a solution.

1 Like