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
IllegalArgumentException when running 9.2.9.0 in RubyMine Debugger #5954
Comments
Shouldn't be too hard to reproduce with the command line given. I suspect this is due to work on #5859. |
Can someone help me find what gem those org.jruby.debug.* files are from? Part of the fixes in #5859 was changing c_call to c-call since that is what they are called in C Ruby. I am trying to track to ruby-debug-base but the only java file is not using org.jruby.debug.* as their Java equivs. |
@enebo I believe it is from here...these are the JRuby-specific bits for the ruby-debug tool stack: https://github.com/jruby/jruby-debug/blob/master/src/org/jruby/debug/Util.java. At least this may mean we can fix it and somehow force RubyMine to use the updated library. |
yeah c_call is not a real even name so we have had a bunch of typos in our code base for years we did not notice because we would only emit line up until #5859. So I guess we update jruby-debug and then tell people they need to update. Should be reasonably simple to update at least (s/_/-/ more or less :) ). |
I should take that back...we did emit some and some of those were using the _ name. But most events were not being emitted. |
hahah or a few things need to be changed since this is pre-maven and effectively has not been changed in 7 years. I think we can assume 9.x codebase and probably get rid of reflection hacks. |
@ViugiNick please, take a look and update the base gem |
@ViugiNick @denofevil ruby-debug/ruby-debug#30 ... This seems to be the place? |
I can confirm that I have the same issue, and on 9.2.8.0 I also have a debugger issue but not on the same spot, any work arounds ? hard to fly without a working debugger , thanks |
@amiracam I believe this is being fixed and should be released once we figure out who can do such releases...hopefully soon! |
Perfect, btw , I’m a fan , closest thing to my beloved Smalltalk, not talking about Ruby the fact that is on a VM is crucial, I also have finally figured how to integrate gradle and bundler all working within an Idea project
Jruby will have a substantial place in our product
Thanks for all the hard work
Charles A. Monteiro
Chief Technology Officer
Web: www.tradeblazer.com
phone: 347-853-7349
…On Dec 16, 2019, 3:33 PM -0500, Charles Oliver Nutter ***@***.***>, wrote:
@amiracam I believe this is being fixed and should be released once we figure out who can do such releases...hopefully soon!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
According to this it seems the releases were out a couple weeks ago: ruby-debug/ruby-debug#30 (comment) I'm not sure about next steps because I'm not familiar with how the IDEA (and probably Eclipse) plugins integrate this gem. Will they require new releases? Can users upgrade in place? @ViugiNick are you the right person to ask about this? |
well what works is to include that release in the Gemfile gem 'ruby-debug-base', '0.11.0', which in the case of IDEA will override what it thinks is the "appropriate" current release Anyhow I can confirm that the specific issue is addressed by the release of the aforementioned gem. I do still have edge issues debugging Jruby code from IDEA but I'll create another ticket for it if there's not one already. |
@amiracam Also note that 9.2.9.0 not only corrected those incorrect event names but also started properly emitting them (most events were not emitted before 9.2.9.0). So you may notice more stuff happening within IDEA which did not prior to 9.2.9.0. |
@amiracam I think we can call this fixed since ruby-debug-base is released and resolves the issue. Summarizing what I found about your new issue:
@enebo Maybe you have a different opinion about where to file future issues. I'll mark this one fixed though. |
I would guess it should be filed with us unless it is apparent something is wrong with the debug related gems. |
@enebo to be clear I also bumped into this issue on 9.2.9.0 which is what my project is currently on. |
@amiracam yeah we both have the same understanding then. |
@headius New gem will be bundled in one of the first 2020 releases |
@ViugiNick if IDEA/RubyMine didn't bundle a gem but instead installed from RubyGems, users would not need to suffer and wait until new release happens. |
@slonopotamus You can install the needed version from RubyGems and use it |
Yes, I can. I can also use different IDE, use different programming language, work on a different job, etc. There are workarounds for the fact that IDEA/RubyMine bundles fixed version of |
Environment
When I try to run my rails console in debug mode in RubyMine, which it looks like uses the gem ruby-debug-ide 0.7.0.beta7, I get the output below. I'm using RubyMine version 2019.2 on MacOS Catalina 10.15.1
The text was updated successfully, but these errors were encountered: