Skip to content
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

Dap-Ruby debugger fails, extension moved debug module #206

Open
hatch-carl opened this issue Jan 30, 2020 · 3 comments
Open

Dap-Ruby debugger fails, extension moved debug module #206

hatch-carl opened this issue Jan 30, 2020 · 3 comments

Comments

@hatch-carl
Copy link

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

@yyoncho
Copy link
Member

yyoncho commented Jan 30, 2020

Is changing dap-ruby-debug-program sufficient?

@seagle0128
Copy link

seagle0128 commented Feb 2, 2020

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.

@helpotters
Copy link

helpotters commented Nov 16, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants