Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template generation broken #8

Closed
jpinnix opened this issue Aug 27, 2018 · 2 comments
Closed

Template generation broken #8

jpinnix opened this issue Aug 27, 2018 · 2 comments

Comments

@jpinnix
Copy link
Contributor

jpinnix commented Aug 27, 2018

Running mix pow.phoenix.gen.templates or mix pow.phoenix.gen.templates --context-app Ss gives the error:

* creating lib/ss_web/views/pow/registration_view.ex
** (ArgumentError) argument error
    :erlang.binary_to_existing_atom("edit", :utf8)
    (elixir) lib/string.ex:2089: String.to_existing_atom/1
    (elixir) lib/enum.ex:1294: Enum."-map/2-lists^map/1-0-"/2
    (elixir) lib/enum.ex:1294: Enum."-map/2-lists^map/1-0-"/2
    lib/mix/pow/phoenix.ex:59: Mix.Pow.Phoenix.create_templates/4
    (elixir) lib/enum.ex:737: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:737: Enum.each/2
    lib/mix/tasks/phoenix/pow.phoenix.gen.templates.ex:41: Mix.Tasks.Pow.Phoenix.Gen.Templates.create_template_files/1

It does generate lib/ss_web/views/pow/registration_view.ex, but that is all.

@danschultzer
Copy link
Collaborator

Updating to v1.0.0-rc.3 should solve that.

@jpinnix
Copy link
Contributor Author

jpinnix commented Aug 27, 2018

Indeed it does. Thanks!

@jpinnix jpinnix closed this as completed Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants