astral-sh / ruff-vscode

A Visual Studio Code extension with support for the Ruff linter.
Other
945 stars 45 forks source link

Ruff version mismatch #464

Closed lociii closed 1 month ago

lociii commented 1 month ago

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).

dhruvmanila commented 1 month ago

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

lociii commented 1 month ago

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.

dhruvmanila commented 1 month ago

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 :(

charliermarsh commented 1 month ago

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

charliermarsh commented 1 month ago

These are now aligned.