elixir-web / weber

[WiP] Web framework for Elixir inspired by Rails [#WeberMVC at freenode]
http://elixir-web.github.io/weber/
MIT License
372 stars 33 forks source link

Error running under elixir 0.15 #206

Open guiloyins opened 10 years ago

guiloyins commented 10 years ago

Running a webster app under elixir 0.15, got the following errors:

* (Mix) Could not start application weber_test2: exited in: WeberTest2.start(:normal, []) * (EXIT) an exception was raised: \ (MatchError) no match of right hand side value: {:error, {:already_started, :compiler}} lib/weber.ex:29: anonymous fn/1 in Weber.start/2 (elixir) lib/enum.ex:977: Enum."-map/2-lc$^0/1-0-"/2 lib/weber.ex:29: Weber.start/2 (kernel) application_master.erl:272: :application_master.start_it_old/4

teodor-pripoae commented 10 years ago

I'm getting the same issue.

2kodes commented 10 years ago

Any update on this issue? Since there have been many changes in elixir core I'm guessing making weber work with the current elixir v0.15.x will require a substantial rewrite of weber ?

teodor-pripoae commented 10 years ago

It seems there is a problem with [:compiler, :syntax_tools, :goldrush, :lager, :exlager] applications, as they are already started.

Actually, I think only compiler and syntax_tools applications are already started, and I successfully managed to start the server after removing them.

After I removed them, it seems that code reloading doesn't work anymore. Any ideas ?

0xAX commented 10 years ago

Hello all,

First of all thank you for report. I'm not updating weber for actual elixir version now, it breaks compability too often now. I will continue after stable release.

If somebody want to contribute to weber for actual elixir version, Welcome.

If you will have any questions please ping me here or in #WeberMVC at irc.freenode.net

teodor-pripoae commented 10 years ago

I can see that compiler and syntax_tools were added in this commit from elixir: https://github.com/elixir-lang/elixir/commit/9ba77e1ce6d1ea346d01531385e22541933b4e58.

I think we are safe to remove them if running on elixir 0.15.0+, but what happens if the code is running on older elixir versions ?

Maybe we should wait as you said until elixir gets to a stable release and then it will be a good idea to bump version compatibility. The problem is that I cannot use it with older versions as well, since a lot of dependencies require different elixir versions. As I said, the code reloader is broken when running in 0.15.0 so I can't do productive development using weber.

When I will get some free time, I will try to create a PR with fixes for 0.15.0 and hopefully a fix for code reloading.

warning: the dependency exlager requires Elixir "> 0.14.0" but you are running on v0.13.3
warning: the dependency weberContrib requires Elixir "~> 0.14.1" but you are running on v0.13.3
warning: the dependency plug requires Elixir "~> 0.15.0-dev" but you are running on v0.13.3
2kodes commented 10 years ago

Hi,

Any chance of a new release of weber now that elixir has reached 1.0.0 status??

vjustov commented 10 years ago

+1

alg commented 9 years ago

+1