rerun icon indicating copy to clipboard operation
rerun copied to clipboard

Incompatible with --enable-frozen-string-literal

Open matthew-puku opened this issue 1 month ago • 0 comments

It seems the plan is to eventually make string literals frozen by default: https://bugs.ruby-lang.org/issues/20205

With RUBYOPT="--enable-frozen-string-literal, rerun doesn't work, but it'd be nice if it did.

It raises an exception here:

https://github.com/alexch/rerun/blob/36f2d237985b670752abbe4a7f6814893cdde96f/lib/rerun/watcher.rb#L52

Suggestion

d.delete_suffix("/") is a non-mutating (and imo, more readable) alternative.

matthew-puku avatar Dec 04 '25 04:12 matthew-puku