Closed sschneider-ihre-pvs closed 1 year ago
oh the default path was just off since I am using Lazy.
ok, the debugger_path has problems with windows paths
...\opt\vscode-js-debug\out/src/vsDebugServer.js
mixed / and \
arg different error again :D
How did you solve this issue @sschneider-ihre-pvs ?
I installed js dap server using Mason, located in /home/romain/.local/share/nvim/mason/packages/js-debug-adapter/
.
I'm using Lazy too, what did you ended up with?
Newer versions of the vscode-js-debug seem to have alternate builds.
Mason uses the dapDebugServer build rather than the older vsDebugServer. This means that for versions after 1.76.1 of vscode-js-debug there is no '/out/src/vsDebugServer.js', instead the path is Entrypoint path is now js-debug/src/dapDebugServer.js
I suspect the easiest thing will be to update to allow a configurable entry point relative to the debugger_path.
For now those using mason-dap-nvim to install vscode-js-debug can use version 1.76.1 instead of the latest 1.82
Could it be that this go renamed to just debugServer.js? https://github.com/mxsdev/nvim-dap-vscode-js/blob/b6d247eb0faca30cd01adc84594a6d44d6026abc/lua/dap-vscode-js/utils.lua#L53