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

Adding all files to Cmd line is no longer necessary -> The filename or extension is too long #71

Open
FreCap opened this issue Jan 28, 2021 · 0 comments

Comments

@FreCap
Copy link

FreCap commented Jan 28, 2021

// Necessary because of this: https://github.com/python/mypy/issues/4008#issuecomment-417862464

As python/mypy#4008 (comment), now mypy should accepts also a directory and search files recursively.

Would it possible to to not have the the recursive scanning of files?

Concatenating all of my file creates an argument length of over 100KB and makes mypy-pycharm crash with


2021-01-27 16:37:44,692 [1035917909]   WARN - pycharm.mypy.checker.ScanFiles - An error occurred while scanning a file. 
com.leinardi.pycharm.mypy.exception.MypyToolException: Error creating Mypy process
	at com.leinardi.pycharm.mypy.mpapi.MypyRunner.runMypy(MypyRunner.java:318)
	at com.leinardi.pycharm.mypy.mpapi.MypyRunner.scan(MypyRunner.java:265)
	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$1.call(ApplicationImpl.java:270)
	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:834)
Caused by: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program ""*****Scripts\dmypy.exe" (in directory ""*****service"): CreateProcess error=206, The filename or extension is too long
	at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:380)
	at com.leinardi.pycharm.mypy.mpapi.MypyRunner.runMypy(MypyRunner.java:305)
	... 14 more
Caused by: java.io.IOException: Cannot run program "*****Scripts\dmypy.exe" (in directory ""*****\service"): CreateProcess error=206, The filename or extension is too long
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
	at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:453)
	at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:376)
	... 15 more
Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
	at java.base/java.lang.ProcessImpl.create(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:478)
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:154)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
	... 18 more
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