vscode-ruff icon indicating copy to clipboard operation
vscode-ruff copied to clipboard

Ruff version mismatch

Open lociii opened this issue 1 year ago • 4 comments

Repository on GitHub lists 0.4.1 as a dependency, however the extension downloadable from the marketplace ships with 0.4.2.

This makes it pretty unpredictable to keep the ruff version in sync with other tools (like pre-commit or build pipelines).

lociii avatar May 15 '24 07:05 lociii

Interesting! I think that's the pre-release version you're looking at. The release version does ship with 0.4.1 Ruff version. I'm not sure how to switch the linked page to show the latest release version instead.

Screenshot 2024-05-15 at 13 24 03

You can see it in the pre-release branch that the Ruff version is 0.4.2: https://github.com/astral-sh/ruff-vscode/blob/4c4730a482d47b5499d5f7e31897264fdc181304/pyproject.toml#L13

dhruvmanila avatar May 15 '24 07:05 dhruvmanila

Interesting. Thanks for the clarification. This is very confusing as there is no way to find out about production or pre-release on that marketplace page.

lociii avatar May 15 '24 13:05 lociii

Yeah, I think the page uses the latest version. The way the different versions work is that even numbers are used for stable versions and odd numbers are used for pre-release versions. So, the latest version will always be the pre-release version.

I'm not sure we can do anything here :(

dhruvmanila avatar May 20 '24 06:05 dhruvmanila

The good news is that they'll be unified soon (the versions will be the same across pre-release and stable).

charliermarsh avatar May 20 '24 14:05 charliermarsh

These are now aligned.

charliermarsh avatar May 24 '24 21:05 charliermarsh