-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Can't autodetect pipenv on 2018.2.1 #1027
Comments
I've tested this at my end and it seems to work.
|
I deleted The other question:
|
What was in the folder? |
Once in vscode please remember to create/open a python file, this will activate the python extension. |
Yes, I opened a py file. The first time I chose the python interpreter so it was written in settings. |
Two things:
|
And thanks for helping us with this! 😃 |
And as a third thing, can you do this before you upgrade?
Basically we would like to know if the |
@brettcannon Thanks for your reply
|
It is still not working after I upgraded Thanks |
Hmm, weird since it works for people on the team who develop on Mac. We will see if we can replicate it somehow on our end. |
Working for me now with the latest pipenv installed (directly via homebrew for what it's worth) |
Thanks |
I met the same issue. In my case I have two root folders in a workspace, say project1 and project2, both have been configured by pipenv. I have set "python.pythonPath" to different values accordingly in |
@swordsp |
@DonJayamanne Thanks for your effort I followed your instructions and it still turns out not working log.log is attached |
FYI here's the error captured:
|
|
@DonJayamanne I also searched the solution of this decode error of click but it didn't work out. I wonder why it can't work inside extension but works well in my terminal Thanks |
Please confirm you have quit and restarted VS Code, we need to ensure it has access to the new environment variables. |
Yeah, after I tried several times, uninstall and reinstall vscode from homebrew. It is working now! Congrats! Thanks for all you've done here. |
Final solution for those who encountered this issue:Add below line in your
And restart your Dock by:
The dock will be restarted, and VSCode started from Docker or Finder will read the env rightly. Work on macOs High Sierra 10.13.3 and Python extension 2018.2.1 |
|
Environment data
pipenv==11.3.2
Actual behavior
When open a project with
Pipfile
, the interpreter is bare Python 3.6.4Expected behavior
When open a project with
Pipfile
, the interpreter will be autodetected asPython3.6.4(pipenv)
and uses the virtualenv created by pipenvSteps to reproduce:
pipenv install
to create a virtualenv forrequests_html
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: