wende / elchemy

Write Elixir code using statically-typed Elm-like syntax (compatible with Elm tooling)
https://wende.github.io/elchemy/
MIT License
1.15k stars 28 forks source link

New projects no longer work with current instructions #338

Closed deke closed 6 years ago

deke commented 6 years ago

With the introduction of commit ce82efb1c626d5c4b344c3369cd991092920c0ea, the current instruction of

Make sure to add: |> Code.eval_file(".elchemy.exs").init to your mix.exs file as the last line of the project() function.

is no longer sufficient.

elchemy new myapp does not generate a :name atom in the project keyword list, so line 6 in the .elchemy.exs file if !project || !project[:name] do will always fail.

Some possible fixes:

wende commented 6 years ago

Good call @deke. Mentioned in a PR, how about checking for :deps instead. I don't think it's possible to create a project without deps field in it.

wende commented 6 years ago

Fix released in 0.7.3