-
Notifications
You must be signed in to change notification settings - Fork 83
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
Exception in DebugThread loop: closed stream (Ruby 2.0) #38
Comments
@legal90 I removed all the debug related gems from my gem file. In Rubymine 6.0.3, clicked the debugger icon and was prompted to install required debug gems for Rubymine. After the installation, things are working as expected. Thus, it appears that Rubymine 6 doesn't require one to add debug gems explicitly to the Gemfile because the documentation has the following: http://www.jetbrains.com/ruby/webhelp/debugging.html
If you must install a debug gem to your Gemfile, then I would only add the following to your development block:
|
@conradwt Thank you, but I don't have any debug related gems in the Gemfile. Here is it: P.s. My gem list has been collected after the first 'Debug' action in the Rubymine, e.q. all debug related gems was installed by Rubymine, as you have described above. Exception still exists :( |
I've created ticket about the problem in RubyMine's tracker (http://youtrack.jetbrains.com/issue/RUBY-14880) |
Unfortunately, I'm unable to reproduce the problem now :( |
@os97673, I've attached logs to the RubyMine's ticket |
Have you managed to fix this yet? I am getting the same error-message, even after removing all debugging gems from my gemfile. thx |
@olekjormo try sub-proc-init-race branch |
Added this to GEMFILE gem 'ruby-debug-ide', :git => 'git://github.com/ruby-debug/ruby-debug-ide.git', :branch => 'sub-proc-init-race' but I still get this: Fast Debugger (ruby-debug-ide 0.4.22, debase 0.0.9) listens on 127.0.0.1:52660 Any idea? |
@olekjormo bother :( Could you please run ruby debugger in verbose mode (--debug in command line or Settings|Debugger|Ruby|verbose in RubyMine)? |
@os97673, It is not working in my case too. gem 'ruby-debug-ide', :git => 'git://github.com/ruby-debug/ruby-debug-ide.git', :branch => 'sub-proc-init-race' And there is verbose debug output:
Would you like me to send an 'idea.log' to you? |
@legal90 and what do you see in the RM's log? |
@os97673, I see only these (there are 3 entries per each debug run)
|
Hmm, it looks like I've fixed another problem which looked similar to yours :( Will look at this today or tomorrow. |
@os97673 So, is this issue still closed? Debugging is one of the most important feature in Rubymine and It is so sad that it still not working with Ruby 2.x. |
the ticket is closed because it loks like the cause of the problem is in the gem. |
Ok, thank you very much! |
@legal90 I've added more debug output (to the branch), could you please try to reproduce the problem with it and provide debugger's log |
@os97673 Sure, that it is. But it seems that nothing has changed in the output:(
P.s. You can try to reproduce it by yourself. Just checkout this repo: https://github.com/mitchellh/vagrant |
I was able to reproduce the exception but I'm not sure if this is the same problem as you see. |
@os97673 now 'medvedko' is printing sometimes :-) |
Ok, it looks like we just missed the expected exception. |
Sorry, but it still not working. But now there is
|
Added one more check. Try it now :) |
Now it is working better, but error still occurs: Statistics: I have only 1 of 5 debugging attempts failed. |
Ok, I think I've got the cause of the problem. Our code just not ready for situation when the socket will be closed on another thread. To catch all Errno::XXX we need to catch SystemCallError. |
I'm using Jetbrains RubyMine 6.0.3 and it is required
ruby-debug-ide
for debugging.I try to debug very simple command in the Vagrant project (https://github.com/mitchellh/vagrant): I try to execute
vagrant help
And I got the next error:
When I used Ruby 1.9.3 and
debugger-xml
, it was successful in the RubyMine.But now now I've switched to Ruby 2.0 and
ruby-debug-ide
became required. So, the debug is not working now.That is my Gem list: https://gist.github.com/legal90/e7841ff5d008fd34a41a
Please, help me to find the reason of this problem.
P.s. If you need some additional information about my environment - please let me know and I'll collect it.
The text was updated successfully, but these errors were encountered: