Skip to content
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

remove pythonPath in settings.json and replace it with...? #14

Open
djay opened this issue Jul 7, 2020 · 2 comments
Open

remove pythonPath in settings.json and replace it with...? #14

djay opened this issue Jul 7, 2020 · 2 comments

Comments

@djay
Copy link
Member

djay commented Jul 7, 2020

It's no longer used and you get annoying warnings asking if you want to remove it from your settings.json. see https://visualstudiomagazine.com/articles/2020/05/14/vs-code-python.aspx

Maybe there is a way to write it into launch.json or .env or maybe .direnv? see https://code.visualstudio.com/docs/python/environments (note these docs still mention pythonPath so they are out of date)

Otherwise I think you have to set it yourself which is annoying. Unless someone makes a buildout extension.

@djay
Copy link
Member Author

djay commented Jul 17, 2020

I thought perhaps it would at least find the local python if I include ./bin in the PATH inside .vscode/.env. Didn't work

@djay
Copy link
Member Author

djay commented Jul 17, 2020

I tried setting "python.venvPath" to the local bin and that seemed to work include it on the list you can pick from. But not as the first item so won't use that as default :(
and then I tried it again and it didn't work.
and I'm not sure if that worked just because I normally make the virtualenv the root of the buildout dir.
Also tried WORKON_HOME and that didn't work either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant