astral-sh/ruff-vscode

Handle invalid configuration more gracefully

Closed this issue · 4 comments

If enforcing the ruff version in pyproject.toml via required-version, the VSCode plugin errors out like this:

image

It would be nicer if this was handled a bit more explicitly instead of just "refer to the logs"

The issue here is that there could be multiple errors that the server discovers while indexing the project and the way it currently works is that it adds these errors in the Ruff output channel and displays a notification (like the one in the issue description) to check the logs. Otherwise, there's a chance that it notification popup is filled with multiple lines of text

Is there a way to maybe raise instead a warning that says something like Ruff server failed to start, please check the logs in Output → Ruff or something like this instead so it's a bit more "evident" it's a ruff issue?

@jvacek I'm not sure what you mean. The notification does include the source of the notification which is "Ruff".

Hmm yeah fair enough, maybe this is a non-issue. Thanks for your time!