Skip to content

Python Language Server "unable to determine path to interpreter" should be actionable #2983

@qubitron

Description

@qubitron

Environment data

  • VS Code version: 1.28.2 (user setup)
  • Extension version (available under the Extensions sidebar): 2018.9.1
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): Have python 2.7, 3.6, 3.7 and anaconda installed
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): None (yet)
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

Opened a folder with a single empty hello.py file:
image

No python interpreter is selected, and I get this error message immediately after opening the file

Expected behavior

The dialog should instead say something like

No Python interpreter is selected, you need to select a Python interpreter to enable features such as IntelliSense, linting, and debugging.
[ Select Python Interpreter ] 

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalityimportantIssue identified as high-priority

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions