Status bar displays wrong conda environment name
See original GitHub issueVS 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
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:
- Created 5 years ago
- Comments:11
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Closing in favor of #3406