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

Argument list too long #39

Open gijzelaerr opened 4 years ago

gijzelaerr commented 4 years ago

Step 1: Are you in the right place?

Step 2: Describe your environment

Step 3: Describe the problem:

Steps to reproduce:

  1. Run mypy check project when our private source code proect is open

Observed Results:

Plugins prints: The scan failed due to an error - please see the event log for more information

Expected Results:

Get a list of mypy errors.

Relevant Code:

Sorry I cant share the project/code.

15:24   Unexpected Exception Caught
            The scan failed due to an exception: Error creating Mypy process
            Root cause:
            error=7, Argument list too long
            java.io.IOException: error=7, Argument list too long
            at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
            at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:340)
            at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271)
            at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
            at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
            at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:443)
            at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:408)
            at com.leinardi.pycharm.mypy.mpapi.MypyRunner.runMypy(MypyRunner.java:304)
            at com.leinardi.pycharm.mypy.mpapi.MypyRunner.scan(MypyRunner.java... (show balloon)

Schermafbeelding 2019-08-28 om 15 31 16

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had activity in the last 60 days.

ohadraz commented 4 years ago

Happens on 0.11.2

RunOrVeith commented 3 years ago

Same for me, I renamed the project root folder and then it broke. Even if I deleted the .idea folder it does not work again.

Edit: Got it to work by closing all open folders that were opened via "attach" until I was at a blank screen again, then go into all these folders, delete the .idea folder, then reopen them all (requires configuring your interpreter again etc.)