On Wednesday, 19 April 2023 at 10:35:31 UTC, Per Nordlöw wrote:
I believe this should work

```elisp
(defun serve-d-command ()
  "Shell command to start serve-d."
  '("dub" "run" "--vquiet" "serve-d"))

(when (require 'lsp nil t)
  (dolist (mode '(d-mode d-ts-mode))
        (add-hook mode #'lsp)
        (add-to-list 'lsp-language-id-configuration `(,mode . "d")))
  (lsp-register-client
   (make-lsp-client
    :new-connection (lsp-stdio-connection #'serve-d-command)
    :major-modes '(d-mode d-ts-mode)
    :server-id 'serve-d)))
```

but unfortunately I get status disconncted in the mode-line and the call to dub run shuts down. Clues anyone?

How do I most easily get the debug output from

```
'("dub" "run" "--vquiet" "serve-d")
```

?

Reply via email to