Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan failed due to an error #117

Open
MarcelWilson opened this issue Dec 14, 2023 · 0 comments
Open

Scan failed due to an error #117

MarcelWilson opened this issue Dec 14, 2023 · 0 comments

Comments

@MarcelWilson
Copy link

Step 1: Are you in the right place?

  • [ x] I have verified there are no duplicate active or recent bugs, questions, or requests
  • [x ] I have verified that I am using the latest version of the plugin.

Step 2: Describe your environment

  • Plugin version: 0.16.2
  • PyCharm/IDEA version: 2023.2.3 (Professional Edition) Build #PY-232.10072.31, built on October 12, 2023
  • Runtime version: 17.0.8.1+7-b1000.32 aarch64
  • Mypy version: 1.7.1
  • python 3.12.0
  • OS: Mac 14.1.1 (Sonoma)

Step 3: Describe the problem:

Steps to reproduce:

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

Additional notes:

  • Running mypy . on commandline at project root works.
  • Project has mypy.ini.
  • Running plugin "current file" works.
  • Running plugin "check module" works.
  • I tried clearing the .mypy_cache to no affect.

Observed Results:

  • Mypy Plugin: Mypy exited abnormally. : see log below.

Expected Results:

  • Runs against entire project (according to the mypy.ini configuration)

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant