Open Intrepidd opened 1 year ago
I also had a lot of bad experiences with the latest Rails version 7.2.2 and better html. No error page was displayed correctly anymore. Ended up in removing the gem completely.
I submitted rails/rails#53657 that should resolve this problem.
I realised after upgrading to rails 7.1 that when I encounter an exception in the view, I do not get the familiar
ActionDispatch::DebugExceptions
page anymore, but rather myexceptions_app
After much digging, I realised there is a crash inside
ActionDispatch::DebugExceptions
when trying to display the backtrace, thus making the middleware not render the page, and the exception ends up getting caught byActionDispatch::ShowExceptions
down the road.Here's the exception and the stacktrace :
better_html
sounded like a good suspect, removing it from the bundle fixes the issue.Alternatively, disabling runtime checks fixes the issue too :
So it seems that the custom parser conflicts with the way rails 7.1 tries to extract the source.