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
While I am not sure if this extension can help vscode-python official extension to find python interpreters exposed by mise, it would clearly be very useful feature.
At this moment, even if mise is activated and working in vscode terminal, vscode python extension is failing to detect mise pythons and suggests only the ones installed via different methods. Should be noted that pyenv and asdf ones seems to be detected but I am no longer using those, since i switched to mise.
Please remark that while the .venv is detected, the two mise installed pythons are not suggested by vscode when it comes to selecting a python interpreter, even if they are in PATH. This is an issue especially for projects that do not use a .venv, and most python ones that use tox, do not have one as they rely on tox to manage these.
The text was updated successfully, but these errors were encountered:
Let me know if this works for you. I suspect that you might run into an issue if you load it with multiple folders. In theory, your settings.json file should have been updated, but I don't see it on your screenshot.
The problem is that vscode-python is unable to detect python interpreters from mise. On the other hand, if I have a .venv inside the project, it will find it. I updated the screenshot to explain the issue better.
The problem is that vscode-python is unable to detect python interpreters from mise
It does work if you set the default interpreter path in the settings.json
IMO, It's all caused by VSCode limitation on not having a good way to share settings (microsoft/vscode#40233) so the python VSCode extension had to implement some workarounds.
If they would, the Python VSCode extension could simply let us update and read from settings.json. (For example, they could have an array where one could populate all the know python versions installed on the system).
While I am not sure if this extension can help vscode-python official extension to find python interpreters exposed by mise, it would clearly be very useful feature.
At this moment, even if mise is activated and working in vscode terminal, vscode python extension is failing to detect mise pythons and suggests only the ones installed via different methods. Should be noted that pyenv and asdf ones seems to be detected but I am no longer using those, since i switched to mise.
Please remark that while the .venv is detected, the two mise installed pythons are not suggested by vscode when it comes to selecting a python interpreter, even if they are in PATH. This is an issue especially for projects that do not use a
.venv
, and most python ones that use tox, do not have one as they rely on tox to manage these.The text was updated successfully, but these errors were encountered: