-
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
"RuntimeError: Ruff <0.2.0,>=0.0.291 required, but found 0.0.287" when trying to format #305
Comments
I'm not exactly sure how, but it looks like your ruff-lsp is installed alongside an older version of Ruff. Can you try uninstalling and reinstalling ruff-lsp? Like |
That seems to have done the trick, though Now, while formatting with Space+f works, I seem to have lost inline hints (e.g. "line is too long", etc). Any idea what could cause that?
|
We removed the "line is too long" rule from the default rule set to make the out-of-the-box configuration more compatible with the formatter. You can change |
And we're off the to the races! Now, if I want to format based off of that preferred 120, I should create a configuration file to define that and reference that in the LSP's settings as defining line length isn't possible otherwise? |
We're probably going to add it to the Separately, |
@dhruvmanila, got it, thank you! While I know that Thank you both so much for your help, let's consider this case closed! |
I wanted to try to use Ruff for formatting, but after writing any changes I get the following error and no formatting occurs:
I've installed
ruff-lsp
usingpipx install ruff-lsp
andruff
isn't installed through other meansMy
null-ls.lua
is as follows:And my
lspconfig.lua
like this:The text was updated successfully, but these errors were encountered: