2024-07-02 15:59:44.215 [info] Could not find executable in 'path': /Users/dhruv/random/ruff, /Users/dhruv/another/random/ruff
2024-07-02 15:59:44.215 [info] Using bundled executable: /Users/dhruv/work/astral/ruff-vscode/bundled/libs/bin/ruff
2024-07-02 15:59:44.215 [info] Server run command: /Users/dhruv/work/astral/ruff-vscode/bundled/libs/bin/ruff server --preview
2024-07-02 15:59:44.215 [info] Server: Start requested.
5
No paths given, should fallback to using bundled executable:
Summary
This PR does two things:
ruff.path
is an array, we need to check each entry and only proceed with the first valid path (ruff-lsp
reference)useBundled
import strategyfixes: #507
Test Plan
1
One valid path:
Logs:
2
Multiple valid paths:
Logs:
3
First is an invalid path, second is a valid path:
Logs:
4
All invalid paths, should fallback to using bundled executable:
Logs:
5
No paths given, should fallback to using bundled executable:
Logs:
6
No paths, not using bundled executable, let the Python script decide on which executable to use:
Logs: