Open fralik opened 2 years ago
I am using mypy from a different venv than the one I run my code with.
Yep, sorry, this is a use case that is not supported by the plugin currently.
You coud probably make it work with some hacks -- like creating a wrapper script named mypy
in your project virtualenv bin directory, which deactivates the project venv and invokes mypy in the other virtualenv. But I haven't tried this.
I dug into the code. Looks like the initial issue is in the way how availability is checked, see here. When files are being added for scanning that function is called with showNotifications == true
resulting in returning false
even if path to mypy is set via plugin configuration.
I am observing another issue, which I am unsure if it is related or not. I now managed to run mypy, I see in the code that it returns 14 issues, but they are not displayed in the UI. UI indicates A scan is in progress
and then Mypy found no problems
.
Step 1: Are you in the right place?
Step 2: Describe your environment
0.14.0
2021.3.1
0.780
Step 3: Describe the problem:
Steps to reproduce:
Test
button.Check current button
Observed Results:
Mypy found no problems
mypy missing
.Expected Results:
Relevant Code: