Closed jrissler closed 7 years ago
@nixkid - I'm afraid it does not make the test go away :/
I added your repo
defp deps do
[{:phoenix, "~> 1.2.1"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.0"},
{:mariaex, ">= 0.0.0"},
{:phoenix_html, "~> 2.6"},
{:phoenix_haml, github: "nixkid/phoenix_haml"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0"}]
end
and got this anyway -
$ mix phoenix_haml.gen.html User users call_name email password password_hash
* creating web/controllers/user_controller.ex
* creating web/views/user_view.ex
** (CompileError) _build/dev/lib/phoenix/priv/templates/phoenix.gen.html/controller_test.exs:37: undefined function sample_id/0
(elixir) expanding macro: Kernel.<>/2
_build/dev/lib/phoenix/priv/templates/phoenix.gen.html/controller_test.exs:1: (file)
(elixir) expanding macro: Kernel.<>/2
_build/dev/lib/phoenix/priv/templates/phoenix.gen.html/controller_test.exs:1: (file)
(elixir) expanding macro: Kernel.<>/2
_build/dev/lib/phoenix/priv/templates/phoenix.gen.html/controller_test.exs:1: (file)
(elixir) expanding macro: Kernel.<>/2
_build/dev/lib/phoenix/priv/templates/phoenix.gen.html/controller_test.exs:1: (file)
@wdiechmann, yeah, I haven't made any changes on master branch, so you need to specify working branch instead, like this in your mix.exs file:
{:phoenix_haml, github: "nixkid/phoenix_haml", branch: "fix_haml_gen"}
It will do the trick.
Oh - figures ;)
Thx for a fast reply!
Cheers Walther
Den 14. sep. 2016 kl. 21.23 skrev Sergey Atarshchikov notifications@github.com:
@wdiechmann yeah, I didn't make any changes on master branch, so you need to specify working branch like this in your mix.exs file:
{:comeonin, github: "nixkid/phoenix_haml", branch: "fix_haml_gen"} It will do the trick.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/chrismccord/phoenix_haml","title":"chrismccord/phoenix_haml","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/chrismccord/phoenix_haml"}},"updates":{"snippets":[{"icon":"PERSON","message":"@nixkid in #37: @wdiechmann yeah, I didn't make any changes on master branch, so you need to specify working branch like this in your mix.exs file:\r\n
\r\n{:comeonin, github: \"nixkid/phoenix_haml\", branch: \"fix_haml_gen\"}\r\n
\r\nIt will do the trick."}],"action":{"name":"View Issue","url":"https://github.com/chrismccord/phoenix_haml/issues/37#issuecomment-247125368"}}}
@nixkid thanks!
I had this same problem too @nixkid thank you for the fix!
New to phoenix, generated basic app + added deps and ran:
mix phoenix_haml.gen.html Ticket tickets summary:string description:text issuetype:string