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
194 stars 31 forks source link

Scan failed due to an error #117

Open MarcelWilson opened 9 months ago

MarcelWilson commented 9 months ago

Step 1: Are you in the right place?

Step 2: Describe your environment

Step 3: Describe the problem:

Steps to reproduce:

  1. Run check project using mypy plugin
  2. Witness error

Additional notes:

Observed Results:

Expected Results:

Relevant Code:

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:263)   
at com.leinardi.pycharm.mypy.checker.ScanFiles.scan(ScanFiles.java:108)   
at com.leinardi.pycharm.mypy.checker.ScanFiles.checkFiles(ScanFiles.java:99)   
at com.leinardi.pycharm.mypy.checker.ScanFiles.call(ScanFiles.java:73)   
at com.leinardi.pycharm.mypy.checker.ScanFiles.call(ScanFiles.java:45)   
at com.intellij.openapi.application.impl.ApplicationImpl$3.call(ApplicationImpl.java:303)   
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)   
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)   
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)   
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)   
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)   
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)   
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)   
at java.base/java.lang.Thread.run(Thread.java:833)