mypy-pycharm icon indicating copy to clipboard operation
mypy-pycharm copied to clipboard

Argument list too long

Open gijzelaerr opened this issue 4 years ago • 3 comments

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.10.4
  • PyCharm/IDEA version: 2019.2
  • Mypy version: 0.720

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

gijzelaerr avatar Aug 28 '19 13:08 gijzelaerr

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

stale[bot] avatar Oct 27 '19 14:10 stale[bot]

Happens on 0.11.2

ohadraz avatar Jul 20 '20 14:07 ohadraz

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

RunOrVeith avatar Oct 28 '20 09:10 RunOrVeith