Unhandled Error: error:undef. Stacktrace: [{utils,no_auth,[[
Seems to be caused by the fact that files "src/controller" seem to be ercompiled on a save from Emacs but when I changed the code in a file in the "src/lib" folder, the change was not detected and so my new function was not present.
Can somebody state clearly what folders are subject to auto-rebuild of their content?
Thanks.
Sean.
Reloading smsengine_web_controller ... fail: nofile.
What gives? Ironically this is the *same* controller that doesn't work in "deploy" mode.
:(
Stopping because it is Sunday and I don't want the stress this early in the day!
--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/903de0c3-914a-4a2f-83ad-413087c6fdb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAEiEuULLknrTHh%2BCVGpSBazAhEVzLDcNuvQQeCskpHOSRSvy6A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAEiEuULLknrTHh%2BCVGpSBazAhEVzLDcNuvQQeCskpHOSRSvy6A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/af42bdd1-5258-4d24-9a69-f3fdf40b0f6c%40googlegroups.com.
I just re-read your issues; the recompiling works ... as long as you don't add new functions.If you perform a code change on ANYTHING existing, it works.
Controllers:There is actually a ticket open to fix this very annoying bug. I troubleshot this even with Evan and it's a pesky error. I hope that someone in the core team fixes this very soon.Elixir is able to recompile and pick up the newly added function(s), so it is not a short coming of the Erlang VM itself, it's ChicagoBoss dropping the ball somewhere in the modified compiler-chain(s).
Other code directories (lib and others):The reloader doesn't pickup added functions up as well (see above).Adding new modules works, but again, newly added functions are skipped/ignored.
Also, I think I had seen that you had referred to one of the controllers just by _web_controller and not smsengine_web:* ; if that's the case, that would be a user error. That could also explain why it does not work in either mode, development as well as production.
--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/8f6b21dc-01ae-459a-98b4-869d4c29863c%40googlegroups.com.
On Sunday, 11 January 2015 21:37:54 UTC, Kai Janson wrote:I just re-read your issues; the recompiling works ... as long as you don't add new functions.If you perform a code change on ANYTHING existing, it works.Well, adding new functions is kind of what development mode is all about isn't it!
Totally agree. It should be a no-brainer, but I do recall that due to the parameterized modules (and Erlang's lack of support now) the compilation is a lot more taxing.
That also explains why your code did not work when compiled from within Emacs.All the magic is done in the ChicagoBoss compiler chain for the module to work.
Controllers:There is actually a ticket open to fix this very annoying bug. I troubleshot this even with Evan and it's a pesky error. I hope that someone in the core team fixes this very soon.Elixir is able to recompile and pick up the newly added function(s), so it is not a short coming of the Erlang VM itself, it's ChicagoBoss dropping the ball somewhere in the modified compiler-chain(s).Bummer.
Yup, I'd say so. See above, CB compilation is a non-trivial task.
Other code directories (lib and others):The reloader doesn't pickup added functions up as well (see above).Adding new modules works, but again, newly added functions are skipped/ignored.Why is it apparently so complicated to just reload a changed file? I am also finding it hard to create debuggable BEAM files too. I think I may end up porting to yaws at this rate despite the great vibe CB ives me. :(
Yaws is great, but ... it's a tank! I love yaws, but it might not fit your bill 100% either. You will still need to add database support and the like. But, performance-wise it is awesome and it offers a lot for the so inclined developer. Your mileage might vary.
Also, I think I had seen that you had referred to one of the controllers just by _web_controller and not smsengine_web:* ; if that's the case, that would be a user error. That could also explain why it does not work in either mode, development as well as production.I spotted that and fixed it shortly after I posted but the problem persists.
Good call!
--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/8f6b21dc-01ae-459a-98b4-869d4c29863c%40googlegroups.com.
That also explains why your code did not work when compiled from within Emacs.
Yaws is great, but ... it's a tank! I love yaws, but it might not fit your bill 100% either. You will still need to add database support and the like. But, performance-wise it is awesome and it offers a lot for the so inclined developer. Your mileage might vary.