Skip to content
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

Rubymine doesn’t show value of string variables by debugging time #25

Open
Rob-Schneider opened this issue Feb 9, 2020 · 6 comments
Labels

Comments

@Rob-Schneider
Copy link

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!

1
2
3
4
5

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:

require 'sketchup'

module TESTEM
  @arr = %w(тест тест2 3 test)

  def TESTEM.met
    @arr.each do |val|
      puts val
    end
  end
end
@thomthom
Copy link
Member

@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?

@thomthom thomthom added the bug label Feb 12, 2020
@BugraBarin
Copy link
Member

I'm not sure. Maybe a Ruby version upgrade broke it.
?

@Rob-Schneider
Copy link
Author

Rob-Schneider commented Feb 15, 2020

... the tests RM2019 with SU2016 and SURubyDebagger 1.0.2.0 - the variables printed correct.
1
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.

@thomthom
Copy link
Member

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.

image

I've used Ruby 2.7.0 both cases

What do you mean by this? Did you replace the Ruby interpreter DLLs for SketchUp?

@Rob-Schneider
Copy link
Author

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?


@thomthom
Copy link
Member

I think that might not matter. ...or, maybe in terms of code insight warnings...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants