-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"FrozenError: can't modify frozen String" in 2.7 with frozen string literal options #243
Comments
Hi @anthonykaufman , I tried reproducing this issue, but as my Ruby version is on 3+, I can't seem to replicate this. Can you please provide a PR, or a backtrace, to allow me to dig deeper? Thanks! |
Sorry, for the slow reply here. Got a little sidetracked with other projects last week. Here's that PR including steps to reproduce: |
I'm seeing this in ruby 3.3.4 also:
using it like this:
|
Fixed in 1.0.29 |
In the latest gem (1.0.27) I'm getting "FrozenError: can't modify frozen String" in several places in the
combine_pdf/renderer
. Though I originally encountered this in Ruby 2.5, I can reproduce in 2.7 using the--enable-frozen-string-literal
and--debug-frozen-string-literal
flags.I've created some tests which expose and fixed by adding
.b
to a few literals. I can submit as a PR if that'd be helpful.The text was updated successfully, but these errors were encountered: