New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error occurred when I modify source code (padrino is running) #1662
Comments
@ssut Thanks for the report! However, I couldn't reproduce. |
(It's just a guess) |
Thanks, confirmed. |
I've digged in the issue. require 'active_support/time' unless defined?(ActiveSupport::Duration) @ujifgc @padrino/core-members Perhaps, we should provide a method that can avoid loading specific external library. |
Does the app fail every time the source is changed or only when |
Yes, this error occurs everytime the source is changed. |
Great! |
Thanks for fix this issue! :) |
I'm getting the same error but I'm not using an external library. I have a module that extend ActiveSupport::Concern and is included into a model. I created a dummy project here: https://github.com/senekis/dashboard to reproduce the error. Steps to reproduce:
You'll see the error ActiveSupport::Concern::MultipleIncludedBlocks - Cannot define multiple 'included' blocks for a Concern: I appreciate your help |
Should be fixed on master by d25298c |
The fix broke reloading apps. Reverted it by 579944b. Temporary solution: don't use |
👍 faced the same issue, |
from my finding, adding this in my concern file
fixed the issue, but some how the model class that include this concern class will need to reload too... |
i tried to remove activeconcern from my concerns/tokenable.rb
when i run in padrino console,
|
okay, ive a fix, it detects reloading of concern file, then find all models that include the file, https://gist.github.com/u007/47b2f021670d54f862624ae70494a085 |
It works, thanks! |
An error occurred when I modify source code. *prerequisite: padrino is running and reload option is on.
The text was updated successfully, but these errors were encountered: