mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08: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:
parent
2542f7838f
commit
87d572ac58
1 changed files with 7 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue