leinardi / mypy-pycharm

A plugin providing both real-time and on-demand scanning of Python files with Mypy from within PyCharm/IDEA.
Apache License 2.0
188 stars 30 forks source link

Mypy failed with code 2 #100

Closed Thoufak closed 2 years ago

Thoufak commented 2 years ago

Step 1: Are you in the right place?

Step 2: Describe your environment

Step 3: Describe the problem:

Steps to reproduce:

  1. Press "Check Project" in the mypy plugin panel.
  2. It says "A scan is in progress". Wait for a few seconds.
  3. It says "The scan failed due to an error - please see the event log for more information".
The scan failed due to an exception: Mypy failed with code 2 
com.leinardi.pycharm.mypy.exception.MypyToolException: Mypy failed with code 2   at 
com.leinardi.pycharm.mypy.mpapi.MypyRunner.runMypy(MypyRunner.java:324)   at 
com.leinardi.pycharm.mypy.mpapi.MypyRunner.scan(MypyRunner.java:266)   at 
com.leinardi.pycharm.mypy.checker.ScanFiles.scan(ScanFiles.java:109)   at 
com.leinardi.pycharm.mypy.checker.ScanFiles.checkFiles(ScanFiles.java:100)   at 
com.leinardi.pycharm.mypy.checker.ScanFiles.call(ScanFiles.java:74)   at 
com.leinardi.pycharm.mypy.checker.ScanFiles.call(ScanFiles.java:46)   at 
com.intellij.openapi.application.impl.ApplicationImpl$2.call(ApplicationImpl.java:296)   at 
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)   at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)   at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)   at 
java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)   at 
java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)   at 
java.base/java.security.AccessController.doPrivileged(Native Method)   at 
java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)   at 
java.base/java.lang.Thread.run(Thread.java:829)
Thoufak commented 2 years ago

Probably a duplicate of #97