I got this error. The traceback is:
Traceback (most recent call last):
File "/Users/tuanchauict/Data/Software/Dev/infer-osx-v0.1.0/infer/infer/bin/infer", line 142, in <module>
main()
File "/Users/tuanchauict/Data/Software/Dev/infer-osx-v0.1.0/infer/infer/bin/infer", line 119, in main
capture_exitcode = imported_module.gen_instance(args, cmd).capture()
File "/Users/tuanchauict/Data/Software/Dev/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/gradle.py", line 42, in capture
return util.run_commands(cmds)
File "/Users/tuanchauict/Data/Software/Dev/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/util.py", line 34, in run_commands
if not cmd.start():
File "/Users/tuanchauict/Data/Software/Dev/infer-osx-v0.1.0/infer/infer/bin/inferlib.py", line 632, in start
if self.capture() == os.EX_OK:
File "/Users/tuanchauict/Data/Software/Dev/infer-osx-v0.1.0/infer/infer/bin/inferlib.py", line 400, in capture
return self.run_infer_frontend()
File "/Users/tuanchauict/Data/Software/Dev/infer-osx-v0.1.0/infer/infer/bin/inferlib.py", line 391, in run_infer_frontend
self.args.analyzer
File "/Users/tuanchauict/Data/Software/Dev/infer-osx-v0.1.0/infer/infer/bin/inferlib.py", line 318, in run_command
raise e
subprocess.CalledProcessError: Command '[u'/Users/tuanchauict/Data/Software/Dev/infer-osx-v0.1.0/infer/infer/bin/InferJava', u'-results_dir', u'/Users/tuanchauict/workspace/Android/Sudoku/infer-out', u'-verbose_out', '/tmp/javac_S_WOLP.out', u'-models', u'/Users/tuanchauict/Data/Software/Dev/infer-osx-v0.1.0/infer/infer/bin/../lib/java/models.jar', u'-no-static_final']' returned non-zero exit status 2
Mac OS 10.10
Java 7 (for Android project)
This issue is similar to what was reported earlier - Cannot analyze maven project?
I have a single module maven project with following structure
Project
- src
- test
- conf
- Readme.md
- pom.xml
I ran "infer -- mvn build". It seems like a no-op. There is no ./infer-out folder as described on workflow. No other output whatsoever.
I have tried this on both java 6 and java 8
$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
$ javac -version
javac 1.6.0_65
$ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
$ javac -version
javac 1.8.0_25