{"action":"closed","number":394,"pull_request":{"url":"https://api.github.com/repos/rebar/rebar3/pulls/394","id":34825689,"html_url":"https://github.com/rebar/rebar3/pull/394","diff_url":"https://github.com/rebar/rebar3/pull/394.diff","patch_url":"https://github.com/rebar/rebar3/pull/394.patch","issue_url":"https://api.github.com/repos/rebar/rebar3/issues/394","number":394,"state":"closed","locked":false,"title":"Manage syntax error in app.src files.","user":{"login":"umbec","id":702454,"avatar_url":"https://avatars.githubusercontent.com/u/702454?v=3","gravatar_id":"","url":"https://api.github.com/users/umbec","html_url":"https://github.com/umbec","followers_url":"https://api.github.com/users/umbec/followers","following_url":"https://api.github.com/users/umbec/following{/other_user}","gists_url":"https://api.github.com/users/umbec/gists{/gist_id}","starred_url":"https://api.github.com/users/umbec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umbec/subscriptions","organizations_url":"https://api.github.com/users/umbec/orgs","repos_url":"https://api.github.com/users/umbec/repos","events_url":"https://api.github.com/users/umbec/events{/privacy}","received_events_url":"https://api.github.com/users/umbec/received_events","type":"User","site_admin":false},"body":"- Solve \"Uncaught error\" failure in case of syntax error in app.src file.\r\n- Print helpful information on the location of the syntax error.\r\n\r\nThis was the output in case of an incorrect app.src file:\r\n\r\n```\r\nDEBUG=1 rebar3 compile\r\n===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace\r\n===> Uncaught error: {'EXIT',\r\n                             {function_clause,\r\n                              [{rebar_app_info,app_file_src,\r\n                                [error,\r\n                                 \"/home/umberto/gitlab/emmebm/src/emmebm.app.src\"],\r\n                                [{file,\r\n                                  \"/home/travis/build/rebar/rebar3/_build/default/lib/rebar/src/rebar_app_info.erl\"},\r\n                                 {line,140}]},\r\n                               {rebar_app_discover,find_app,2,\r\n                                [{file,\r\n                                  \"/home/travis/build/rebar/rebar3/_build/default/lib/rebar/src/rebar_app_discover.erl\"},\r\n                                 {line,162}]},\r\n                               {rebar_utils,filtermap,2,\r\n                                [{file,\r\n                                  \"/home/travis/build/rebar/rebar3/_build/default/lib/rebar/src/rebar_utils.erl\"},\r\n                                 {line,82}]},\r\n                               {rebar_app_discover,do,2,\r\n                                [{file,\r\n                                  \"/home/travis/build/rebar/rebar3/_build/default/lib/rebar/src/rebar_app_discover.erl\"},\r\n                                 {line,15}]},\r\n                               {rebar_prv_app_discovery,do,1,\r\n                                [{file,\r\n                                  \"/home/travis/build/rebar/rebar3/_build/default/lib/rebar/src/rebar_prv_app_discovery.erl\"},\r\n                                 {line,38}]},\r\n                               {rebar_core,do,2,\r\n                                [{file,\r\n                                  \"/home/travis/build/rebar/rebar3/_build/default/lib/rebar/src/rebar_core.erl\"},\r\n                                 {line,122}]},\r\n                               {rebar3,main,1,\r\n                                [{file,\r\n```\r\n\r\nThe output is now the following:\r\n\r\n```\r\n/opt/otp/erl_libs/rebar3/rebar3 compile\r\n===> Invalid app file /home/umberto/gitlab/emmebm/src/emmebm.app.src at line 16: \"syntax error before: ']'\"\r\n```","created_at":"2015-05-06T15:01:52Z","updated_at":"2015-05-06T19:17:35Z","closed_at":"2015-05-06T19:17:35Z","merged_at":"2015-05-06T19:17:35Z","merge_commit_sha":"8ea0123fc5863315e09cde4a115d2b2faa62d99f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rebar/rebar3/pulls/394/commits","review_comments_url":"https://api.github.com/repos/rebar/rebar3/pulls/394/comments","review_comment_url":"https://api.github.com/repos/rebar/rebar3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rebar/rebar3/issues/394/comments","statuses_url":"https://api.github.com/repos/rebar/rebar3/statuses/291e0de2fe6d637511f3739a1a29004870e09b2e","head":{"label":"umbec:master","ref":"master","sha":"291e0de2fe6d637511f3739a1a29004870e09b2e","user":{"login":"umbec","id":702454,"avatar_url":"https://avatars.githubusercontent.com/u/702454?v=3","gravatar_id":"","url":"https://api.github.com/users/umbec","html_url":"https://github.com/umbec","followers_url":"https://api.github.com/users/umbec/followers","following_url":"https://api.github.com/users/umbec/following{/other_user}","gists_url":"https://api.github.com/users/umbec/gists{/gist_id}","starred_url":"https://api.github.com/users/umbec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umbec/subscriptions","organizations_url":"https://api.github.com/users/umbec/orgs","repos_url":"https://api.github.com/users/umbec/repos","events_url":"https://api.github.com/users/umbec/events{/privacy}","received_events_url":"https://api.github.com/users/umbec/received_events","type":"User","site_admin":false},"repo":{"id":35162466,"name":"rebar3","full_name":"umbec/rebar3","owner":{"login":"umbec","id":702454,"avatar_url":"https://avatars.githubusercontent.com/u/702454?v=3","gravatar_id":"","url":"https://api.github.com/users/umbec","html_url":"https://github.com/umbec","followers_url":"https://api.github.com/users/umbec/followers","following_url":"https://api.github.com/users/umbec/following{/other_user}","gists_url":"https://api.github.com/users/umbec/gists{/gist_id}","starred_url":"https://api.github.com/users/umbec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umbec/subscriptions","organizations_url":"https://api.github.com/users/umbec/orgs","repos_url":"https://api.github.com/users/umbec/repos","events_url":"https://api.github.com/users/umbec/events{/privacy}","received_events_url":"https://api.github.com/users/umbec/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/umbec/rebar3","description":"Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.","fork":true,"url":"https://api.github.com/repos/umbec/rebar3","forks_url":"https://api.github.com/repos/umbec/rebar3/forks","keys_url":"https://api.github.com/repos/umbec/rebar3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/umbec/rebar3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/umbec/rebar3/teams","hooks_url":"https://api.github.com/repos/umbec/rebar3/hooks","issue_events_url":"https://api.github.com/repos/umbec/rebar3/issues/events{/number}","events_url":"https://api.github.com/repos/umbec/rebar3/events","assignees_url":"https://api.github.com/repos/umbec/rebar3/assignees{/user}","branches_url":"https://api.github.com/repos/umbec/rebar3/branches{/branch}","tags_url":"https://api.github.com/repos/umbec/rebar3/tags","blobs_url":"https://api.github.com/repos/umbec/rebar3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/umbec/rebar3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/umbec/rebar3/git/refs{/sha}","trees_url":"https://api.github.com/repos/umbec/rebar3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/umbec/rebar3/statuses/{sha}","languages_url":"https://api.github.com/repos/umbec/rebar3/languages","stargazers_url":"https://api.github.com/repos/umbec/rebar3/stargazers","contributors_url":"https://api.github.com/repos/umbec/rebar3/contributors","subscribers_url":"https://api.github.com/repos/umbec/rebar3/subscribers","subscription_url":"https://api.github.com/repos/umbec/rebar3/subscription","commits_url":"https://api.github.com/repos/umbec/rebar3/commits{/sha}","git_commits_url":"https://api.github.com/repos/umbec/rebar3/git/commits{/sha}","comments_url":"https://api.github.com/repos/umbec/rebar3/comments{/number}","issue_comment_url":"https://api.github.com/repos/umbec/rebar3/issues/comments{/number}","contents_url":"https://api.github.com/repos/umbec/rebar3/contents/{+path}","compare_url":"https://api.github.com/repos/umbec/rebar3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/umbec/rebar3/merges","archive_url":"https://api.github.com/repos/umbec/rebar3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/umbec/rebar3/downloads","issues_url":"https://api.github.com/repos/umbec/rebar3/issues{/number}","pulls_url":"https://api.github.com/repos/umbec/rebar3/pulls{/number}","milestones_url":"https://api.github.com/repos/umbec/rebar3/milestones{/number}","notifications_url":"https://api.github.com/repos/umbec/rebar3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/umbec/rebar3/labels{/name}","releases_url":"https://api.github.com/repos/umbec/rebar3/releases{/id}","created_at":"2015-05-06T14:10:49Z","updated_at":"2015-05-06T14:50:26Z","pushed_at":"2015-05-06T14:50:26Z","git_url":"git://github.com/umbec/rebar3.git","ssh_url":"git@github.com:umbec/rebar3.git","clone_url":"https://github.com/umbec/rebar3.git","svn_url":"https://github.com/umbec/rebar3","homepage":"  http://www.rebar3.org","size":9917,"stargazers_count":0,"watchers_count":0,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rebar:master","ref":"master","sha":"5cf005d3a63608ff4a9a7151d8461f360c86cfbb","user":{"login":"rebar","id":2651508,"avatar_url":"https://avatars.githubusercontent.com/u/2651508?v=3","gravatar_id":"","url":"https://api.github.com/users/rebar","html_url":"https://github.com/rebar","followers_url":"https://api.github.com/users/rebar/followers","following_url":"https://api.github.com/users/rebar/following{/other_user}","gists_url":"https://api.github.com/users/rebar/gists{/gist_id}","starred_url":"https://api.github.com/users/rebar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebar/subscriptions","organizations_url":"https://api.github.com/users/rebar/orgs","repos_url":"https://api.github.com/users/rebar/repos","events_url":"https://api.github.com/users/rebar/events{/privacy}","received_events_url":"https://api.github.com/users/rebar/received_events","type":"Organization","site_admin":false},"repo":{"id":26610130,"name":"rebar3","full_name":"rebar/rebar3","owner":{"login":"rebar","id":2651508,"avatar_url":"https://avatars.githubusercontent.com/u/2651508?v=3","gravatar_id":"","url":"https://api.github.com/users/rebar","html_url":"https://github.com/rebar","followers_url":"https://api.github.com/users/rebar/followers","following_url":"https://api.github.com/users/rebar/following{/other_user}","gists_url":"https://api.github.com/users/rebar/gists{/gist_id}","starred_url":"https://api.github.com/users/rebar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebar/subscriptions","organizations_url":"https://api.github.com/users/rebar/orgs","repos_url":"https://api.github.com/users/rebar/repos","events_url":"https://api.github.com/users/rebar/events{/privacy}","received_events_url":"https://api.github.com/users/rebar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rebar/rebar3","description":"Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.","fork":false,"url":"https://api.github.com/repos/rebar/rebar3","forks_url":"https://api.github.com/repos/rebar/rebar3/forks","keys_url":"https://api.github.com/repos/rebar/rebar3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rebar/rebar3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rebar/rebar3/teams","hooks_url":"https://api.github.com/repos/rebar/rebar3/hooks","issue_events_url":"https://api.github.com/repos/rebar/rebar3/issues/events{/number}","events_url":"https://api.github.com/repos/rebar/rebar3/events","assignees_url":"https://api.github.com/repos/rebar/rebar3/assignees{/user}","branches_url":"https://api.github.com/repos/rebar/rebar3/branches{/branch}","tags_url":"https://api.github.com/repos/rebar/rebar3/tags","blobs_url":"https://api.github.com/repos/rebar/rebar3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rebar/rebar3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rebar/rebar3/git/refs{/sha}","trees_url":"https://api.github.com/repos/rebar/rebar3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rebar/rebar3/statuses/{sha}","languages_url":"https://api.github.com/repos/rebar/rebar3/languages","stargazers_url":"https://api.github.com/repos/rebar/rebar3/stargazers","contributors_url":"https://api.github.com/repos/rebar/rebar3/contributors","subscribers_url":"https://api.github.com/repos/rebar/rebar3/subscribers","subscription_url":"https://api.github.com/repos/rebar/rebar3/subscription","commits_url":"https://api.github.com/repos/rebar/rebar3/commits{/sha}","git_commits_url":"https://api.github.com/repos/rebar/rebar3/git/commits{/sha}","comments_url":"https://api.github.com/repos/rebar/rebar3/comments{/number}","issue_comment_url":"https://api.github.com/repos/rebar/rebar3/issues/comments{/number}","contents_url":"https://api.github.com/repos/rebar/rebar3/contents/{+path}","compare_url":"https://api.github.com/repos/rebar/rebar3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rebar/rebar3/merges","archive_url":"https://api.github.com/repos/rebar/rebar3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rebar/rebar3/downloads","issues_url":"https://api.github.com/repos/rebar/rebar3/issues{/number}","pulls_url":"https://api.github.com/repos/rebar/rebar3/pulls{/number}","milestones_url":"https://api.github.com/repos/rebar/rebar3/milestones{/number}","notifications_url":"https://api.github.com/repos/rebar/rebar3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rebar/rebar3/labels{/name}","releases_url":"https://api.github.com/repos/rebar/rebar3/releases{/id}","created_at":"2014-11-13T22:02:03Z","updated_at":"2015-05-06T19:17:35Z","pushed_at":"2015-05-06T19:17:35Z","git_url":"git://github.com/rebar/rebar3.git","ssh_url":"git@github.com:rebar/rebar3.git","clone_url":"https://github.com/rebar/rebar3.git","svn_url":"https://github.com/rebar/rebar3","homepage":"  http://www.rebar3.org","size":9917,"stargazers_count":126,"watchers_count":126,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":14,"forks":33,"open_issues":14,"watchers":126,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rebar/rebar3/pulls/394"},"html":{"href":"https://github.com/rebar/rebar3/pull/394"},"issue":{"href":"https://api.github.com/repos/rebar/rebar3/issues/394"},"comments":{"href":"https://api.github.com/repos/rebar/rebar3/issues/394/comments"},"review_comments":{"href":"https://api.github.com/repos/rebar/rebar3/pulls/394/comments"},"review_comment":{"href":"https://api.github.com/repos/rebar/rebar3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rebar/rebar3/pulls/394/commits"},"statuses":{"href":"https://api.github.com/repos/rebar/rebar3/statuses/291e0de2fe6d637511f3739a1a29004870e09b2e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ferd","id":111141,"avatar_url":"https://avatars.githubusercontent.com/u/111141?v=3","gravatar_id":"","url":"https://api.github.com/users/ferd","html_url":"https://github.com/ferd","followers_url":"https://api.github.com/users/ferd/followers","following_url":"https://api.github.com/users/ferd/following{/other_user}","gists_url":"https://api.github.com/users/ferd/gists{/gist_id}","starred_url":"https://api.github.com/users/ferd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferd/subscriptions","organizations_url":"https://api.github.com/users/ferd/orgs","repos_url":"https://api.github.com/users/ferd/repos","events_url":"https://api.github.com/users/ferd/events{/privacy}","received_events_url":"https://api.github.com/users/ferd/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":1,"additions":17,"deletions":4,"changed_files":2}}