From 96ec92b8200aa57cdffbab2dfa540e027ff2771b Mon Sep 17 00:00:00 2001 From: Mohamed Hafez Date: Fri, 12 Sep 2025 17:39:25 +0200 Subject: [PATCH] Fix frozen string warning fix the warning: `:@strict_loading.to_s will be frozen in the future` --- lib/ruby-debug-ide/command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby-debug-ide/command.rb b/lib/ruby-debug-ide/command.rb index ecbd2ba..b5588d8 100644 --- a/lib/ruby-debug-ide/command.rb +++ b/lib/ruby-debug-ide/command.rb @@ -124,7 +124,7 @@ def timeout(sec) def debug_eval(str, b = get_binding) begin - str = str.to_s + str = str.to_s.dup str.force_encoding('UTF-8') if(RUBY_VERSION >= '2.0') to_inspect = Command.unescape_incoming(str) max_time = Debugger.evaluation_timeout