{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/infer/issues/541","repository_url":"https://api.github.com/repos/facebook/infer","labels_url":"https://api.github.com/repos/facebook/infer/issues/541/labels{/name}","comments_url":"https://api.github.com/repos/facebook/infer/issues/541/comments","events_url":"https://api.github.com/repos/facebook/infer/issues/541/events","html_url":"https://github.com/facebook/infer/issues/541","id":197310421,"number":541,"title":"Error : keep occurring R.java not found","user":{"login":"omuomugin","id":16621708,"avatar_url":"https://avatars.githubusercontent.com/u/16621708?v=3","gravatar_id":"","url":"https://api.github.com/users/omuomugin","html_url":"https://github.com/omuomugin","followers_url":"https://api.github.com/users/omuomugin/followers","following_url":"https://api.github.com/users/omuomugin/following{/other_user}","gists_url":"https://api.github.com/users/omuomugin/gists{/gist_id}","starred_url":"https://api.github.com/users/omuomugin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omuomugin/subscriptions","organizations_url":"https://api.github.com/users/omuomugin/orgs","repos_url":"https://api.github.com/users/omuomugin/repos","events_url":"https://api.github.com/users/omuomugin/events{/privacy}","received_events_url":"https://api.github.com/users/omuomugin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-23T04:09:18Z","updated_at":"2016-12-23T09:47:15Z","closed_at":null,"body":"Hello, Infer team\r\n\r\nI'm doing research about analysis tools for Android apps and one of it is this Infer. \r\nThe problem that I have right now is that I can run ```./gradlew build clean```, ```./gradlew clean``` succesfully but when I try to run ```infer -- ./gradlew build clean``` it tells me that infer cannot find R.java.\r\n\r\nI'm using v0.9.2, and for example applying Infer on [iosched](https://github.com/google/iosched) `s version 9f38e2d9e6ca81341fecf82d881cf629effb4be2 gives this error.(Also on some other projects too) \r\nIn Addition, my envorionment is MacOS Sierra\r\n\r\n full error log is below\r\n\r\nIs this error from Infer? or occurs from other reasons?  \r\nThank you,\r\n\r\n```\r\njavac: file not found: <MYPATH>/iosched/android/build/generated/source/r/mapEditor/debug/android/support/design/R.java\r\nUsage: javac <options> <source files>\r\nuse -help for a list of possible options\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/../Cellar/infer/0.9.2/bin/../lib/infer/infer/lib/python/infer.py\", line 228, in <module>\r\n    main()\r\n  File \"/usr/local/bin/../Cellar/infer/0.9.2/bin/../lib/infer/infer/lib/python/infer.py\", line 190, in main\r\n    capture_exitcode = imported_module.gen_instance(args, cmd).capture()\r\n  File \"/usr/local/Cellar/infer/0.9.2/lib/infer/infer/lib/python/inferlib/capture/gradle.py\", line 87, in capture\r\n    return util.run_compilation_commands(cmds, clean_cmd)\r\n  File \"/usr/local/Cellar/infer/0.9.2/lib/infer/infer/lib/python/inferlib/capture/util.py\", line 40, in run_compilation_commands\r\n    if cmd.start() != os.EX_OK:\r\n  File \"/usr/local/Cellar/infer/0.9.2/lib/infer/infer/lib/python/inferlib/jwlib.py\", line 264, in start\r\n    self._compile()\r\n  File \"/usr/local/Cellar/infer/0.9.2/lib/infer/infer/lib/python/inferlib/jwlib.py\", line 338, in _compile\r\n    return self.javac.run()\r\n  File \"/usr/local/Cellar/infer/0.9.2/lib/infer/infer/lib/python/inferlib/jwlib.py\", line 233, in run\r\n    subprocess.check_call(failing_cmd)\r\n  File \"<MYPATH>/anaconda/lib/python2.7/subprocess.py\", line 540, in check_call\r\n    raise CalledProcessError(retcode, cmd)\r\nsubprocess.CalledProcessError: Command '[u'javac', u'-J-Duser.language=en', u'@<MYPATH>/iosched/infer-out/filelists/gradle_SAo53L.txt', u'@/var/folders/n3/s93xtgws2114_yqxdy6x8xch0000gn/T/javac_args_rQQ5S4']' returned non-zero exit status 2\r\nFailed to execute: /usr/local/bin/../Cellar/infer/0.9.2/bin/../lib/infer/infer/lib/python/infer.py --multicore 4 --out <MYPATH>/iosched/infer-out --project_root /Users/shunsuke/Desktop/college/research/Apps/iosched -- ./gradlew build clean\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/infer/issues/comments/268964802","html_url":"https://github.com/facebook/infer/issues/541#issuecomment-268964802","issue_url":"https://api.github.com/repos/facebook/infer/issues/541","id":268964802,"user":{"login":"omuomugin","id":16621708,"avatar_url":"https://avatars.githubusercontent.com/u/16621708?v=3","gravatar_id":"","url":"https://api.github.com/users/omuomugin","html_url":"https://github.com/omuomugin","followers_url":"https://api.github.com/users/omuomugin/followers","following_url":"https://api.github.com/users/omuomugin/following{/other_user}","gists_url":"https://api.github.com/users/omuomugin/gists{/gist_id}","starred_url":"https://api.github.com/users/omuomugin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omuomugin/subscriptions","organizations_url":"https://api.github.com/users/omuomugin/orgs","repos_url":"https://api.github.com/users/omuomugin/repos","events_url":"https://api.github.com/users/omuomugin/events{/privacy}","received_events_url":"https://api.github.com/users/omuomugin/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T09:47:15Z","updated_at":"2016-12-23T09:47:15Z","body":"For additional information, even I update infer to v0.9.4, this still occurs.\r\n\r\njust for adding detail\r\nThank you,"}}
{"actor":{"display_login":"omuomugin"}}