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

Incorrect display name for conda environment #378

Closed
DonJayamanne opened this issue Dec 8, 2017 · 0 comments · Fixed by #380
Closed

Incorrect display name for conda environment #378

DonJayamanne opened this issue Dec 8, 2017 · 0 comments · Fixed by #380
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug
Milestone

Comments

@DonJayamanne
Copy link

  • Create a conda environment for Python 2.7
  • Select an interpreter from the command palette (Python Extension functionality)
    The version info displayed for Python 2.7 env is incorrect. We're displaying the display name of the root environment.

Currently we're using the python_version from the json returned in conda info --json and this is incorrect.

The solution would be to just invoke --version to get the version off the interpreter.

{
  "GID": 20,
  "UID": 501,
  "channels": [
    "https://repo.continuum.io/pkgs/main/osx-64",
    "https://repo.continuum.io/pkgs/main/noarch",
    "https://repo.continuum.io/pkgs/free/osx-64",
    "https://repo.continuum.io/pkgs/free/noarch",
    "https://repo.continuum.io/pkgs/r/osx-64",
    "https://repo.continuum.io/pkgs/r/noarch",
    "https://repo.continuum.io/pkgs/pro/osx-64",
    "https://repo.continuum.io/pkgs/pro/noarch"
  ],
  "conda_build_version": "3.0.22",
  "conda_env_version": "4.3.27",
  "conda_location": "/Users/donjayamanne/anaconda3/lib/python3.6/site-packages/conda",
  "conda_prefix": "/Users/donjayamanne/anaconda3",
  "conda_private": false,
  "conda_version": "4.3.27",
  "default_prefix": "/Users/donjayamanne/anaconda3/envs/py27",
  "env_vars": {
    "CIO_TEST": "<not set>",
    "CONDA_DEFAULT_ENV": "py27",
    "CONDA_ENVS_PATH": "<not set>",
    "DYLD_LIBRARY_PATH": "<not set>",
    "PATH": "/Users/donjayamanne/anaconda3/envs/py27/bin:/Users/donjayamanne/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/donjayamanne/.nvm/versions/node/v8.9.1/bin:/Users/donjayamanne/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",
    "PYTHONHOME": "<not set>",
    "PYTHONPATH": "<not set>"
  },
  "envs": [
    "/Users/donjayamanne/anaconda3/envs/one",
    "/Users/donjayamanne/anaconda3/envs/py27",
    "/Users/donjayamanne/anaconda3/envs/py36",
    "/Users/donjayamanne/anaconda3/envs/three"
  ],
  "envs_dirs": [
    "/Users/donjayamanne/anaconda3/envs",
    "/Users/donjayamanne/.conda/envs"
  ],
  "netrc_file": null,
  "offline": false,
  "pkgs_dirs": [
    "/Users/donjayamanne/anaconda3/pkgs",
    "/Users/donjayamanne/.conda/pkgs"
  ],
  "platform": "osx-64",
  "python_version": "3.6.2.final.0",
  "rc_path": null,
  "requests_version": "2.18.4",
  "root_prefix": "/Users/donjayamanne/anaconda3",
  "root_writable": true,
  "site_dirs": [],
  "sys.executable": "/Users/donjayamanne/anaconda3/bin/python",
  "sys.prefix": "/Users/donjayamanne/anaconda3",
  "sys.version": "3.6.2 |Anaconda, Inc.| (default, Sep 21 2017, 18:29:43) \n[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]",
  "sys_rc_path": "/Users/donjayamanne/anaconda3/.condarc",
  "user_agent": "conda/4.3.27 requests/2.18.4 CPython/3.6.2 Darwin/17.2.0 OSX/10.13.1",
  "user_rc_path": "/Users/donjayamanne/.condarc"
}
@DonJayamanne DonJayamanne added awaiting 2-PR bug Issue identified by VS Code Team member as probable bug labels Dec 8, 2017
@DonJayamanne DonJayamanne added this to the December 2017 milestone Dec 8, 2017
@DonJayamanne DonJayamanne self-assigned this Dec 8, 2017
DonJayamanne added a commit that referenced this issue Dec 11, 2017
* Add support for pip and/or conda when installing modules
* Fix display versions for environments (fixes #378)
* Refactor installer to use the pip/conda module installer for installation of modules
* Performance improvement of detecting virtual env and setting it (fixes #372)
* Code refactor to ensure interpreter locators use the new DI framework
* Fixes #266
@lock lock bot locked as resolved and limited conversation to collaborators Jul 12, 2018
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants