{"action":"created","issue":{"url":"https://api.github.com/repos/rebar/rebar3/issues/106","labels_url":"https://api.github.com/repos/rebar/rebar3/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/rebar/rebar3/issues/106/comments","events_url":"https://api.github.com/repos/rebar/rebar3/issues/106/events","html_url":"https://github.com/rebar/rebar3/issues/106","id":54961453,"number":106,"title":"Trouble including/using erlydtl in my project","user":{"login":"pablo-meier","id":315555,"avatar_url":"https://avatars.githubusercontent.com/u/315555?v=3","gravatar_id":"","url":"https://api.github.com/users/pablo-meier","html_url":"https://github.com/pablo-meier","followers_url":"https://api.github.com/users/pablo-meier/followers","following_url":"https://api.github.com/users/pablo-meier/following{/other_user}","gists_url":"https://api.github.com/users/pablo-meier/gists{/gist_id}","starred_url":"https://api.github.com/users/pablo-meier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablo-meier/subscriptions","organizations_url":"https://api.github.com/users/pablo-meier/orgs","repos_url":"https://api.github.com/users/pablo-meier/repos","events_url":"https://api.github.com/users/pablo-meier/events{/privacy}","received_events_url":"https://api.github.com/users/pablo-meier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-21T00:33:06Z","updated_at":"2015-01-21T03:55:32Z","closed_at":null,"body":"Hi friends!\r\n\r\nI'm trying to include [Erlydtl](https://github.com/erlydtl/erlydtl) in my project, but I'm hitting crashes in rebar core however I try to do it.\r\n\r\nIf I try the [package manager dependency](http://www.rebar3.org/v1.0/docs/dependencies-1#package-manager-dependencies) (with `DEBUG=1`):\r\n\r\n```\r\nin rebar.config --- {deps, [{erlydtl, \"0.9.2\"}]}\r\n$ rebar3 compile\r\n... %% Many lines ellided\r\n===> Consult config file \"/home/pablo/projects/myproject/_build/lib/ssl_verify_hostname/rebar.config\"\r\n===> Consult config file \"/home/pablo/projects/myproject/_build/lib/ssl_verify_hostname/rebar.lock\"\r\n===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace\r\n===> Uncaught error: {error,function_clause}\r\n```\r\n\r\nIf I try a [source dependency](http://www.rebar3.org/v1.0/docs/dependencies-1#source-dependencies):\r\n\r\n```\r\nin rebar.config --- {deps, [{erlydtl, {git, \"https://github.com/erlydtl/erlydtl.git\", {tag, \"0.10.0\"}}}]}\r\n$ rebar3 compile\r\n... %% Many lines ellided\r\n===> Consult config file \"/home/pablo/projects/myproject/_build/lib/erlydtl/rebar.config\"\r\n===> Consult config file \"/home/pablo/projects/myproject/_build/lib/erlydtl/rebar.lock\"\r\n===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace\r\n===> Uncaught error: {error,function_clause}\r\n```\r\n\r\nI'm also open to using the plugin, but had some trouble knowing how to include it in the compile cycle (do I add it to [`{plugins, ...}`?](http://www.rebar3.org/v1.0/docs/plugins#using-a-plugin) Will [this change soon?](https://github.com/rebar/rebar3/issues/69)) and wasn't sure how to add erlydtl to my kerl-managed Erlang's libraries anyways.\r\n\r\nI'll try diving into the source for an answer, but posting here for since it's likely something you will have more insight on :)\r\n\r\nThanks for all the work on a great tool, and let me know if there's anything I can do to help! :D"},"comment":{"url":"https://api.github.com/repos/rebar/rebar3/issues/comments/70780790","html_url":"https://github.com/rebar/rebar3/issues/106#issuecomment-70780790","issue_url":"https://api.github.com/repos/rebar/rebar3/issues/106","id":70780790,"user":{"login":"tsloughter","id":36227,"avatar_url":"https://avatars.githubusercontent.com/u/36227?v=3","gravatar_id":"","url":"https://api.github.com/users/tsloughter","html_url":"https://github.com/tsloughter","followers_url":"https://api.github.com/users/tsloughter/followers","following_url":"https://api.github.com/users/tsloughter/following{/other_user}","gists_url":"https://api.github.com/users/tsloughter/gists{/gist_id}","starred_url":"https://api.github.com/users/tsloughter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsloughter/subscriptions","organizations_url":"https://api.github.com/users/tsloughter/orgs","repos_url":"https://api.github.com/users/tsloughter/repos","events_url":"https://api.github.com/users/tsloughter/events{/privacy}","received_events_url":"https://api.github.com/users/tsloughter/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T03:55:32Z","updated_at":"2015-01-21T03:55:32Z","body":"Oh and right now you have to run it as `rebar3 erlydtl compile`. But you'll be able to add it as a pre or post hook to compile eventually."}}