Replies: 3 comments
-
I have documented the python + mise setup here: https://hverlin.github.io/mise-vscode/guides/python/ 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 |
Beta Was this translation helpful? Give feedback.
-
The problem is that vscode-python is unable to detect python interpreters from mise. On the other hand, if I have a |
Beta Was this translation helpful? Give feedback.
-
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 As you mentioned here microsoft/vscode-python#20752 (comment), the VSCode extension could also discover all python installations present in the (note that there are workarounds for sharing settings currently, like https://marketplace.visualstudio.com/items?itemName=swellaby.workspace-config-plus, but best is to just do it manually. (you can add a mise task to merge the shared settings, for example) |
Beta Was this translation helpful? Give feedback.
-
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.Beta Was this translation helpful? Give feedback.
All reactions