Skip to content

Calling scripts in VS Code terminal does not respect conda environment #4708

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

Closed
chrisjsewell opened this issue Mar 11, 2019 · 2 comments
Closed
Assignees
Labels
area-terminal bug Issue identified by VS Code Team member as probable bug

Comments

@chrisjsewell
Copy link

Environment data

  • VS Code version: 1.31.0
  • Extension version: 2019.2.5558
  • OS and version: OSX 10.10.5
  • Python version: all
  • Type of virtual environment used: conda 4.6.7
  • Relevant/affected Python packages and their versions: all

Expected behaviour

In a standard terminal:

$ conda deactivate
$ pip install sphinx
$ which sphinx-build
/usr/local/bin/sphinx-build
$ conda activate myenv
$ pip install sphinx
$ which sphinx-build
//anaconda/envs/myenv/bin/sphinx-build

Actual behaviour

In a VS Code terminal

$ conda deactivate
$ pip install sphinx
$ which sphinx-build
/usr/local/bin/sphinx-build
$ conda activate myenv
$ pip install sphinx
$ which sphinx-build
/usr/local/bin/sphinx-build
@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Mar 11, 2019
@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug area-terminal labels Mar 12, 2019
@DonJayamanne DonJayamanne self-assigned this Mar 12, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Mar 12, 2019
@DonJayamanne
Copy link

Could be a duplicate of #4434 (comment)
Please could try making the following change and testing this:

"terminal.integrated.env.osx": {
		"PATH": ""
}

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster triage labels Mar 12, 2019
@chrisjsewell
Copy link
Author

yes that does work thanks

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

No branches or pull requests

2 participants