How to manage venvs for subprojects within a workspace? #25334
Replies: 3 comments 1 reply
-
|
Hi! Are you still seeing the problem with pylance no picking up the chosen environment? We made some changes between the two extensions which should help with pylance getting the right info |
Beta Was this translation helpful? Give feedback.
-
|
I have same issues |
Beta Was this translation helpful? Give feedback.
-
|
My case is similar, but the failure to recognize imports only occurs in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
pyproject.tomlfiles and each installed into a.venvdirectory in the project itself (not a central Poetry env cache)..pyfile in any of the subprojects, the status bar shows the proper environment so I would expect Pylance to pick up the correct interpreter path and evaluate imports using that, but it fails.I created a toy example that fails in the same way. I have
subproject_aandsubproject_b, both has theirpyproject.tomland.venv, both recognised by the environments extension (left panel). The status bar properly shows thesubproject_aenvironment, which haspolarsinstalled, but Pylance still fails to recognise. it. What do I miss here?Beta Was this translation helpful? Give feedback.
All reactions