Duplicate console output

Answered
print "Input ID: "
id = gets.chomp

if id == "test"
puts "Welcome"
else
puts "Wrong ID"
end

 

Output:

Input ID:test
Input ID: Welcome

 

1) There is no space after colon

2) 'Input ID' is displayed twice

 

How can I fix this?

3 comments
Comment actions Permalink

Could you please specify your RubyMine version and OS? Do you have the same problem in RubyMine 2019.1.2 RC?

0
Comment actions Permalink

I'm using RubyMine 2019.1.1 and Windows 10. This issue occurs also in 2019.1.2

0
Comment actions Permalink

Thank you, I've submitted a corresponding issue so please add your vote:

https://youtrack.jetbrains.com/issue/RUBY-24208

0

Please sign in to leave a comment.