dap-mode
dap-mode copied to clipboard
Dap-Ruby debugger fails, extension moved debug module
Error: Cannot find module '/Users/carl/.emacs.d/.extension/vscode/rebornix.Ruby/extension/out/debugger/main.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:973:15)
at Function.Module._load (internal/modules/cjs/loader.js:855:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
It appears that the extension author moved main file from .../out/debugger/main.js
to ../dist/debugger/main.js
Is changing dap-ruby-debug-program sufficient?
Same issue here.
~/.emacs.d/.extension/vscode/rebornix.Ruby/extension/out/debugger/main.js
should be ~/.emacs.d/.extension/vscode/rebornix.Ruby/extension/dist/debugger/main.js
now.
Has it been updated again? I think it's under .local now.
I can't see I can't seem to fix the following error relating to these changing file paths.
Warning (emacs): Initialize request failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null
at new NodeError (node:internal/errors:370:5)
at validateString (node:internal/validators:119:11)
at Object.dirname (node:path:1276:5)
at new t.RubyProcess (/home/helpotters/.emacs.d/.local/etc/dap-extension/vscode/rebornix.Ruby/extension/dist/debugger/main.js:1:48937)