-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Organize Imports
and Fix All
do nothing in helix
#249
Comments
Ok so after playing around a bit more I found out that if I select the I001 rule in my ruff settings then I have a separate I know this sounds a bit like #91, but my point here is that I find it odd that the always-present As a user I just find it a bit confusing, and if I can, I would like to spare future users some frustration 😄 |
Sorry for not getting back to you earlier, and thanks for the kind words. There are probably two things happening here:
|
I don't know that it will resolve it, but you could try using a single language server? [[language]]
name = "python"
scope = "source.python"
language-server = { command = "ruff-lsp" }
config = { settings = { args = [] } } |
No worries 😄
Thx for taking the time to try it out for yourself!
So I can confirm that with the latest stable release of helix (23.05) it all works with the config that you provided. In the current master branch on the other hand the lsp config has changed to allow for multiple language servers on the same buffer, so I cannot test this exact config. I did try an equivalent config, with just I guess it's a bug in the master branch so I will open an issue on the helix repo! I should have thought of testing the latest helix stable release before opening this issue, sorry about that 😅 |
Fixed by helix-editor/helix#8421. |
Hey there, I've been using helix for a few weeks now and I'm using
ruff-lsp
alongsidepylsp
to hack on some Python code :)Thanks so much to the maintainers!
I do like to keep my imports tidy, but for some reason it seems like the
Organize Imports
code action does nothing in helix, andFix All
as well. Removing unused imports works just fine of the other hand. I know it sounds like #28 but since it is closed I'm thinking whatever wasn't right at the time got fixed.I was wondering if that is a helix issue? I went over to the helix repo but I couldn't find any mention of such a limitation.
Here is some additional info:
ruff-lsp
version: 0.0.39helix
version: built from the master branch on the 20th of Septemberhelix lsp config for Python
helix log
The text was updated successfully, but these errors were encountered: