-
Notifications
You must be signed in to change notification settings - Fork 2k
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
OSError: [Errno 7] Argument list too long #228
Comments
Hello @tianyutingxy, Thanks. |
Thanks @tianyutingxy for reporting this. It seems to me that the Gradle integration is creating javac command lines with a number of file exceeding the bash limit. The current Gradle integration is mostly a proof of concept to show that we can analyze Gradle projects with Infer but is very fragile. We are working on a much more robust way to integrate Infer with Java built systems. I will update this issue once it is ready. |
The gradle integration reads the list of Java files to compile from a file, not from the command line, precisely to avoid this error (#131) . Without more information, it's hard to know what's wrong here, so I'm closing this task. Feel free to re-open with more info. |
@jvillard @jeremydubreil @martinoluca I'm having this same issue running infer with ant, from a brew install in OSX. Here is the stack trace and the error:
|
Traceback (most recent call last):
File "/Users/tianyutingxy/Android/github/infer/infer/bin/infer", line 168, in
main()
File "/Users/tianyutingxy/Android/github/infer/infer/bin/infer", line 143, in main
capture_exitcode = imported_module.gen_instance(args, cmd).capture()
File "/Users/tianyutingxy/Android/github/infer/infer/bin/../lib/capture/gradle.py", line 47, in capture
return util.run_commands(cmds)
File "/Users/tianyutingxy/Android/github/infer/infer/bin/../lib/capture/util.py", line 36, in run_commands
if not cmd.start():
File "/Users/tianyutingxy/Android/github/infer/infer/bin/inferlib.py", line 650, in start
if self.capture() == os.EX_OK:
File "/Users/tianyutingxy/Android/github/infer/infer/bin/inferlib.py", line 417, in capture
javac_status = self.compile()
File "/Users/tianyutingxy/Android/github/infer/infer/bin/inferlib.py", line 414, in compile
return self.javac.run()
File "/Users/tianyutingxy/Android/github/infer/infer/bin/jwlib.py", line 45, in run
subprocess.check_call(javac_cmd, stderr=file_out)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 535, in check_call
retcode = call(_popenargs, *_kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
return Popen(_popenargs, *_kwargs).wait()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 7] Argument list too long
still on Infer version git-712d27b5445da91cffad410ca71d31135f351259
The text was updated successfully, but these errors were encountered: