Debugger stopped working out of the blue: "OptionParser::InvalidOption: invalid option: b"
Hi,
yesterday - out of the blue - rubymine started doing strange things:
1) stopped to to syntax highlighting. I “fixed” this by resetting the options to defaults, but I am curious about what could have happened.
2) the debugger does not work anymore. It first emits this never seen before warning:
[WARNING] Could not load command "rails/commands/server/server_command". Error: superclass mismatch for class StringIO.
and then crashes with:
OptionParser::AmbiguousOption: ambiguous option: -b
RubyMine 2021.2.4
Build #RM-212.5712.40, built on December 21, 2021
Runtime version: 11.0.13+8-b1504.49 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.0.1
GC: G1 Young Generation, G1 Old Generation
Memory: 752M
Cores: 10
thanks,
Full log attached here. The block in bold has always been there, apparently harmless. The rest is new.
/bin/bash -c "/Users/rd/.rvm/bin/rvm ruby-2.7.5 do /Users/rd/.rvm/rubies/ruby-2.7.5/bin/ruby /Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.3/bin/rdebug-ide --key-value --step-over-in-blocks --disable-int-handler --evaluation-timeout 10 --evaluation-control --time-limit 100 --memory-limit 0 --rubymine-protocol-extensions --port 57255 --host 0.0.0.0 --dispatcher-port 57256 -- /Users/rd/src/foobar/bin/rails server -b 0.0.0.0 -p 3000 -e development"
Fast Debugger (ruby-debug-ide 2.3.3, debase 2.3.2, file filtering is supported, block breakpoints supported, smart steps supported, obtaining return values supported, partial obtaining of instance variables supported) listens on 0.0.0.0:57255
WARN: Unresolved or ambiguous specs during Gem::Specification.reset:
io-console (~> 0.5)
Available/installed versions of this gem:
- 0.7.2
- 0.5.6
rdoc (>= 4.0.0)
Available/installed versions of this gem:
- 6.7.0
- 6.2.1.1
WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>'
Please report a bug if this causes problems.
[WARNING] Could not load command "rails/commands/server/server_command". Error: superclass mismatch for class StringIO.
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/psych/nodes/node.rb:2:in `require'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/psych/nodes/node.rb:2:in `<top (required)>'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/psych/nodes.rb:2:in `require'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/psych/nodes.rb:2:in `<top (required)>'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/psych.rb:15:in `require'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/psych.rb:15:in `<top (required)>'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/yaml.rb:4:in `require'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/yaml.rb:4:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/application.rb:3:in `require'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/application.rb:3:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails.rb:13:in `require'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails.rb:13:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands/server/server_command.rb:5:in `require'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands/server/server_command.rb:5:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command/behavior.rb:44:in `require'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command/behavior.rb:44:in `block (2 levels) in lookup'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command/behavior.rb:40:in `each'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command/behavior.rb:40:in `block in lookup'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command/behavior.rb:39:in `each'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command/behavior.rb:39:in `lookup'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command.rb:74:in `find_by_namespace'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command.rb:46:in `invoke'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands.rb:18:in `<top (required)>'
/Users/rd/src/foobar/bin/rails:5:in `require'
/Users/rd/src/foobar/bin/rails:5:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.3/lib/ruby-debug-ide.rb:95:in `debug_load'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.3/lib/ruby-debug-ide.rb:95:in `debug_program'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.3/bin/rdebug-ide:190:in `<main>'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/ostruct/version.rb:4: warning: already initialized constant OpenStruct::VERSION
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ostruct-0.6.0/lib/ostruct.rb:110: warning: previous definition of VERSION was here
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/ostruct.rb:316: warning: already initialized constant OpenStruct::InspectKey
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ostruct-0.6.0/lib/ostruct.rb:383: warning: previous definition of InspectKey was here
rails aborted!
OptionParser::AmbiguousOption: ambiguous option: -b
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands/rake/rake_command.rb:19:in `block in perform'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command.rb:50:in `invoke'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands.rb:18:in `<top (required)>'
/Users/rd/src/foobar/bin/rails:5:in `require'
/Users/rd/src/foobar/bin/rails:5:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.3/lib/ruby-debug-ide.rb:95:in `debug_load'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.3/lib/ruby-debug-ide.rb:95:in `debug_program'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.3/bin/rdebug-ide:190:in `<main>'
Caused by:
OptionParser::InvalidOption: invalid option: b
Did you mean? B
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands/rake/rake_command.rb:19:in `block in perform'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command.rb:50:in `invoke'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands.rb:18:in `<top (required)>'
/Users/rd/src/foobar/bin/rails:5:in `require'
/Users/rd/src/foobar/bin/rails:5:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.3/lib/ruby-debug-ide.rb:95:in `debug_load'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.3/lib/ruby-debug-ide.rb:95:in `debug_program'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.3/bin/rdebug-ide:190:in `<main>'
(See full trace by running task with --trace)
Process finished with exit code 1
Please sign in to leave a comment.
Hello,
Could you please check if you can reproduce this problem with the latest available version, which you can download here?
Best regards,
Karina Mokleva
The RubyMine team
Hi, I have a license. I don't think is valid for this version.
RubyMine 2021.2.4
Build #RM-212.5712.40, built on December 21, 2021
Licensed to ***
You have a perpetual fallback license for this version.
Subscription is active until September 24, 2024.
Runtime version: 11.0.13+8-b1504.49 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.0.1
GC: G1 Young Generation, G1 Old Generation
Memory: 752M
Cores: 10
Hi,
I've just checked your license and confirmed it is valid for 2024.2.1.
If, for some reason, it is not working, please create a ticket with the reference to this thread so I can send you a trial license to check the issue.
Hi,
same exact error.
BTW is it possibile to rollback to the version I was using before? This one is really strange.
The Git plugin seems completely different from the old one, way worse. It was the main reason I was using Rubymine and now it has not floating windows anymore and it fills the gutter with noise.
Basically every row of the editor is disturbed with an icon telling the name of the author of the last modification (????)
I restored 2021.2.4 version.
Seems to be the last one with the git commit and compare dialog (example below) and without those annoying lines into the editor with the name of the author of the modifications (what's the point of having them polluting the editor??? It should be an option at least).
It seems that IntelliJ decided to ruin the best feature of the IDE (the git plugin). The new one is a huge step backward, not usable at all.
BTW debugger does not work anymore, no matter the version I install.
Inlay hints showing the author of a part of a code in the editor can be turned off via the context menu or in Settings | Editor | Inlay hints | Code vision.
Going back to the debugging issue, could you please try the following:
Best regards,
Karina Mokleva
The RubyMine team
Hi,
it happens only with one specific project. This is the verbose debug.
Where should I send the rubymine-logs?
/bin/bash -c "/Users/rd/.rvm/bin/rvm ruby-2.7.5 do /Users/rd/.rvm/rubies/ruby-2.7.5/bin/ruby /Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.20/bin/rdebug-ide --debug --key-value --step-over-in-blocks --disable-int-handler --evaluation-timeout 10 --evaluation-control --time-limit 100 --memory-limit 0 --rubymine-protocol-extensions --port 62877 --host 0.0.0.0 --dispatcher-port 62878 -- /Users/rd/src/kalisi/bin/rails server -b 0.0.0.0 -p 3000 -e development"
Fast Debugger (ruby-debug-ide 2.3.20, debase 2.3.14, file filtering is supported, block breakpoints supported, smart steps supported, obtaining return values supported, partial obtaining of instance variables supported) listens on 0.0.0.0:62877
52943: Main debugger server created. Host=0.0.0.0, Port=62877
52943: Setup env vars for child processes. Initial IDE_PROCESS_DISPATCHER=62878
52943: Updated IDE_PROCESS_DISPATCHER=127.0.0.1:62878
52943: Starting control thread
52943: Processing in control: include /Users/rd/src/kalisi/
52943: <fileIncluded file="/Users/rd/src/kalisi/"/>
52943: Processing in control: exclude /Users/rd/src/kalisi/vendor/cache/
52943: <fileExcluded file="/Users/rd/src/kalisi/vendor/cache/"/>
52943: Processing in control: exclude /Users/rd/src/kalisi/log/
52943: <fileExcluded file="/Users/rd/src/kalisi/log/"/>
52943: Processing in control: exclude /Users/rd/src/kalisi/tmp/
52943: <fileExcluded file="/Users/rd/src/kalisi/tmp/"/>
52943: Processing in control: exclude /Users/rd/src/kalisi/public/system/
52943: <fileExcluded file="/Users/rd/src/kalisi/public/system/"/>
52943: Processing in control: exclude /Users/rd/src/kalisi/public/packs-test/
52943: <fileExcluded file="/Users/rd/src/kalisi/public/packs-test/"/>
52943: Processing in control: start
52943: Starting: running program script
[WARNING] Could not load command "rails/commands/server/server_command". Error: superclass mismatch for class StringIO.
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/psych/nodes/node.rb:2:in `require'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/psych/nodes/node.rb:2:in `<top (required)>'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/psych/nodes.rb:2:in `require'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/psych/nodes.rb:2:in `<top (required)>'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/psych.rb:15:in `require'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/psych.rb:15:in `<top (required)>'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/yaml.rb:4:in `require'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/yaml.rb:4:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/application.rb:3:in `require'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/application.rb:3:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails.rb:13:in `require'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails.rb:13:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands/server/server_command.rb:5:in `require'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands/server/server_command.rb:5:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command/behavior.rb:44:in `require'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command/behavior.rb:44:in `block (2 levels) in lookup'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command/behavior.rb:40:in `each'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command/behavior.rb:40:in `block in lookup'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command/behavior.rb:39:in `each'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command/behavior.rb:39:in `lookup'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command.rb:74:in `find_by_namespace'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command.rb:46:in `invoke'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands.rb:18:in `<top (required)>'
/Users/rd/src/kalisi/bin/rails:5:in `require'
/Users/rd/src/kalisi/bin/rails:5:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.20/lib/ruby-debug-ide.rb:129:in `debug_load'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.20/lib/ruby-debug-ide.rb:129:in `debug_program'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.20/bin/rdebug-ide:203:in `<main>'
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/ostruct/version.rb:4: warning: already initialized constant OpenStruct::VERSION
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ostruct-0.6.0/lib/ostruct.rb:110: warning: previous definition of VERSION was here
/Users/rd/.rvm/rubies/ruby-2.7.5/lib/ruby/2.7.0/ostruct.rb:316: warning: already initialized constant OpenStruct::InspectKey
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ostruct-0.6.0/lib/ostruct.rb:383: warning: previous definition of InspectKey was here
rails aborted!
OptionParser::AmbiguousOption: ambiguous option: -b
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands/rake/rake_command.rb:19:in `block in perform'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command.rb:50:in `invoke'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands.rb:18:in `<top (required)>'
/Users/rd/src/kalisi/bin/rails:5:in `require'
/Users/rd/src/kalisi/bin/rails:5:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.20/lib/ruby-debug-ide.rb:129:in `debug_load'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.20/lib/ruby-debug-ide.rb:129:in `debug_program'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.20/bin/rdebug-ide:203:in `<main>'
Caused by:
OptionParser::InvalidOption: invalid option: b
Did you mean? B
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands/rake/rake_command.rb:19:in `block in perform'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/command.rb:50:in `invoke'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/railties-6.1.4.6/lib/rails/commands.rb:18:in `<top (required)>'
/Users/rd/src/kalisi/bin/rails:5:in `require'
/Users/rd/src/kalisi/bin/rails:5:in `<top (required)>'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.20/lib/ruby-debug-ide.rb:129:in `debug_load'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.20/lib/ruby-debug-ide.rb:129:in `debug_program'
/Users/rd/.rvm/gems/ruby-2.7.5/gems/ruby-debug-ide-2.3.20/bin/rdebug-ide:203:in `<main>'
(See full trace by running task with --trace)
52943: Closing interface socket after processing all commands.
52943: Interface socket closed.
Process finished with exit code 1
You can upload logs to https://uploads.services.jetbrains.com/ . Please let us know what the upload ID is.
Also, do you have a sample project you could share that reproduces the problem?
Best regards,
Karina Mokleva
The RubyMine team
Upload id: 2024_09_16_oGzz5SXv8vc24c68aDtHUu (file: rubymine-logs-20240916-174807.zip)
Thanks!
Unfortunately, it is still not clear what the problem is. I've created an issue in our tracker for the investigation. Please follow it here.
Best regards,
Karina Mokleva
The RubyMine team