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
The Python code editor only highlights errors in the file in question.
Actual behaviour
The Python code editor wrongly highlights unrelated errors found in other files that Mypy checked.
Steps to reproduce:
This GIF shows the error at work (click on it to see better, Shift+Cmd+R to restart the animation). Things to notice:
the code was initially free of Mypy errors, as I'm showing
making a single type error produces Mypy errors in three files; that's expected and pretty common
opening one of those other files (redblue.py) will show an unrelated error on line 39 (which is actually the error from midi.py, the original file we edited)
To reproduce this yourself, clone aiotone and configure it.
Now, in VScode, you might need to let it know the location of your Python interpreter within your virtualenv. Then, open aiotone/midi.py and make the same mistake I did on line 39. Then, open aiotone/redblue.py and observe the Mypy error from midi.py appear on line 39 in redblue.py, too.
Observations
This regression is not present in the previous release of python-vscode.
When mypy.ini is not present at all, this bug does not manifest.
Environment data
"python.jediEnabled"set to; more info How to update the language server to the latest stable version #3977): JEDIExpected behaviour
The Python code editor only highlights errors in the file in question.
Actual behaviour
The Python code editor wrongly highlights unrelated errors found in other files that Mypy checked.
Steps to reproduce:
This GIF shows the error at work (click on it to see better, Shift+Cmd+R to restart the animation). Things to notice:
To reproduce this yourself, clone aiotone and configure it.
Now, in VScode, you might need to let it know the location of your Python interpreter within your virtualenv. Then, open aiotone/midi.py and make the same mistake I did on line 39. Then, open aiotone/redblue.py and observe the Mypy error from midi.py appear on line 39 in redblue.py, too.
Observations