-
Notifications
You must be signed in to change notification settings - Fork 3
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
Can't debug unit tests: No implicit conversion of nil into String #17
Comments
NigelSwinson
changed the title
No implicit conversion of nil into String
Can't debug unit tests: No implicit conversion of nil into String
Mar 21, 2024
Some further testing. If my ruby script is as simple as the following, it works:
But if I change my script to this it fails:
So is it some kind of compatibility fail between readapt and test-unit? Can anyone reproduce this? My gems:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is reposting issue 2 from #16.
Trying to start the debugger triggers these errors.
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
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?
The text was updated successfully, but these errors were encountered: