-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Glimmer VM v0.22 broke hot reloading #15057
Comments
TBH, I don't really think this is an ember bug. The hot reloader is definitely digging around in some deeply private territory. I'm happy that folks enjoy using it, but at the moment it is definitely not using public APIs. I think a good long term solution would be to truly analyze the need here, and submit an RFC to make the minimal required API that tools like this could hook into. That would give hot reloader (and other tools) the ability to stop using private API's... |
@rwjblue understood - thanks for the quick reply! |
To be clear, my reply wasn't trying to "shut you down" or anything. As usually I'm happy to help try to find a path forward with you... |
@rwjblue not to worry - my plan is to pause for the moment (as we have a big event next week). I really have 2 choices worth considering
@MiguelMadero and I have had great success to this point and I feel on some level the RFC is giving up. No offense to your comment ^^above asking me to play by the rules but this has been a powerful tool (for me personally) and I'd prefer to keep it moving (instead of rebooting /asking for feedback/ getting everyone involved when truly that addon was built for me) |
Hi, tl;dr; let's extend this RFC or write a new one. While I find the I was talking with @chadhietala yesterday about this at the SF Ember Meetup and he said he could help me push this during the event next week and also recommended to look into an existing RFC that talks about the ComponentManager, I think we was referring to emberjs/rfcs#213. I've not had a chance to review it, but that might be an "official" way to solve this. Going forward, I think we need help from someone with Glimmer 2 experience to 1) "play hero" together one more time to get a working version for the AST approach and 2) write the RFC so we can keep this stable going forward. |
Apologies, the following is pretty rough, just an initial brain-dump. I'll polish it a bit and send a comment to the RFC to move that discussion there. I had a first pass through emberjs/rfcs#213 and it seems promising. My initial thoughts are:
I'm making a lot of assumptions in our favor, but seems like the right direction. |
@MiguelMadero first up - I wanted to apologize for speaking on your behalf yesterday. I respect your decision (leaning toward the RFC) because the total cost of ownership has grown out of control the past few months. I'm conflicted because if someone has been using this addon with great success for some time and suddenly it's not supported /broken that reflects poorly on me (just something I'm dealing with here). I still plan to look deeper into the current break around mid April when I have the bandwidth but I certainly see value in moving ahead with the RFC as you suggested. The truth (if people don't already know it?) is that you've done all the work anyway. My contribution was mostly in morale (to keep the dream alive/ help land something ember-cli might use itself one day). If you are headed one direction it's wise for me to consider the same as you are the brains behind that addon :) |
@toranb all good! I didn't feel like you were.
That's kind of you to say that, but the reality is that we just unlocked different parts of the puzzle.
I agree that's why I think we need to do both in parallel, fix what's broken and start discussing those public APIs that will be required to keep this stable. Hopefully we can get some help from someone with more Glimmer 2 experience, since to me that has been the main blocker for both. |
I tested ember-cli-hot-loader today with ember v2.13.0-beta.1 and found that we are no longer able to clear the template/or compiler cache like we could previously with ember 2.12
A quick rundown of how the hot loader works => we clear all the cache we can find, then invoke rerender. Nothing magical but because ember 2.13.0-beta.1 takes a new version of the Glimmer 2 VM I'm wondering if you can help us identify how we should be clearing this cache now. I tried a few additional steps tonight, including what you see in the screenshot below (clearing not only
_definitionCache
, but also_compilerCache
and_templateCache
) but still no luck. I did step through the code to confirm it is executing as I found it was in ember 2.12 so my first guess is ... something has changed in glimmer 2 that we aren't yet clearing :)A full example app to show this broken can be found here. Any help would be amaz! Thank you in advance!
The text was updated successfully, but these errors were encountered: