identikal icon indicating copy to clipboard operation
identikal copied to clipboard

fixing error on frozen string

Open arunkumarg opened this issue 5 years ago • 3 comments

arunkumarg avatar Dec 06 '19 16:12 arunkumarg

Given that frozen_string_literal is set to false can you provide more details on the error you are facing? The gsub! method is being used intentionally to avoid creating copies of page text.

jahangiranwari avatar Dec 17 '19 09:12 jahangiranwari

I was iterating number files (100) and at some point hit with below error

can't modify frozen String (FrozenError)

arunkumarg avatar Dec 17 '19 10:12 arunkumarg

Interesting, do you have a sample file that throws that error? Would like to understand better why the error is being thrown in that particular case.

jahangiranwari avatar Dec 17 '19 11:12 jahangiranwari