Auto reloader is failing #227

Open
kotedo opened this Issue Mar 26, 2013 · 4 comments

Comments

Projects
None yet
5 participants
Contributor

kotedo commented Mar 26, 2013

Hi,

The reloader doesn't pick up changes in modules properly.
Scenario:
Start Boss.
Have a module named __src/lib/__stuff.erl .
Execute stuff:bar(). Works.
Now you edit function named "bar" in the code and save it.
Notice the message: stuff:bar().Reloading stuff ... fail: nofile. <----- Red herring!
That message tells you that the code loader could not find the file specified.
In fact, if you empty ebin BEFORE you run this, you'll notice that the beam file doesn't get created. The code loader works on files only. No file, no dice.

Thank you!
--Kai

@kotedo kotedo closed this Mar 26, 2013

@kotedo kotedo reopened this Mar 26, 2013

Contributor

kotedo commented Mar 26, 2013

Closed by accident. Reopened on purpose. Sorry.

Contributor

danikp commented Jan 6, 2014

related to #323 and #322

@ghost ghost assigned zkessin Jan 6, 2014

There is also a problem with loading new controllers and views, when running in production mode.

To reproduce:

  • compile project with ./rebar compile and run ./init.sh start
  • in web browser try to request /common/index, get 404 error
  • create in src/controller ourproj_common_controller.erl:
-module(ourproj_common_controller, [Req,SessionId]).
-compile(export_all).

index('GET',[]) -> {output, "ok"}.
  • compile with ./rebar compile, then reload with ./init.sh reload
  • try to request /common/index — still get 404

if we restart project completely with ./init.sh restart — new controller will be loaded.

When running in development mode, new controllers are loaded correctly.

I think, this is related to issue #322

Contributor

mihawk commented Jan 30, 2015

maybe fixed with the PR, #533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment