-
Notifications
You must be signed in to change notification settings - Fork 41
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
Cells not reloading code in development #10
Comments
Check if this is run: https://github.com/trailblazer/cells-rails/blob/master/lib/cell/railtie.rb#L67 |
Hey, I added a byebug in the EDIT : to be more precise,
Any idea where the problem might be ? cells (4.1.3) |
Maybe @timoschilling got an idea? |
When I roll back, up to cells 4.1.1 it still works. The bug was introduced with cells 4.1.2. My version of cells-rails stayed the same, so I guess the bug lies in cells and not cells-rails. SHould the issue be moved to the main repo ? |
It must be fixed here as Cells shouldn't contain any Rails code. What did we remove in 4.1.2? |
This still exists with cells-rails 0.0.7 and cells 4.1.6. If a cell has a syntax error then reloading seems to work until the file is successfully parsed at which point I have to restart the server to get new changes. |
View or cell class? 🤔 |
I don't have time to work on this in the next weeks, it's up to the community to fix it, so give it a go. 😉 |
It's the view (`concepts/thing/views/show.haml`). If there's an error it
will reload until the error is gone and from then on it requires a server
restart to reload the view.
I assume it could be fixed by changing/adding something in the railtie.
|
@Startouf, @contentfree: Can you provide an example application including a Gemfile.lock? |
I'm not working on many cells views anymore since we've developed our new frontend application, and I see in my Gemfile.lock my cells version number is now (4.1.7) and I don't recall having those problems again... maybe @contentfree still has some repro steps ? |
In my development environment my code is no longer reloading automatically. It seems to match my upgrade to cells-rails 0.0.6 and the latest cells. The rest of my app (controllers, Rails views) seems to reload correctly. How can I check the current configuration for cells caching ?
So right now I need to restart the server even if the cell crashes because of a syntax error :'(...
I will try to dig and blame the commit that introduced that...
The text was updated successfully, but these errors were encountered: