Formatters not working for python. #1766
Unanswered
AkshatDogra
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried installing black,autoflake,autopep8 but none of them works and when I try to execute them, I get the error

Format Request Failed. No matching language servers
These are my installed packages:
I removed black to check if it had an conflict with autopep8 but it autopep8 still doesn't work.
This is the output of
:checkhealth mason
`mason: require("mason.health").check()
mason.nvim ~
mason.providers.registry-api
mason.providers.client
mason.nvim [Registries] ~
github.com/mason-org/mason-registry version: 2024-08-09-brash-clef
is installed.mason.nvim [Core utils] ~
UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.
GNU Wget 1.21.2 built on linux-gnu.
curl 8.2.1 (x86_64-conda-linux-gnu) libcurl/8.2.1 OpenSSL/3.0.14 zlib/1.2.13 libssh2/1.11.0 nghttp2/1.52.0
gzip 1.10
tar (GNU tar) 1.34
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Ok
mason.nvim [Languages] ~
go version go1.18.1 linux/amd64
v20.11.0
Python 3.11.5
cargo 1.79.0-beta.7 (9ca20fadf 2024-05-22)
openjdk version "1.8.0_422"
pip 24.1.1 from /anaconda3/lib/python3.11/site-packages/pip (python 3.11)
10.2.4
Ok
mason.nvim [GitHub] ~
This is my output of
:LSPinfo
Language client log: /home/akshat/.local/state/nvim/lsp.log
Detected filetype: python
1 client(s) attached to this buffer:
Client: pyright (id: 1, bufnr: [1])
filetypes: python
autostart: true
root directory: Running in single file mode.
cmd: /home/akshat/.local/share/nvim/mason/bin/pyright-langserver --stdio
Beta Was this translation helpful? Give feedback.
All reactions