{"action":"created","issue":{"url":"https://api.github.com/repos/erlang/rebar3/issues/1218","repository_url":"https://api.github.com/repos/erlang/rebar3","labels_url":"https://api.github.com/repos/erlang/rebar3/issues/1218/labels{/name}","comments_url":"https://api.github.com/repos/erlang/rebar3/issues/1218/comments","events_url":"https://api.github.com/repos/erlang/rebar3/issues/1218/events","html_url":"https://github.com/erlang/rebar3/issues/1218","id":158123141,"number":1218,"title":"Cover compilation for eunit fails due to erlydtl template","user":{"login":"bwegh","id":1056167,"avatar_url":"https://avatars.githubusercontent.com/u/1056167?v=3","gravatar_id":"","url":"https://api.github.com/users/bwegh","html_url":"https://github.com/bwegh","followers_url":"https://api.github.com/users/bwegh/followers","following_url":"https://api.github.com/users/bwegh/following{/other_user}","gists_url":"https://api.github.com/users/bwegh/gists{/gist_id}","starred_url":"https://api.github.com/users/bwegh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwegh/subscriptions","organizations_url":"https://api.github.com/users/bwegh/orgs","repos_url":"https://api.github.com/users/bwegh/repos","events_url":"https://api.github.com/users/bwegh/events{/privacy}","received_events_url":"https://api.github.com/users/bwegh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-02T11:55:34Z","updated_at":"2016-06-02T12:26:41Z","closed_at":null,"body":"Hello,\r\n\r\nwhen running `rebar3 do clean,eunit` I get the following error:\r\n```\r\n=ERROR REPORT==== 2-Jun-2016::12:30:05 ===\r\nError in process <0.653.0> with exit value:\r\n{function_clause,[{cover,find_main_filename,\r\n                         [[]],\r\n                         [{file,\"cover.erl\"},{line,1612}]},\r\n                  {cover,transform,2,[{file,\"cover.erl\"},{line,1605}]},\r\n                  {cover,do_compile_beam1,3,[{file,\"cover.erl\"},{line,1540}]},\r\n                  {cover,do_compile_beam,3,[{file,\"cover.erl\"},{line,1472}]},\r\n                  {lists,map,2,[{file,\"lists.erl\"},{line,1238}]},\r\n                  {lists,map,2,[{file,\"lists.erl\"},{line,1238}]},\r\n                  {cover,'-pmap_spawn/4-fun-0-',2,\r\n                         [{file,\"cover.erl\"},{line,2721}]}]}\r\n```\r\n\r\nthe reason is a missing file attribute in the beam generated from the template.\r\n\r\nWhen setting cover_enabled to false, the test passes without any issues.\r\n\r\n-----------\r\nrebar 3.1.1\r\notp 18.2.1\r\n```\r\n{provider_hooks, [\r\n                 {pre, [{compile, {erlydtl, compile}}]}\r\n                 ]}.\r\n{erlydtl_opts, [{doc_root, \"templates\"}]}.\r\n{plugins, [\r\n           {rebar3_lint, {git, \"https://github.com/bwegh/rebar3_lint.git\", {branch, \"master\"}}},\r\n           {rebar3_erlydtl_plugin, \".*\", {git, \"https://github.com/tsloughter/rebar3_erlydtl_plugin.git\", {branch, \"master\"}}},\r\n           rebar3_auto,\r\n           rebar3_run\r\n          ]}.\r\n```"},"comment":{"url":"https://api.github.com/repos/erlang/rebar3/issues/comments/223276335","html_url":"https://github.com/erlang/rebar3/issues/1218#issuecomment-223276335","issue_url":"https://api.github.com/repos/erlang/rebar3/issues/1218","id":223276335,"user":{"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},"created_at":"2016-06-02T12:26:40Z","updated_at":"2016-06-02T12:26:40Z","body":"This may be more of an ErlyDTL bug than a rebar3 bug?"}}
{"actor":{"display_login":"ferd"}}