question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python Interpreter selection missing from status bar

See original GitHub issue

Issue Type: Bug

Behaviour

Expected vs. Actual

Expected: Python interpeter selector should be present, located at the left hand side of the status bar Actual: Python interpreter selector is missing

Steps to reproduce:

  1. Install latest version of vscode(1.64.2)
  2. Install latest Python extension (ms-python.python v2022.0.1814523869)
  3. Open a .py file in the editor
  4. Interpreter selector is missing from status bar
  5. Downgrade Python extension to v2021.12.1559732655
  6. Interpreter selector is present

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.3
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
  • Value of the python.languageServer setting: Default
User Settings


defaultLS: {"defaultLSType":"Pylance"}

downloadLanguageServer: true

envFile: "<placeholder>"

venvPath: "<placeholder>"

venvFolders: "<placeholder>"

condaPath: "<placeholder>"

pipenvPath: "<placeholder>"

poetryPath: "<placeholder>"

languageServer: "Pylance"

linting
• enabled: true
• cwd: "<placeholder>"
• Flake8Args: "<placeholder>"
• flake8Enabled: false
• flake8Path: "<placeholder>"
• lintOnSave: true
• banditArgs: "<placeholder>"
• banditEnabled: false
• banditPath: "<placeholder>"
• mypyArgs: "<placeholder>"
• mypyEnabled: false
• mypyPath: "<placeholder>"
• pycodestyleArgs: "<placeholder>"
• pycodestyleEnabled: false
• pycodestylePath: "<placeholder>"
• prospectorArgs: "<placeholder>"
• prospectorEnabled: false
• prospectorPath: "<placeholder>"
• pydocstyleArgs: "<placeholder>"
• pydocstyleEnabled: false
• pydocstylePath: "<placeholder>"
• pylamaArgs: "<placeholder>"
• pylamaEnabled: false
• pylamaPath: "<placeholder>"
• pylintArgs: "<placeholder>"
• pylintPath: "<placeholder>"

sortImports
• args: "<placeholder>"
• path: "<placeholder>"

formatting
• autopep8Args: "<placeholder>"
• autopep8Path: "<placeholder>"
• provider: "autopep8"
• blackArgs: "<placeholder>"
• blackPath: "<placeholder>"
• yapfArgs: "<placeholder>"
• yapfPath: "<placeholder>"

testing
• cwd: "<placeholder>"
• debugPort: 3000
• nosetestArgs: "<placeholder>"
• nosetestsEnabled: undefined
• nosetestPath: "<placeholder>"
• promptToConfigure: true
• pytestArgs: "<placeholder>"
• pytestEnabled: true
• pytestPath: "<placeholder>"
• unittestArgs: "<placeholder>"
• unittestEnabled: false
• autoTestDiscoverOnSaveEnabled: true

terminal
• activateEnvironment: true
• executeInFileDir: "<placeholder>"
• launchArgs: "<placeholder>"

experiments
• enabled: true
• optInto: []
• optOutFrom: []

insidersChannel: "off"

tensorBoard
• logDirectory: "<placeholder>"

Extension version: 2022.0.1814523869 VS Code version: Code 1.64.2 (f80445acd5a3dadef24aa209168452a3d97cc326, 2022-02-09T22:02:28.252Z) OS version: Windows_NT x64 10.0.19043 Restricted Mode: No Remote OS version: Linux x64 4.19.84-microsoft-standard

System Info
Item Value
CPUs Intel® Core™ i7-7700K CPU @ 4.20GHz (8 x 4200)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.97GB (19.59GB free)
Process Argv –file-uri vscode-remote://wsl%2Bubuntu-18.04/home/roth/ws1cs.code-workspace --crash-reporter-id 38657878-2196-4094-89a1-de42303fac0d
Screen Reader no
VM 29%
Item Value
Remote WSL: Ubuntu-18.04
OS Linux x64 4.19.84-microsoft-standard
CPUs Intel® Core™ i7-7700K CPU @ 4.20GHz (8 x 4200)
Memory (System) 25.03GB (22.58GB free)
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstartedc:30433508
vsclayoutctrc:30437038
vsrem710:30416614
dsvsc009:30440023
pythonvspyt640:30442238
vsbas813:30436447
vscscmwlcmc:30438804
helix:30440343
vsnot107cf:30443615

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
rothman857commented, Feb 25, 2022

Oh I see, if you hover over the {} in {} Python on the right side of the taskbar, you can pin the interpreter selection

image

becomes

image

0reactions
SpacedDotcommented, Feb 28, 2022

Why do this change, totally change user behavior…

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Select Python interpreter" doesn't show up in status bar - Reddit
"Select Python interpreter" doesn't show up in status bar · 1.Disable all extensions except python and reload the window to check if any...
Read more >
python interpreter selector missing
The interpreter selector disappears sometimes after opening files, previously did not hide "Python Interpreter". To get it back as a temp fix, ...
Read more >
Selecting the correct Python interpreter in ... - YouTube
These are the settings adjustments you'll need to make to use a conda Python environment to execute your code inside of VSCode.
Read more >
interpreter problem in VS Code - Microsoft Q&A
I even installed Python on Windows as well as its plugin on VS Code. But what is the problem? Why does my status...
Read more >
Python in Visual Studio Code
Learn about Visual Studio Code as a Python IDE (code completion, debugging, linting). ... Status bar showing no selected Python interpreter.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found