Skip to content

Fix bug where error line numbers were incorrect in Rails 8.1 - #2502

Merged
joelhawksley merged 11 commits into
mainfrom
20251119-ci
Nov 20, 2025
Merged

joelhawksley merged 11 commits into
mainfrom
20251119-ci

Conversation

@joelhawksley

@joelhawksley joelhawksley commented Nov 19, 2025 •

Copy link
Copy Markdown
Member

Rails 8.1 added a newline to the compiled ERB output in rails/rails#53731, so we need to change our class_eval'd line number depending on the Rails version at compile time, but only for ERB.

I also made some appraisal updates here that get us closer to passing on Rails and Ruby main, but we are blocked by Nokogiri not supporting Ruby 4. I'm guessing that will change in the next couple of weeks ❤️

@joelhawksley joelhawksley changed the title bundle update, fix ci Fix compatibility with Rails 8.1 Nov 19, 2025
@joelhawksley joelhawksley changed the title Fix compatibility with Rails 8.1 Fix bug where error line numbers were incorrect in Rails 8.1 Nov 19, 2025
@joelhawksley
joelhawksley marked this pull request as ready for review November 19, 2025 21:50
Comment thread lib/view_component/template.rb Outdated
Comment thread lib/view_component/template.rb Outdated
joelhawksley and others added 2 commits November 20, 2025 09:15
Co-authored-by: Hans Lemuet <Spone@users.noreply.github.com>
Co-authored-by: Hans Lemuet <Spone@users.noreply.github.com>
@joelhawksley
joelhawksley merged commit 0e15a39 into main Nov 20, 2025
16 of 18 checks passed
@joelhawksley
joelhawksley deleted the 20251119-ci branch November 20, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants