ruff icon indicating copy to clipboard operation
ruff copied to clipboard

Plans on creating a full LSP

Open jhossbach opened this issue 2 years ago • 4 comments

Hey, I was thinking about adding a plugin for linting the code using ruff for the python language server (https://github.com/python-lsp/python-lsp-server) but it seems like there already exists a language server using ruff, namely ruffd by @Seamooo. I am wondering whether the plan for the ruffd language server is to become a full-blown LSP server according to the Microsoft specification or if the goal is to be integrated into existing LSP's?

jhossbach avatar Nov 09 '22 22:11 jhossbach

My current thinking is that ruffd will evolve into a full-blown LSP server (it already is an LSP server following that spec, IIRC, though maybe it needs some more features).

The vscode-ruff plugin also implements Ruff into an LSP, though that's based on pygls as per the VS Code Python extension template, and there are plans to migrate that plugin to ruffd.

Does that make sense?

charliermarsh avatar Nov 09 '22 22:11 charliermarsh

Sounds great, I will ask the python-language-server maintainers in the meantime if they are interested in a plugin for linting purely.

jhossbach avatar Nov 11 '22 11:11 jhossbach

Thanks! Cross-posting for posterity: https://github.com/python-lsp/python-lsp-server/issues/299

charliermarsh avatar Nov 11 '22 15:11 charliermarsh

Will gladly ditch pyright for ruffd once it's mature

kuator avatar Nov 17 '22 04:11 kuator