mypy-pycharm icon indicating copy to clipboard operation
mypy-pycharm copied to clipboard

Mypy found no issues.

Open michaldev opened this issue 4 years ago • 16 comments

Hi. I'll try configure plugin for PyCharm. Always I get this notification: "Mypy found no issues". It doesn't matter if I choose to check for a file or project.

When I type in terminal: mypy . I correctly got errors.

This is my config: https://pastebin.com/HrkTPL5Z

Config in PyCham: Path to mypy executable: /usr/local/bin/mypy Path to config file: /Users/michal/Projekty/project_name/setup.cfg

The test gives the correct result.

OS: macOS Catalina PyCharm 2019.3.4

michaldev avatar Apr 11 '20 03:04 michaldev

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

vincentwyshan avatar Apr 20 '20 10:04 vincentwyshan

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

numetrix avatar Apr 27 '20 20:04 numetrix

same issue here.

  • ubuntu 2020.04
  • pycharm-professional 2020.1
  • using venv

bjuergens avatar May 29 '20 07:05 bjuergens

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)

tobiornottobi avatar Jun 28 '20 09:06 tobiornottobi

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.

tobiornottobi avatar Jun 28 '20 09:06 tobiornottobi

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

scorpeti avatar Oct 09 '20 14:10 scorpeti

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:

  1. I intentionally introduced an error, pressed "check current file" button -> "Mypy found no problems"
  2. If I press "check current file" after few minutes, an error will show up.
  3. I commented error, pressed "check current file" button -> "Mypy found no problems" which is OK
  4. 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
  5. 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.

ghuname avatar Feb 11 '21 19:02 ghuname

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.

mfsjr avatar Mar 29 '21 15:03 mfsjr

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.

lebrunthibault avatar Apr 23 '21 10:04 lebrunthibault

Can I sponsor this fix? I'll use vs code until then :/

iot-resister avatar Oct 17 '21 20:10 iot-resister

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.

liamhawkins avatar Jan 28 '22 20:01 liamhawkins

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.

intgr avatar Feb 21 '22 11:02 intgr

+1 Same issue: Mypy found no problems in toolbar, but in terminal there are Ubuntu,PyCharm 2021.3.2 (Professional Edition)

chudomozg avatar Mar 01 '22 01:03 chudomozg

@chudomozg Update to latest plugin version 0.14.0 and try again. It should pop up an error message explaining what went wrong.

intgr avatar Mar 01 '22 07:03 intgr

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)

IljaManakov avatar May 25 '22 12:05 IljaManakov

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.
image
image

millsks avatar Jul 05 '23 18:07 millsks