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

No option to select Anaconda root #22

Closed
MFairley opened this issue Nov 9, 2017 · 0 comments · Fixed by #221
Closed

No option to select Anaconda root #22

MFairley opened this issue Nov 9, 2017 · 0 comments · Fixed by #221
Labels
feature-request Request for new features or functionality
Milestone

Comments

@MFairley
Copy link

MFairley commented Nov 9, 2017

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
@DonJayamanne DonJayamanne added the feature-request Request for new features or functionality label Nov 14, 2017
@DonJayamanne DonJayamanne added this to the December 2017 milestone Nov 17, 2017
DonJayamanne added a commit that referenced this issue Nov 22, 2017
Fixes #22 to Detect anaconda from known locations
Also added a strict linter to lint modified files (background task)
* look for conda file in known locations
* gulp changes to watch strict linting
* merged upstream
* fix code review comments
* inject windows flag into services
DonJayamanne added a commit that referenced this issue Dec 14, 2017
* upstream/master:
  Fixes #22 to Detect anaconda from known locations  (#221)
  Use workspaceFolder token instead of workspaceRoot (#267)
  Fix registry lookup response (#224)
  Fix issues when running without debugging and debugged code terminates (#249)
@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
feature-request Request for new features or functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants