dap-mode icon indicating copy to clipboard operation
dap-mode copied to clipboard

Dap-Ruby debugger fails, extension moved debug module

Open hatch-carl opened this issue 4 years ago • 3 comments

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

hatch-carl avatar Jan 30 '20 17:01 hatch-carl

Is changing dap-ruby-debug-program sufficient?

yyoncho avatar Jan 30 '20 17:01 yyoncho

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.

seagle0128 avatar Feb 02 '20 17:02 seagle0128

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)

helpotters avatar Nov 16 '21 20:11 helpotters