mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-10 15:33:36 -05:00
fix(debugger): 'wrong-type-argument json-value-p dape-cwd'
In cases where projectile-project-root returns `nil`, the `dap-cwd` in dape configs isn't resolved.
This commit is contained in:
@@ -27,7 +27,13 @@
|
||||
(set-debug-variable! 'dape-debug t)
|
||||
(setq dape-buffer-window-arrangement 'right
|
||||
dape-inlay-hints t
|
||||
dape-cwd-function #'projectile-project-root)
|
||||
dape-cwd-function #'+debugger-dape-cwd-function-fn)
|
||||
|
||||
;; REVIEW: Remove when projectile is replaced with project.el
|
||||
(defun +debugger-dape-cwd-function-fn ()
|
||||
(or (let (projectile-require-project-root)
|
||||
(projectile-project-root))
|
||||
(dape--default-cwd)))
|
||||
|
||||
;; Mode-line serves no purpose in REPL window.
|
||||
(add-hook 'dape-repl-mode-hook #'hide-mode-line-mode)
|
||||
|
Reference in New Issue
Block a user