Skip to content

No option to select Anaconda root #22

Closed

Description

Environment data

VS Code version: 1.18.0
Python Extension version: 0.8.0
Python Version: Python 3.6.3 :: Anaconda, Inc.
OS and version: Mac OS 10.13.1

Actual behavior

Interpreter selection does not include the Anaconda root Python (located at ~/anaconda3/bin/python) when VSCode is launched from the Applications folder. It only includes the default Apple Python and the Anaconda conda environments (located at ~/anaconda3/envs//bin/python). Anaconda is not in my default PATH. If I launch VSCode from the command line with Anaconda in my PATH then it does appear in the list of interpreters.

Expected behavior

Root Anaconda Python should always be available to select from the interpreter selection menu

Steps to reproduce:

  • Do not have Anaconda Python in your default PATH
  • Launch VSCode normally from the Applications folder
  • Open Python interpreter selection menu by clicking on Python version at bottom left of window. Anaconda root will not appear in the list.

Logs

Output from Python output panel

----------Generating Tags----------
ctags --options=/Users/mfairley/.vscode/extensions/ms-python.python-0.8.0/resources/ctagOptions --languages=Python --exclude=**/site-packages/** -o /Users/mfairley/Source/cs238/.vscode/tags .
/Library/Developer/CommandLineTools/usr/bin/ctags: illegal option -- -
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...

Linting with pylint failed.
You could either install the 'pylint' linter or turn it off in setings.json via "python.linting.pylintEnabled = false".
Error: Command failed: /usr/bin/python -m pylint --msg-template='{line},{column},{category},{msg_id}:{msg}' --reports=n --output-format=text /Users/mfairley/Source/cs238/p2/python/deep_learning.py
/usr/bin/python: No module named pylint

Output from Console window (Help->Developer Tools menu)

[Extension Host] Linter 'pylint' not installed.
t.log @ workbench.main.js:sourcemap:9
workbench.main.js:sourcemap:9 [Extension Host] (node:19853) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
t.log @ workbench.main.js:sourcemap:9
t._logExtensionHostMessage @ workbench.main.js:sourcemap:9
(anonymous) @ workbench.main.js:sourcemap:9
emitTwo @ events.js:106
emit @ events.js:194
process.nextTick @ internal/child_process.js:766
_combinedTickCallback @ internal/process/next_tick.js:73
_tickCallback @ internal/process/next_tick.js:104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions