You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, I'm not sure if this is a bug in Ruff extension because we use the Python extension to query the currently selected Python interpreter (refer to the screenshot, in the toolbar it says "Select interpreter" which is coming from the Python extension as it's unable to determine it for the project). As mentioned in the logs, one of the ways to resolve this would to use the ruff.interpreter setting. We're also looking into improving the UX for this part especially for the native server because we could skip this step if the extension is unable to get a Python executable (#598).
When ruff is being used exclusively in a notebook it fails to start. Here is the log output:
2025-01-26 19:54:52.014 [info] Name: Ruff
2025-01-26 19:54:52.014 [info] Module: ruff
2025-01-26 19:54:52.014 [info] Python extension loading
2025-01-26 19:54:52.014 [info] Waiting for interpreter from python extension.
2025-01-26 19:54:52.088 [info] Python extension loaded
2025-01-26 19:54:52.111 [error] Python interpreter missing:
[Option 1] Select Python interpreter using the ms-python.python.
[Option 2] Set an interpreter using "ruff.interpreter" setting.
Please use Python 3.7 or greater.
If I create a .py file, select and interpreter, then restart the language server it works.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: