Open Rob-Schneider opened 4 years ago
@BugraBarin - any idea of what could cause this regression? Something in SketchUp or in RubyMine?
We do have a known regression where the Ruby Console isn't displaying unicode characters correctly unless you do a puts
of the string. Related?
I'm not sure. Maybe a Ruby version upgrade broke it. ?
... the tests RM2019 with SU2016 and SURubyDebagger 1.0.2.0 - the variables printed correct. Hmmm. interesting. in SU2016 such as SU2019 you can see echo. The array repeatedly printed after .each puts. Pay attention... in SU2019 wrong encoded...(see the previous screenshot) in SU2016 -correctly.
puts
command working correctly both cases! I've used Ruby 2.7.0 both cases May be this info will help you.
in SU2019 wrong encoded...(see the previous screenshot)
hm.. I don't see the encoding being wrong. I see strings created in the Ruby Console appear with UTF-8 encoding, which is what you expect.
However there is a bug there typing just the name of a string variable in the Ruby Console will not display it correctly in the Ruby Console. This is just a Ruby Console bug. The string is fine. It will display correctly if you do puts
before the variable name. So there's something we're doing differently when we display the return value of the last eval vs puts
.
I've used Ruby 2.7.0 both cases
What do you mean by this? Did you replace the Ruby interpreter DLLs for SketchUp?
I've used Ruby 2.7.0 both cases
What do you mean by this? Did you replace the Ruby interpreter DLLs for SketchUp?
I've installed 1)RubyMine and 2)ruby 2.7.0 x64 with MSYS2 from https://rubyinstaller.org/downloads/ RM doesn't work without ruby as I understand... May be I should install less version ruby for compatibility?
I think that might not matter. ...or, maybe in terms of code insight warnings...?
I can see it on Win10(64bit) RM2019 -> SUPro2019(english ver) with SURubyDebugger.dll 1.2.0.0 with national encoded symbols in string variables! for example instead dname="1ящик" Rubymine shows in ‘watch’ window dname="1" instead dname="полка" Rubymine shows dname="" other words national symbols has been cutted… But in result of script job in Sketchup all values are work correctly. Only not visible by debugging time in RM.
National symbols was cutted but digit stay in place. Usualy I can see wrong symbols when encoding incorrect. but this case different!
Perhaps something wrong with my settings! But the tests RM2019 with SU2016 and SURubyDebagger 1.0.2.0 - the variables printed correct.
You can use this script for repeat my case: