solid_errors
solid_errors copied to clipboard
support ruby 3.4.0 style backtrace string
Since ruby 3.4.0, backtrace string format has changed to use single quote instead of backtick. https://github.com/ruby/ruby/commit/25d74b9527cd525042ad0b612b794fa331d3a318 https://bugs.ruby-lang.org/issues/16495
passed on my repo https://github.com/kuboon/solid_errors/actions/runs/13322147541
For anyone waiting for this to be merged, as a quick hack you can put this into the solid_errors.rb initializer:
ActiveSupport.on_load(:after_initialize) do
SolidErrors::BacktraceLine.send(:remove_const, :INPUT_FORMAT)
SolidErrors::BacktraceLine.const_set(:INPUT_FORMAT, %r{^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in [`']([^']+)')?$})
end
@fractaledmind Thank you for approving. Could you merge this?
Live in v0.7.0 now. Thanks