{"action":"created","issue":{"url":"https://api.github.com/repos/rebar/rebar3/issues/359","labels_url":"https://api.github.com/repos/rebar/rebar3/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/rebar/rebar3/issues/359/comments","events_url":"https://api.github.com/repos/rebar/rebar3/issues/359/events","html_url":"https://github.com/rebar/rebar3/issues/359","id":70115460,"number":359,"title":"Compiler does not preprocess before warning about include_lib","user":{"login":"fishcakez","id":2001229,"avatar_url":"https://avatars.githubusercontent.com/u/2001229?v=3","gravatar_id":"","url":"https://api.github.com/users/fishcakez","html_url":"https://github.com/fishcakez","followers_url":"https://api.github.com/users/fishcakez/followers","following_url":"https://api.github.com/users/fishcakez/following{/other_user}","gists_url":"https://api.github.com/users/fishcakez/gists{/gist_id}","starred_url":"https://api.github.com/users/fishcakez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fishcakez/subscriptions","organizations_url":"https://api.github.com/users/fishcakez/orgs","repos_url":"https://api.github.com/users/fishcakez/repos","events_url":"https://api.github.com/users/fishcakez/events{/privacy}","received_events_url":"https://api.github.com/users/fishcakez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-22T12:45:55Z","updated_at":"2015-04-23T13:07:18Z","closed_at":"2015-04-23T13:07:18Z","body":"With this code:\r\n```erlang\r\n-ifdef(TEST)\r\n-include_lib(\"test_dep/include/file.hrl\").\r\n-endif.\r\n```\r\n`rebar3 compile` will give this warning:\r\n```\r\n===> Bad use of -include_lib(\"test_dep/include/file.hrl\"). First path component should be the name of an application. You probably meant -include(\"test_dep/include/file.hrl\").\r\n===> Could not find header for -include_lib(\"test_dep/include/file.hrl\").\r\n```\r\nOf course `rebar3 as test compile` does not warn because `test_dep` exists in that profile.\r\n\r\nThe check needs to pre-process the .erl files to handle macros before checking the included files."},"comment":{"url":"https://api.github.com/repos/rebar/rebar3/issues/comments/95578080","html_url":"https://github.com/rebar/rebar3/issues/359#issuecomment-95578080","issue_url":"https://api.github.com/repos/rebar/rebar3/issues/359","id":95578080,"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":"2015-04-23T13:07:18Z","updated_at":"2015-04-23T13:07:18Z","body":"I guess this is something we can't really do on our end then? Marking as WONTFIX and will close this."}}