Closed
Description
Environment data
- VS Code version: 1.38.1
- Extension version (available under the Extensions sidebar): 2019.9.3491.1
- OS and version: Windows 10 Pro
- Python version (& distribution if applicable, e.g. Anaconda): Anaconda Python 3.7.3 or 3.6.9
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda (miniconda)
- Relevant/affected Python packages and their versions: mypy 0.720
- Jedi or Language Server? (i.e. what is
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): Jedi Enabled True
Expected behaviour
Output from the mypy command is displayed in the OUTPUT tab under the Python dropdown, and the contents is parsed to be shown in the Problems tab
Actual behaviour
OUTPUT tab shows the command being executed (twice actually), but the Linting Output - mypy
is empty. Copy-pasting the exact mypy
command shown in this tab to a command prompt prints some errors as expected.
Yesterday I thought I had solved the problem by completely uninstalling and reinstalling miniconda, creating the virtual env again, which solved the problem for a little while. Now the problem is back. Cannot get mypy to work with either the base
miniconda env or my custom one.
Steps to reproduce:
- Create virtual environment with version python=3.6 or python=3.7 using miniconda3 on Windows
- Install
mypy
throughpip install
orconda install
- Select this environment from the status bar
- Open document with expected mypy errors
- Display OUTPUT tab and select Python from the dropdown list
- Observe the
##########Linting Output - mypy##########
being empty
Logs
> ~\AppData\Local\Continuum\miniconda3\envs\smsl\python.exe -m black --line-length 120 --skip-string-normalization --diff --quiet c:\...\file.py.10dc09022f6774807dcf3aee42e24318.py
cwd: c:\...
> ~\AppData\Local\Continuum\miniconda3\envs\smsl\python.exe -m black --line-length 120 --skip-string-normalization --diff --quiet c:\...\file.py.10dc09022f6774807dcf3aee42e24318.py
cwd: c:\...
> ~\AppData\Local\Continuum\miniconda3\envs\smsl\python.exe -m flake8 --max-line-length=120 --exclude=__init__.py --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s c:\...\file.py
cwd: c:\...
> ~\AppData\Local\Continuum\miniconda3\envs\smsl\python.exe -m flake8 --max-line-length=120 --exclude=__init__.py --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s c:\...\file.py
cwd: c:\...
> ~\AppData\Local\Continuum\miniconda3\envs\smsl\python.exe -m mypy --ignore-missing-imports c:\...\file.py
cwd: c:\...
> ~\AppData\Local\Continuum\miniconda3\envs\smsl\python.exe -m mypy --ignore-missing-imports c:\...\file.py
cwd: c:\...
##########Linting Output - mypy##########
##########Linting Output - flake8##########
53,1,D,D102:Missing docstring in public method
200,1,D,D102:Missing docstring in public method
234,1,D,D102:Missing docstring in public method
This is what the same command outputs if I run it in a separate terminal
(smsl) C:\Users\...>C:\Users\...\AppData\Local\Continuum\miniconda3\envs\smsl\python.exe -m mypy --ignore-missing-imports file.py
file.py:18: error: Module 'utilities.generic_utilities' has no attribute 'Config'