ruff-vscode
fb6ec2fd - Better error message for unsupported Ruff version (#512)

Commit
2 years ago
Better error message for unsupported Ruff version (#512) ## Summary This PR adds back the message to suggest the user that the current Ruff binary doesn't support the native server. This was removed from the Python script in #511. fixes: #476 ## Test Plan Install an older Ruff version to test this out using `pipx install --force "ruff==0.3.3"`. <img width="1432" alt="Screenshot 2024-07-03 at 14 50 41" src="https://github.com/astral-sh/ruff-vscode/assets/67177269/267e2bab-e050-4cdf-98ff-fb140b7d63ee"> And, we've another log message which displays the Ruff version similar to `ruff-lsp`: ``` 2024-07-03 16:00:03.089 [info] Using the Ruff binary: /Users/dhruv/work/astral/ruff-lsp/.venv/bin/ruff 2024-07-03 16:00:03.094 [info] Found Ruff 0.4.10 at /Users/dhruv/work/astral/ruff-lsp/.venv/bin/ruff 2024-07-03 16:00:03.095 [info] Server run command: /Users/dhruv/work/astral/ruff-lsp/.venv/bin/ruff server --preview ```
Author
Parents
Loading