{"action":"created","issue":{"url":"https://api.github.com/repos/ferd/rebar3_proper/issues/8","repository_url":"https://api.github.com/repos/ferd/rebar3_proper","labels_url":"https://api.github.com/repos/ferd/rebar3_proper/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ferd/rebar3_proper/issues/8/comments","events_url":"https://api.github.com/repos/ferd/rebar3_proper/issues/8/events","html_url":"https://github.com/ferd/rebar3_proper/issues/8","id":168700093,"number":8,"title":"Application's include directory is missing from include path when building property tests","user":{"login":"tokenrove","id":71495,"avatar_url":"https://avatars.githubusercontent.com/u/71495?v=3","gravatar_id":"","url":"https://api.github.com/users/tokenrove","html_url":"https://github.com/tokenrove","followers_url":"https://api.github.com/users/tokenrove/followers","following_url":"https://api.github.com/users/tokenrove/following{/other_user}","gists_url":"https://api.github.com/users/tokenrove/gists{/gist_id}","starred_url":"https://api.github.com/users/tokenrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokenrove/subscriptions","organizations_url":"https://api.github.com/users/tokenrove/orgs","repos_url":"https://api.github.com/users/tokenrove/repos","events_url":"https://api.github.com/users/tokenrove/events{/privacy}","received_events_url":"https://api.github.com/users/tokenrove/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-08-01T17:35:46Z","updated_at":"2016-09-29T17:24:06Z","closed_at":null,"body":"When I run `rebar3 proper`, the compilation of the `test/prop_*.erl` files fails as they reference include files in my application's `include/` directory.  Since eunit successfully compiles files with the same include references, this seems like a bug.\r\n\r\nSorry I haven't had time to submit a patch with this.\r\n\r\nHopefully minimal reproduction:\r\n```\r\n% rebar3 new app rebar3_proper_include_issue && cd rebar3_proper_include_issue\r\n% cat > rebar.config <<REBAR_CONFIG\r\n{deps, [{proper, \"1.1.1-beta\"}]}.\r\n{plugins, [rebar3_proper]}.\r\nREBAR_CONFIG\r\n% mkdir test && cat > test/prop_test.erl <<PROP_TEST\r\n-module(prop_test).\r\n-include_lib(\"proper/include/proper.hrl\").\r\n-compile([export_all]).\r\n-include(\"foo.hrl\").\r\nPROP_TEST\r\n% mkdir include && touch include/foo.hrl\r\n```\r\n\r\nNote that `rebar3 eunit` compiles this empty test, while `rebar3 proper` complains:\r\n```\r\n===> Verifying dependencies...\r\n===> Compiling rebar3_proper_include_issue\r\n===> Compiling test/prop_test.erl failed\r\ntest/prop_test.erl:4: can't find include file \"foo.hrl\"\r\n```"},"comment":{"url":"https://api.github.com/repos/ferd/rebar3_proper/issues/comments/250534008","html_url":"https://github.com/ferd/rebar3_proper/issues/8#issuecomment-250534008","issue_url":"https://api.github.com/repos/ferd/rebar3_proper/issues/8","id":250534008,"user":{"login":"tokenrove","id":71495,"avatar_url":"https://avatars.githubusercontent.com/u/71495?v=3","gravatar_id":"","url":"https://api.github.com/users/tokenrove","html_url":"https://github.com/tokenrove","followers_url":"https://api.github.com/users/tokenrove/followers","following_url":"https://api.github.com/users/tokenrove/following{/other_user}","gists_url":"https://api.github.com/users/tokenrove/gists{/gist_id}","starred_url":"https://api.github.com/users/tokenrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokenrove/subscriptions","organizations_url":"https://api.github.com/users/tokenrove/orgs","repos_url":"https://api.github.com/users/tokenrove/repos","events_url":"https://api.github.com/users/tokenrove/events{/privacy}","received_events_url":"https://api.github.com/users/tokenrove/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T17:24:06Z","updated_at":"2016-09-29T17:24:06Z","body":"`rebar3 as test compile` doesn't error out for the example I gave and version of rebar.  Maybe the test profile behavior changed since then?  (Note that I don't care either way; I gave up and rewrote all our tests to not use `-include`, but this behavior is still a little mysterious.  Note also that `rebar3 proper` fails even if the usage of `-include` is only in eunit tests that contain no properties, since it builds all of `test`.)"}}
{"actor":{"display_login":"tokenrove"}}