This is reposting issue 2 from #16.
Trying to start the debugger triggers these errors.
[TypeError] no implicit conversion of nil into String
<internal:C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in `require'
<internal:C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in `require'
C:/Webserver/git/banking-import/noop.rb:1:in `<top (required)>'
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/readapt-2.0.0/lib/readapt/debugger.rb:66:in `load'
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/readapt-2.0.0/lib/readapt/debugger.rb:66:in `block (2 levels) in start'
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/readapt-2.0.0/lib/re
I happen to be debugging a selenium test, which runs fine in Ruby directly (the thing I am troubleshooting connects to a DOM change in what I'm running against), but triggers this error when I try to run through Eclipse/SolarGraph/Readapt, meaning I don't get any interactive debugging.
The fault reproduces with this trivial rb file. Runs cleanly with 100% passed when run directly, but produces the error when run through solargraph/readapt
require "test/unit"
class Noop < Test::Unit::TestCase
def setup
end
def teardown
end
def test_main
end
end
It is not helped by the fact one of the messages gets truncated. There seems to be some kind of 355 character limit in the "output" lines. Eventually I found the Solargraph "Troubleshoot Readapt debugger by enabling adapter logs" checkbox. Hard to work out where this was going to put log messages, but eventually found the debug adapter logs had turned into JSON rather than raw text. But there's no real extra content:
Content-Length: 344
{"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"supportsConfigurationDoneRequest":true,"exceptionBreakpointFilters":[{"filter":"raise","label":"Break on raised exceptions","description":"The debugger will break when an exception is raised, regardless of whether it is subsequently rescued.","default":false}]}}Content-Length: 38
{"type":"event","event":"initialized"}Content-Length: 79
{"type":"response","request_seq":2,"success":true,"command":"launch","body":{}}Content-Length: 90
{"type":"response","request_seq":3,"success":true,"command":"configurationDone","body":{}}Content-Length: 108
{"type":"event","event":"process","body":{"name":""}}Content-Length: 74
{"type":"event","event":"thread","body":{"reason":"started","threadId":1}}Content-Length: 74
{"type":"event","event":"thread","body":{"reason":"started","threadId":1}}Content-Length: 129
{"type":"event","event":"output","body":{"output":"[TypeError] no implicit conversion of nil into String\n","category":"stderr"}}Content-Length: 331
{"type":"event","event":"output","body":{"output":"internal:C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb:127:in require'\n<internal:C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:127:in require'\n:2:in `<top (require","category":"stderr"}}Content-Length: 333
I've been using these extensions without too much trouble for years (9?!?), and have very much appreciated them, so am sad they have now broken, and am hopeful repair isn't too difficult?