Closed felipe1982 closed 2 years ago
Hello! The extension checks if Pipfile.lock is present in project root. So, two possible cases: no lockfile, or I incorrectly detect project root. Do you have a lockfile?
I have many workspaces (... Or folders or repositories) open in 1 single vscode window. Some have Pipfile.lock but no guarantee all do.
I take into account only the first workspace. I should check how python extension finds an active workspace
I have just added support for multiple directories in one workspace. Now pipenv
/poetry
should be available if any of the directories have a lock file. Also, this directory will be chosen as a workDir
(so, the installer changes the working directory to the one with a lock file before installing packages). For now, it is not possible to choose work dir if you have multiple lock files, the first one is selected.
Please let me know if this solution works for you.
It appears to work, close this, and I'll open again if it returns. :)
I use pipenv in my environment, and often Boto3-ide does not pick it up, instead defaulting to pip. I have set my default interpreter to use my pipenv environment, and reloaded VSCode, but this problem remains.