python-lsp / python-lsp-server

Fork of the python-language-server project, maintained by the Spyder IDE team and the community
MIT License
1.91k stars 196 forks source link

[LSP] Format request failed, no matching language servers. #284

Closed acsezen closed 1 year ago

acsezen commented 1 year ago

Hello,

I am getting[LSP] Format request failed, no matching language servers. error when i run vim.lsp.buff.format().

I have this setup for lspconfig;

lspconfig.pylsp.setup {
  on_attach = on_attach,
  capabilities = capabilities,
  settings = {
    pylsp = {
      configurationSources = { "flake8" },
      plugins = {
        flake8 = { enabled = true, ignore = { "E501, E203" }, maxLineLength = 88 },
        jedi_completion = { enabled = true },
        jedi_definition = { enabled = true },
        jedi_hover = { enabled = true },
        jedi_references = { enabled = true },
        jedi_signature_help = { enabled = true },
        jedi_symbols = { enabled = true, all_scopes = true },
        mccabe = { enabled = false },
        pycodestyle = { enabled = false },
        pyflakes = { enabled = false },
        yapf = { enabled = true},
      },
    },
  },
}

Not sure if its a configuration problem or a bug.

Thanks

mlaiseca3 commented 1 year ago

I have the same issue. What was the solution?

Karif commented 1 year ago

I couldn't find a solution. I switched to null-ls.