You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python.exe from the virtual environment is used, but the environment is not activated.
This causes pylint to throw "no-module-in-name" errors for the package lxml.
Steps to reproduce
Ctrl + Shift + P to run Linting.
Check output under Output/Python.
The need for activation can be tested using the same command in cmd.exe and checking behaviour when the environment is (or isn't) activated beforehand.
VS Code version
1.62.3
Extension version
v2021.11.1422169775
OS type
Windows
OS version
Windows 10
Python distribution
Anaconda
Python version
3.9.7
Language server
Pylance
Expected behaviour
Conda environment activated before pylint is run
Actual behaviour
python.exe from the virtual environment is used, but the environment is not activated.
This causes pylint to throw "no-module-in-name" errors for the package lxml.
Steps to reproduce
Ctrl + Shift + P to run Linting.
Check output under Output/Python.
The need for activation can be tested using the same command in cmd.exe and checking behaviour when the environment is (or isn't) activated beforehand.
Logs
C:\src\apps\Anaconda3\envs\ENV\python.exe -m pylint --rcfile=.pylintrc --msg-template='{line},{column},{category},{symbol}:{msg} --reports=n --output-format=text
Code of Conduct
The text was updated successfully, but these errors were encountered: