Comments (16)
In most situations, even if there are some problems, "Mypy found no problems" is reported.
For instance, a file may contain two problems and not be reported. Then I may add another problem to this file and now the three problems get reported correctly.
That seems a very serious bug to me . I wonder how many people got this problem unnoticed.
OS: Windows 10 Pro
PyCharm 2020.1 Community
from mypy-pycharm.
That seems a very serious bug to me
I would call the plugin completely broken. On numerous OSes, numerous current versions of Pycharm, the plug-in does nothing.
from mypy-pycharm.
Can I sponsor this fix? I'll use vs code until then :/
from mypy-pycharm.
@chudomozg Update to latest plugin version 0.14.0 and try again. It should pop up an error message explaining what went wrong.
from mypy-pycharm.
Same here, what ever I do to it I always get "Mypy found no problems".
And I can't see any error log in Event Log.
OS: macOS Catalina
PyCharm 2019.3.2
from mypy-pycharm.
same issue here.
- ubuntu 2020.04
- pycharm-professional 2020.1
- using venv
from mypy-pycharm.
I am also getting "Mypy found no issues" even though I have added numerous errors for testing.
I see no way to get the plugin to test it correctly. Neither the manual scan works, nor Pycharm Inspections give a warning.
Also adding new problems to the file doesn't seem to work (unlike it did for numetrix).
Right now the plugin seems completely broken.
Linux Mint 19. (It also apparently applies to all OSes)
from mypy-pycharm.
The plugin worked for several days without any issue. One day it broke and since then a "Mypy found no problems" message is shown for everything.
OS: Windows 10 Pro
PyCharm: Community 2019.3.3
Between the last time the plugin worked properly and the first time it started to not work at all:
- files under the project have not been modified
- the plugin's settings have not been modified
- the computer has been rebooted normally without any application crash or other suspicious behavior
Since the plugin is not working the following steps have been tried but did not solve the problem:
- the .mypy_cache folder has been cleaned up
- the plugin has been uninstalled and reinstalled
- PyCharm's cache has been invalidated and the IDE has been rebooted
- mypy.exe under venv works as expected when called directly from Terminal
- issue #43 occured right when the plugin stopped working and is still present when MyPy inspection is turned on
- MyPy inspection has been switched on and off: when off, the performance issue had been gone, but the plugin still did not give anything else than the message about "finding no problems"
The plugin clearly got broken at a point of time. What is bothering is the fact that the reason of breaking seemed random and since then I was unable to reset the plugin to its "initial" state. If you have any recommendations how to reset a plugin (like deleting cache files if there are any), please don't hesitate to reply here, because otherwise this issue makes the plugin and the inspection feature both unusable which is a pity since the plugin is super awesome when it does its job
from mypy-pycharm.
Additional to what has @scorpeti reported I would like to add that in my case, looks like mypy-pycharm works but it is quite slow (Intel i7, 16GB RAM).
This is my test case:
- I intentionally introduced an error, pressed "check current file" button -> "Mypy found no problems"
- If I press "check current file" after few minutes, an error will show up.
- I commented error, pressed "check current file" button -> "Mypy found no problems" which is OK
- I uncommented error, pressed "check current file" button -> "Mypy found no problems" which is not OK, but if I go to terminal and execute "mypy myfile.py" I will get an error
- If I after terminal go back to mypy and press "check current file" I will get the same error as I saw in terminal
Maybe it works if you wait enough.
I am still checking it.
from mypy-pycharm.
I see mypy errors on the command line, not in PyCharm 2020.3.5, running on OSX Big Sur (11.2).
Is working for others on my team with what appears to be the same settings, versions of PyCharm, mypy and this plugin. I tried uninstalling and reinstalling the plugin, no luck. Tested the path to mypy, succeeded.
from mypy-pycharm.
Hello this plugin looks cool but I'm having the same problem as everyone.
I'm on windows 10, Pycharm 2021.1 Community, installed mypy on my system's python 3.9.
My project is using python 2.7 but changing it to 3.9 does not solve anything.
Mypy path test works well and I'm using mypy.ini at the root of the subfolder I'm checking and configured the path accordingly.
For me the mypy plugin seems to run faster than in the terminal (it's almost instant on my project). Actually The first run on pycharm opening is taking a little more time and the (non ^^)-result seem to be cached after.
from mypy-pycharm.
I'm having the same issue, mypy scans find no errors, if I run from the command line I get all the expected errors:
macOS Monterey 12.0.1
Pycharm 2021.3.1
Python 3.9
mypy 0.931
I have tried uninstalling/reinstalling, restarting, different configs etc.
Somewhat accidentally I've found it does work when I modify a file (Both inspections and the Mypy window), but only for that file. When I then make a commit with the changes the plugin no longer works for the file. Seems that the plugin only runs in the Check All Modified Files
or Check Files in Current Change List
modes.
from mypy-pycharm.
Up to plugin version 0.12.1, in situations where mypy exits abnormally (some configuration issues, internal errors, etc), the mypy plugin shows no indication that there was a problem.
I have created PR #92 to shed light on these problems. With that change, you should receive a notification with more information to solve the issue.
IMO this issue currently contains too little actionable information and can be considered fixed by PR #92.
If indeed there are some further bugs that can be addressed in the plugin, please open a new issue with more details.
from mypy-pycharm.
+1
Same issue:
Mypy found no problems in toolbar, but in terminal there are
Ubuntu,PyCharm 2021.3.2 (Professional Edition)
from mypy-pycharm.
I have the latest version of the plugin (0.14.0) and I do get a pop-up if there is a syntax error in my code. However, when I fix the syntax errors and run the plugin there are no mo pop-ups and the plugin tells me that mypy found no problems even if there are obvious typing errors in the code (e.g. var: str = 1)
from mypy-pycharm.
I know this is old, but I too was having the same issue. I am using v2023.1 of PyCharm Pro with the project running from WSL and I have v0.15.0 of the plugin installed. I found today that it is specifically looking for a config file in ini
format. I found this was odd since it looks for a few different files, but it may be hardcoded to look for that? Again I am not sure, but all I do know is that it worked once I created that mypy.ini and put it in the Path to config file
field.
from mypy-pycharm.
Related Issues (20)
- Mypy failed with code 2 HOT 1
- Add option to use mypy from project venv HOT 1
- Unable to use the plugin due to a file not found error
- Mypy failed with code 2 HOT 5
- (🐞) Doesn't detect mypy when using a poetry interpreter HOT 9
- Enabling plugin for CLion: de-prioritise presence of Python project SDK when checking `mypy` availability
- Icons not visible in new Jetbrains UI HOT 3
- "Mypy found no problems" after adding "[plugins]" part in mypy.ini HOT 5
- Support for mypy using WSL interpreter HOT 6
- MyPy crashes if file has changes not yet written to disc
- "Check project" 10× slower than running mypy CLI on all files instead HOT 6
- Harmless crash on macOS
- Scan failed due to an error
- mypy_path in the .ini file doesn't work as I expected when running checks on one file or module
- Check-* ignores exclude directive in mypy.ini
- Mypy tool window button icons missing in 2022.1 EAP HOT 3
- xxx is not a valid Python package name HOT 5
- Configure working directory/env vars when running mypy
- If mypy fails and only prints to stdout, not stderr, this leads to a cryptic event log message without details or stacktrace HOT 13
- Mypy executable is reported missing despite successful test HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mypy-pycharm.