astral-sh / ruff-vscode

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

Enabling `ruff.nativeServer` doesn't respect `ruff.importStrategy: useBundled` #507

Closed T-256 closed 11 hours ago

T-256 commented 6 days ago
  1. install ruff-vscode 2024.30.0 (which bundled with ruff 0.5)
  2. put ruff 0.4.x in PATH
  3. set ruff.importStrategy: useBundled and ruff.nativeServer: true
  4. restart vscode
  5. 🐛 run command ruff.printDebugInformation

Actual

2024-06-28 13:51:00.630 [info] 1604.842777s ERROR ruff_server::server::api An error occurred with result ID 50: Invalid command `ruff.printDebugInformation`

I verified vscode spawned process uses ruff 0.4.x