Giter Site home page Giter Site logo

Mypy found no issues. about mypy-pycharm HOT 16 OPEN

leinardi avatar leinardi commented on June 9, 2024 17
Mypy found no issues.

from mypy-pycharm.

Comments (16)

numetrix avatar numetrix commented on June 9, 2024 5

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.

tobiornottobi avatar tobiornottobi commented on June 9, 2024 3

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.

iot-resister avatar iot-resister commented on June 9, 2024 1

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

from mypy-pycharm.

intgr avatar intgr commented on June 9, 2024 1

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

vincentwyshan avatar vincentwyshan commented on June 9, 2024

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.

bjuergens avatar bjuergens commented on June 9, 2024

same issue here.

  • ubuntu 2020.04
  • pycharm-professional 2020.1
  • using venv

from mypy-pycharm.

tobiornottobi avatar tobiornottobi commented on June 9, 2024

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.

scorpeti avatar scorpeti commented on June 9, 2024

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.

ghuname avatar ghuname commented on June 9, 2024

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.

from mypy-pycharm.

mfsjr avatar mfsjr commented on June 9, 2024

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.

lebrunthibault avatar lebrunthibault commented on June 9, 2024

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.

liamhawkins avatar liamhawkins commented on June 9, 2024

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.

intgr avatar intgr commented on June 9, 2024

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.

chudomozg avatar chudomozg commented on June 9, 2024

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

from mypy-pycharm.

IljaManakov avatar IljaManakov commented on June 9, 2024

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.

millsks avatar millsks commented on June 9, 2024

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

from mypy-pycharm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.