koxudaxi/ruff-pycharm-plugin

Support for new integrated ruff language server

raayu83 opened this issue · 9 comments

Is your feature request related to a problem? Please describe.
Currently this plugin uses ruff-lsp, which has been superseded by the integrated ruff lsp server the day before yesterday, see https://astral.sh/blog/ruff-v0.4.5

Describe the solution you'd like
Would be great if this plugin supported the new integrated server.

Additional context
Thanks for providing this really useful plugin!

@koxudaxi First of all, thanks for the awesome plugin!
How big changes to the plugin are needed for this?
Can we expect a new version soon?

Thank you for creating the issue.
I expected to release the PR #437 to support the LSP for the non-pro version of the IDE before picking up this PR.
But we have to wait for the release of the next LSP4IJ version.

OK, I will support the new integrated ruff lsp first.

That’s great! Looking forward to it!

Thanks for the implementation! Looking forward to the release!

@raayu83
I'm sorry for my late action.
You can install the plugin from the page.

https://github.com/koxudaxi/ruff-pycharm-plugin/releases/tag/v0.0.34

Nothing to be sorry about, I'm grateful you found some time to implement this feature at all!

Hi @koxudaxi ,
just installed the new version and the configuration screen still looks the same.
What should I enter into to "ruff-lsp executable" field in order to use ruff server? Nothing at all or the ruff executable?

@raayu83
The new version has a new option to enable ruff server

new option:
image

Full screen:
image

you can check the ruff server in the process list after open the your project.

ps ax |grep "ruff server"
 7039   ??  S      0:00.07 /Users/koudai/PycharmProjects/pythonProject1/.venv/bin/ruff server --preview
20806   ??  S      0:00.01 /Users/koudai/PycharmProjects/pythonProject1/.venv/bin/ruff server --preview
20857 s008  S+     0:00.00 grep ruff server
image

Thanks, that worked!