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

dap-debug open-network-stream: Wrong type argument: stringp, nil

Open eb245 opened this issue 3 years ago • 0 comments

I'm having the same problem as bugs #7 and #31. This is the backtrace:

Debugger entered--Lisp error: (wrong-type-argument stringp nil) make-network-process(:name "localhost(9222)" :buffer nil :host "localhost" :service nil :nowait nil :tls-parameters nil) open-network-stream("localhost(9222)" nil "localhost" nil :type plain :coding no-conversion) dap--open-network-stream("localhost(9222)" "localhost" nil) dap--create-session((:type "java" :request "attach" :hostName "localhost" :port 9222 :host "localhost" :name "localhost(9222)" :debugServer nil :__sessionId "1623257025.4380374")) dap-start-debugging((:type "java" :request "attach" :hostName "localhost" :port 9222 :host "localhost" :name "localhost(9222)" :debugServer nil :__sessionId "1623257025.4380374")) dap-debug((:type "java" :request "attach" :hostName "localhost" :port 9222 :host "localhost" :name "localhost(9222)" :debugServer nil :__sessionId "1623257025.4380374")) funcall-interactively(dap-debug (:type "java" :request "attach" :hostName "localhost" :port 9222 :host "localhost" :name "localhost(9222)" :debugServer nil :__sessionId "1623257025.4380374")) call-interactively(dap-debug record nil) command-execute(dap-debug record) execute-extended-command(nil "dap-debug" nil) funcall-interactively(execute-extended-command nil "dap-debug" nil) call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command)

I did try to delete lsp-java-server-install-dir and then call lsp-install-server, but it didn't help. The install log output was

  • [email protected] added 23 packages from 10 contributors in 2.587s npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: use String.prototype.padStart() /home/eblack/.emacs.d/.cache/lsp/npm/bash-language-server/bin/bash-language-server -> /home/eblack/.emacs.d/.cache/lsp/npm/bash-language-server/lib/node_modules/bash-language-server/bin/main.js
  • [email protected] added 115 packages from 220 contributors in 4.378s /home/eblack/.emacs.d/.cache/lsp/npm/vscode-css-languageserver-bin/bin/css-languageserver -> /home/eblack/.emacs.d/.cache/lsp/npm/vscode-css-languageserver-bin/lib/node_modules/vscode-css-languageserver-bin/cssServerMain.js
  • [email protected] added 9 packages from 3 contributors in 1.424s

lsp-java-bundles is set to nil. Any help would be appreciated.

eb245 avatar Jun 09 '21 17:06 eb245