sugar-framework / sugar

Modular web framework for Elixir
https://sugar-framework.github.io/
MIT License
430 stars 29 forks source link

Compilation error at `mix server` #79

Open ghost opened 8 years ago

ghost commented 8 years ago

I'm running Sugar 0.4.8

deps/templates/lib/sugar/templates/engines/eex.ex:13: warning: variable assigns is unused
** (CompileError) deps/templates/lib/sugar/templates/engines/eex.ex:13: cannot define module :"Elixir.Sugar.Templates.CompiledTemplates.EEx.index.html.eex" because it is currently being defined in deps/templates/lib/sugar/templates/engines/eex.ex:13
    (templates) lib/sugar/templates/engines/eex.ex:20: Sugar.Templates.Engines.EEx.compile/1
    (sugar) lib/mix/tasks/compile/sugar.ex:62: anonymous fn/2 in Mix.Tasks.Compile.Sugar.do_compile/1
    (elixir) lib/enum.ex:977: anonymous fn/3 in Enum.map/2
    (elixir) lib/enum.ex:1261: Enum."-reduce/3-lists^foldl/2-0-"/3

And yes, the error looks very weird.

slogsdon commented 8 years ago

Thanks for the report!

That library has caused more problems than it's worth. It may be time to re-write it :frowning:

ghost commented 8 years ago

0.4.9 fixed the issue :)

slogsdon commented 8 years ago

oh yay! unintended side effect for the win!

ghost commented 8 years ago

Oh well apparently it's back again :D I had to rm views/main/index.html.eex.

slogsdon commented 8 years ago

:(

jcoleman-techempower commented 5 years ago

Any plans to keep this project maintained?