Closed resistorsoftware closed 2 years ago
@kirillplatonov hope you have any chance to see this issue, I saw the same behavior ERB files change, no reload occurs.
@lcuevastodoit do you also use Firefox? Could you please provide examples of errors you get in the browser?
I will getting the screen captures in a minutes but you can see rigth now in this Replit https://replit.com/@lcuevastodoit/test-hotwire-live-reloading
I will getting the screen captures in a minutes but you can see rigth now in this Replit https://replit.com/join/cumjsjoifb-lcuevastodoit
Could you please share it via public Github gist/repo? I don't have Replit account.
I just made this video gif
you can fork the code in https://replit.com/@lcuevastodoit/test-hotwire-live-reloading
also you can browse the code (no need to Login)
Maybe this help, when hotwire reloading is working good, it shows one Action Cable Broadcasting log and after that one Hotwire::Livereload::ReloadChannel transmitting log:
And when is not working only send the Action Cable Broadcasting
@lcuevastodoit it seems like there was a bug in older puma that caused issues with Action Cable broadcasting. Upgrading puma to the latest version helps to resolve this: bundle update puma
Excelent @kirillplatonov you are the master, the problem was puma 5.6.0 Solved with puma 5.6.4
bundle update puma
Installing puma 5.6.4 (was 5.6.0) with native extensions
Removing puma (5.6.0)
Bundle updated!
~/test-hotwire-live-reloading$ bundle info puma
* puma (5.6.4)
I am running Puma 5.6.4, yet when I change an ERB file, I see this in my console, and the hotwire-reload has not reloaded the page?
Rebuilding... 10:33:29 css.1 | Done in 14ms. 10:33:29 web.1 | [ActionCable] Broadcasting to hotwire-reload: {:changed=>["/Users/Documents/Workspace/Apps/2022/rancid_butter/app/views/transmissions/index.html.erb"], :force_reload=>false}
@resistorsoftware please provide a sample app with the reproducible issue. Without this, it's impossible to investigate what went wrong.
Impossible! I will just soldier on. Thanks!
Hi @resistorsoftware, have you maybe resolved your issue?
My logs show when ERB files change, no reload occurs. This is so strange! Also, my browser shows lots of problems with wss:// connections. I am really trying hard to figure out where the true issue lies! So far, no clues...