Repository navigation
ruff-lsp is deprecated; please upgrade to the native language server (ruff server)
#15991
Replies: 28 comments 104 replies
|
I have this in my VScode "ruff.lint.args": [ "--unfixable=F841,T201"]I tried ctrl+space, copilot, migration guide, but couldn't figure it out. Sorry! |
|
I am currently using ruff only by way of the official Ruff extension in VScode and fully configured in settings.json. I have looked at the ruff extension docs and the setup and migration guides but despite that it's not exactly clear to me how I should move to the 'native' ruff server and how I should migrate the settings I've built up over the years. In general, I'd appreciate it if we could have some stability and predictability in configuring Python extensions. While I'm waiting for this mist to clear: is there a way to suppress the ruff-lsp deprecation warning? |
|
Okay, here's a puzzle that I don't see how to fix with the new settings. I have the following in VSCode settings: "ruff.lint.args": [
"--extend-select=DJ001,INP001,ANN201",
"--config",
"lint.flake8-annotations.ignore-fully-untyped=false"
]because I want to see squiggles in VSCode for the flake8 untyped functions, and, at the same time, I have this in my [lint.flake8-annotations]
ignore-fully-untyped = true How do I fix this? |
|
I find the warning displayed in vscode very cryptic. My language server is set to "Pylance", and I only use ruff for formatting. I honestly have no clue why I'm seeing this warning at all or how to get rid of it. The setup guide pretty much just says to install the ruff extension and that's it. I can't find any useful information anywhere. |
|
both of my vscode and ruff are on the latest version, but still got the warning, and don't know how to confirm I'm using In other words, how to not use Tried to add
|
|
Thanks for the update. Please don't remove the old lsp before these issues with the new server astral-sh/ruff-vscode#593 and astral-sh/ruff-vscode#680 are fixed. |
|
Will you support more settings that can be set directly in the editor? For example, quote style, as well as the line length setting? I use three devices, so synchronizing these settings across all devices can be very helpful to me and those who also work on multiple devices. |
|
Hi, I just saw this message pop up: I was hoping that I can click one of the links and then, I know what to do to remove the message. What I did is uninstall and install of the plugin and I was hoping that then disables the message but it does not - it just should go ahead with a new config. I sadly do not have the head space at the moment to skip though discussions to see what I should do. I will disable this message now and care for it when the next message says that something is actually broken. Then, I will uninstall the plugin again, install it and hope that that solves the problem - it working with the correct default parameters. |
|
Hello. The only setting I use (in VSCode) is |
|
The thing that's blocking us from using the native server is this issue: astral-sh/ruff-lsp#335 We currently work around this with a wrapper script that rewrites calls to |
|
I get the following warning in VSCode and have no idea how to fix it: The legacy server (ruff-lsp) has been deprecated. The following settings were only supported by the legacy server and has been deprecated: ["ruff.showNotifications"]. Please migrate to the new settings or remove them. Feel free to comment on the GitHub discussion to ask questions or share feedback. Can anybody point me in the right direction? |
|
I prefer using single quotes in most of my projects, so I previously had this config in my VSCode settings.json: "ruff.format.args": [
"--config",
"format.quote-style='single'",
],From what I understand, I now need to specify this setting in a separate toml file, using: "ruff.configuration": "~/.config/custom_ruff_config.toml"While it works, it lacks the benefit of VSCode's settings synchronization, which allows me to conveniently write and format new Python scripts on different machines, on any workspace folders. The document mentions that this change introduces "more granular settings", but to me, the original approach already felt quite granular. Would you consider adding a similar workaround to retain the previous feature? Or am I missing anything in the document? |
|
cannot migrate to native server, not sure why. and it is fine, if i remove vscode is complaining about imports. I001 import block un-sorted or un-formatted. enough? |
|
I really like only having my code checked as I save and not having it underlining things as I'm typing. Are there plans to implement an equivalent of "ruff.lint.run": "onSave"? I'm using VS Code. This would be a terrific feature. Or if there are ways to get the equivalent of this with the native server I would love to hear it. Thanks. |
|
Hi, it's not usable. check astral-sh/ruff-vscode#676 |
|
Hey folks, monorepo user here. I have settings that look like this Effectively, the team-level VSCode configuration file extends the global (monorepo level) config file. We prefer to avoid having a bunch of toml files lying around for every single tool, and we want to avoid a directory-level pyproject.toml because tools have been known to get confused about how to merge with the "global" pyproject.toml. Is the only workaround right now to add a directory level |
|
I would like to migrate to the native language server, but I have the following settings that prevent me from upgrading: It looks like the native language server does not support unsafe fixes, and also doesn't support marking specific lints as unfixable. Is that correct? If so, consider this a feature request for the native server to support this so that I can migrate! I know I can set this in the ruff configuration file, but these are settings I want to use myself across all my projects and don't want to force upon colleagues that work on the same code base (which would be the case if I put it in the project's config file). |
|
how to do in |
|
I'm using VSCode and even though I'm not setting any option to Ruff, I'm getting; Any idea what could be setting |
|
Is there a command i can run to migrate? Something like
would be perfect. My apologies if this question was already asked and i skimmed over it. |
|
I just to add the info that I got this error message:
while the setting was actually in the remote settings.json. It took me quite some while to figure it out so I hope it helps others. |
|
I have absolutely 0 custom settings, but it still has a link to migration instructions and says
Even if I uninstall and reinstall, the same occurs. :edit: Also, the Migration Instructions do not say how to "Update the ruff version" IMO it should just have a button to fix it, or fix the settings if I have no custom settings (as I stated, I'm using all defaults), as since it installed ruff, it should be able to upgrade it. |
|
It is also happening on my Windows computer even when it says it (ruff extension version 2025.22.0) is using the bundled version: |
|
I also see this warning, but only when using the remote-ssh extension. |
|
Native server raises an error "Ruff received invalid settings from the editor" when navigating into installed packages: This loses the rules, and causes flickering and constant popups as it refreshes frequently.
|
@dhruvmanila Should https://github.com/astral-sh/ruff-lsp be archived by now? |
|
At my company we use Perforce to distribute our source. Most of us use VS Code, with a ruff.toml file shared between the packages we develop, plus a ruff.toml in the base of some package folders that begins by pointing back to the main one like With this setup (two ruff.tomls, and a VS Code workspace in a junctioned directory), Ruff's native server cannot read our ruff.toml. The only way I've been able to get the latest versions of Ruff to work correctly is to set
|







Uh oh!
There was an error while loading. Please reload this page.
Hey everyone,
ruff-lspis marked as deprecated with the upcoming Ruff release, it will be archived with the release of Ruff 0.11. We suggest everyone to upgrade to the native server (⚡ruff server⚡).ruff serversupports the same feature set asruff-lsp, but with superior performance and no installation required. It was first released in Ruffv0.3.5, announced as beta in Ruff 0.4.5 and marked as stable in Ruff 0.5.3.Refer to the setup guide on how to set up the native language server for multiple editors and the migration guide on how to migrate the deprecated settings.
If you're unable to upgrade to the native server, feel free to comment on this discussion so that we can help.
All reactions