Skip to content

Python Terminal is not finding conda env, even so interpreter is found #711

Closed
@michaelaye

Description

@michaelaye

Environment data

VS Code version: 1.19.3
Python Extension version: 2018.1.0
Python Version: 3.6.4 (conda-forge, conda 4.4.8)
OS and version: macOS 10.12.6

Actual behavior

Command-Palette: Python: Create Terminal
Opens terminal, it is trying to activate conda env using "source activate stable", according to my activated Conda env, but it errors:

source activate stable

┌─( ~/D/s/planetpy λ:master | ✱ ◼ 3ebce8e )────────────────────────────────────────────────────────────────────( @MacL2938 )─┐
└─❱❱❱ source activate stable                                                                                   +7509 13:55 ❰─┘
source: no such file or directory: activate

Expected behavior

Terminal opens with activate conda environment

Steps to reproduce:

  • Manually choose Python interpreter to be a conda env, with conda 4.4.x

Logs

Output from Python output panel

no related output

Note, that pylint is being found, but maybe the package is directly going to the bin path without required path settings via the conda script to work?
Also note, that since conda 4.4.x the default command to activate an env has changed to conda activate <env_name>, even so the developers announced that the previous command should still work.

Output from Console window (Help->Developer Tools menu)
screenshot 2018-02-05 14 13 19

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-terminalbugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions