Description
Thank you for your work on Spring. It's saved me a lot of seconds over the years :)
I encountered an incompatibility with rails/spring when I was installing a working with a new gem dry-monads
Repro repo: https://github.com/johnmaxwell/spring_dry_monads_break
dry-monads ticket: dry-rb/dry-monads#115
The issue is that dry-monads raises an Error with a frozen, empty array for the backtrace, and Spring's patched raise attempts to sanitize the backtrace without checking if it is frozen. This causes an error: can't modify frozen Array (FrozenError)
spring/lib/spring/application.rb
Line 305 in ee68785
Does it make sense to check that the backtrace isn't frozen before attempting sanitization?
Spring 2.1.0
Rails 6.0.1
Ruby 2.6.5
dry-monads: 1.3.2