-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "Keyword argument :label not one of (:key :children :child-type)" when enabling dap-mode #825
Comments
Me two. dap-mode 0.8 works! I also get: internal-macroexpand-for-load: Eager macro-expansion skipped due to cycle:
|
I don't use dap-mode/dap-ui but lsp-mode calls dap by default so I got this error too. Looks like the use of modified dap-ui.el
@@ -1170,7 +1170,7 @@ request."
(dap-ui--sources-group-by-map #'cl-first #'cl-rest)
(-sort 'dap-ui--compare-source)))))))
-(treemacs-define-variadic-entry-node-type dap-loaded-sources
+(treemacs-define-expandable-node-type dap-loaded-sources
:key 'DAP-Loaded-Sources
:label (propertize "DAP-Loaded-Sources" 'face 'font-lock-keyword-face)
:open-icon (dap-ui--calculate-sources-icon item t) This change was introduced a couple of weeks ago #824, perhaps the author of the change @timfel could help. |
No, |
It's possible the treemacs version is too old |
Not for me! I'm on latest treemacs as well.
|
@Gleek could you try this change? @@ -1172,12 +1172,8 @@ request."
(treemacs-define-variadic-entry-node-type dap-loaded-sources
:key 'DAP-Loaded-Sources
- :label (propertize "DAP-Loaded-Sources" 'face 'font-lock-keyword-face)
- :open-icon (dap-ui--calculate-sources-icon item t)
- :closed-icon (dap-ui--calculate-sources-icon item nil)
:children (dap-ui--loaded-sources-root)
- :child-type 'dap-loaded-sources-node
- :more-properties `(:pth ,item))
+ :child-type 'dap-loaded-sources-node)
(treemacs-define-expandable-node-type dap-loaded-sources-node
:open-icon (dap-ui--calculate-sources-icon item t) |
@timfel this solves it. The error doesn't happen. |
Would you like to open a PR? :-) |
With these exact changes? Here you go: #829 |
Following is the stack trace I get whenever I'm enabling dap-mode
M-x lsp-version
LSP :: lsp-mode 20240422.334, Emacs 30.0.93, darwin
I'm on the current master branch of dap-mode
The text was updated successfully, but these errors were encountered: