-
Notifications
You must be signed in to change notification settings - Fork 183
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
Eager macro-expansion failure: (wrong-number-of-arguments (1 . 1) 0) when (require 'dap-ui) #120 #673
Comments
Please test with |
Looks similar to emacs-lsp/lsp-metals#81. I think the issue is from the upstream I have reported the issue in Alexander-Miller/treemacs#982. |
I can reproduce use following minimum: (require 'dap-mouse)
(require 'dapui) Both of them required to output this error, although, treemacs really in the load path, it many be load automatically. |
I can't reproduce it if |
Do you have |
No, i use newest master of lsp-mode and dap-mode, none of them exists |
I don't think requiring it will cause the
The error should come from this line Line 150 in 2cb49bb
It's the same bug I have posted in the previous #673 (comment). |
Please, forgive me if I missed something, but shouldn't the code of |
@bertulli yes, it should. I will comment it out for now. |
Thanks! Just a minor suggestion: it appears ;; lsp-treemacs/lsp-treemacs-generic.el
(defvar treemacs-feature-list '()
"List of `':key's given to `'treemacs-define-variadic-entry-node-type'.")
(treemacs-define-variadic-entry-node-type lsp-treemacs-generic-root
:key 'lsp-treemacs-generic-root
:children lsp-treemacs-tree
:child-type 'lsp-treemacs-generic-node)
(add-to-list 'treemacs-feature-list 'lsp-treemacs-generic-root)
;; dap-mode/dapui.el
;;;###autoload
(defun dapui-loaded-sources ()
(interactive)
(let* ((buffer (get-buffer-create "*DAP Loaded Sources*"))
(window (display-buffer-in-side-window buffer nil)))
(select-window window)
(set-window-dedicated-p window t)
(mapc #'treemacs-initialize treemacs-feature-list)
(setq-local treemacs-default-visit-action 'treemacs-RET-action)
(treemacs-DAP-LOADED-SOURCES-extension)
(add-hook 'dap-terminated-hook 'dapui-sources-refresh)
(add-hook 'dap-session-changed-hook 'dapui-sources-refresh)
(add-hook 'dap-loaded-sources-changed-hook 'dapui-sources-refresh)
(add-hook 'kill-buffer-hook 'dapui--cleanup-sources-hook nil t))) I am little more than a beginner, so please tak this salt-grained, but it seems to work on my machine (maybe?). Please also note that |
I just commented the source of dapui.el. @bertulli it is not that simple, we should rework the extension code to use lsp-treemacs-generic it is structured in different way. |
Got it, thank you! 🙏 |
This is not a error, just a warning when start emacs daemon.
Thanks
The text was updated successfully, but these errors were encountered: