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

python.pythonPath does not load in projects startup terminal #7288

Closed
fenchu opened this issue Sep 9, 2019 · 2 comments
Closed

python.pythonPath does not load in projects startup terminal #7288

fenchu opened this issue Sep 9, 2019 · 2 comments
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@fenchu
Copy link

fenchu commented Sep 9, 2019

Environment data

  • VS Code version: 1.38.0
  • Extension version (available under the Extensions sidebar): 2019.9.34911
  • OS and version: windows 10 pro
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.4
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: XXX
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version #3977): language server

Expected behaviour

If you save off you project with a terminal active, next time you start the project:
On initial load the terminal does not honor python.pythonPath

If I close the terminal and start a new on it does.

Actual behaviour

my python.pythonPath is not loaded when project is loaded

Steps to reproduce:

create a python venv in windows.
create a .vscode/settings.json with a single entry aka:

{
    "python.pythonPath": "C:\\venvs\\winapp-lra\\Scripts\\python.exe"
}
@fenchu fenchu added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Sep 9, 2019
@luabud
Copy link
Member

luabud commented Sep 9, 2019

Hi @fenchu! Thank you for reporting this. When you say the python.pythonPath is not loaded, do you mean the virtual environment is not activated on the terminal that was first opened? If so, this is the current behavior, and then this issue would actually be a feature request. However, if you mean that the interpreter displayed in the status bar doesn't match the one in your settings.json file, then that's a bug and we'd need some more information to investigate what's going on.

Would you mind showing what is displayed on your status bar?

image

@luabud luabud added info-needed Issue requires more information from poster triage labels Sep 9, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Sep 9, 2019
@DonJayamanne
Copy link

Dup of #5330

@ghost ghost removed the triage label Sep 11, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants