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.

Status bar displays wrong conda environment name

See original GitHub issue

VS Code displays wrong environment name in the status bar (see below screenshots). Shows base even though te is currently active.

Probably unrelated but perhaps worth mentioning: pylint marks all local imports as E0401:Unable to import.

Environment data

  • VS Code version: 1.28.2
  • Extension version (available under the Extensions sidebar): 2018.9.1
  • OS and version: macOS 10.14
  • Python version (& distribution if applicable, e.g. Anaconda): python 3.3.6 (64 bit)
  • Type of virtual environment used: (mini-)conda 4.5.11

Actual behavior

screenshot 2018-10-28 at 18 59 50 screenshot 2018-10-28 at 18 59 32

Expected behavior

Status bar shows Python 3.6.6 64-bit ('te': conda).

Steps to reproduce:

Unknown

Logs

Python output

Starting Microsoft Python language server.
Microsoft Python Language Server version 0.1.42.0
Initializing for /usr/local/miniconda3/envs/te/bin/python
##########Linting Output - pylint##########
************* Module src.aleatoric_mse
8,0,error,E0401:Unable to import 'meta'
9,0,error,E0401:Unable to import 'nn.layers.mcdropout'
10,0,error,E0611:No name 'generator' in module 'utils'
10,0,error,E0401:Unable to import 'utils.generator'

Output from Console under the Developer Tools panel

Nothing unusual

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
janoshcommented, Dec 11, 2018

Interestingly, I just once again tried selecting another env and going back to the original one and now it’s displaying correctly. No idea why it behaved differently this time around but it appears as though the problem is fixed.

0reactions
DonJayamannecommented, Dec 11, 2018

Closing in favor of #3406

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code terminal doesn't activate Conda environment
Go to the menu bar and click on Terminal. · Type: conda init · Close this terminal and open a new one ·...
Read more >
Troubleshooting — conda 22.11.1.post16+ce4e810c9 ...
Occasionally, an installed package becomes corrupted. Conda works by unpacking the packages in the pkgs directory and then hard-linking them to the environment....
Read more >
Conda create environment and everything you need to know ...
When you create an environment and packages, lets say you run something like this (insert your package names). conda install python=3.7 ...
Read more >
Conda - Yale Center for Research Computing
If you get a permission denied error when running conda install or pip install for a package, make sure you have created an...
Read more >
How to Manage Python Dependencies with Conda - ActiveState
As suggested in the error message, you can use the command conda info to manually view each package's dependencies, and hopefully find versions ......
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