-
Notifications
You must be signed in to change notification settings - Fork 58
VSCode Ruff doesn't work: Python interpreter missing: #493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi! I'm not sure why it's not finding the Python installation you have. Could you share more details about where your Python is installed? i.e.
|
I already have Python on my machine, these my python interpreters:
I have I don't change any settings of Previously, before latests updates of extension (or vscode? |
To clarify, I believe |
I'm just looking through the history to see if we changed anything related to this and I'm not seeing anything relevant. |
Thank you, @charliermarsh and @zanieb!!! |
I'm finding this doesn't work when I have many folders in the workspace each with a different Python interpreter path. I am using the |
Yes, that's the current behavior (it's mentioned in the docs: https://docs.astral.sh/ruff/editors/settings/#interpreter). What's your use-case for requiring different Python interpreter in a multi-root workspace w.r.t. Ruff? |
Having many Python packages with different interpreters (i.e. using |
@manmartgarc I don't think it has anything to do with a package. Can you what problem are you facing with the Ruff extension? Is it not showing any diagnostics? Is the extension not loading? |
It's not finding the python interpreter unless I select a Python interpreter on the package-level |
@manmartgarc Maybe we should take this discussion in a new issue. Can you provide the project structure? And, how are you opening VS Code, like do you have a |
There is something wrong with multi-root packages. If I have the following structure :
The extension will use FYI this is how |
I installed latest version of python, vs code and ruff (also ruff-lsp in my .env), but get error and can't format code in jupyter files/python files.

My system:
The text was updated successfully, but these errors were encountered: