Skip to content
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

lsp-treemacs-cycle-severity disables minor mode #176

Open
goldfita opened this issue Feb 18, 2025 · 0 comments
Open

lsp-treemacs-cycle-severity disables minor mode #176

goldfita opened this issue Feb 18, 2025 · 0 comments

Comments

@goldfita
Copy link

When you run lsp-treemacs-cycle-severity, it disables lsp-treemacs-error-list-mode. Because treemacs and lsp-treemacs both bind to the = key, once the minor mode is disabled, treemacs tries to change the error list window width. I tracked this down to treemacs changing to special-mode. I cut some stuff out of the backtrace to keep it short.

* special-mode()
* #<subr treemacs-mode>()
* apply(#<subr treemacs-mode> nil)
* (cond (treemacs--in-this-buffer (apply mode-activation args)) ((eq major-mode 'treemacs-mode) 
* #f(lambda (mode-activation &rest args) [t] ... (#<subr treemacs-mode>)
* apply(#f(lambda (mode-activation &rest args) [t] "... #<subr treemacs-mode>)
* treemacs--mode-check-advice(#<subr treemacs-mode>)
  apply(treemacs--mode-check-advice #<subr treemacs-mode> nil)
  treemacs-mode()
  lsp-treemacs-render(((... (["Cycle Severity" lsp-treemacs-cycle-severity]))
  lsp-treemacs-errors-list--refresh()
  lsp-treemacs-errors-list()
  funcall-interactively(lsp-treemacs-errors-list)

Then to verify it's not some hook I created causing the problem, I started emacs without my init.el, loaded lsp-treemacs, turned on lsp-treemacs-error-list-mode, and then ran special-mode.

Also, probably unrelated, but I get the following error (silently), when I try to use the context menu:

Debugger entered--Lisp error: (wrong-type-argument commandp lsp-treemacs-list-errors-quick-fix)
  call-interactively(lsp-treemacs-list-errors-quick-fix)
  #f(compiled-function () #<bytecode -0x12772c5cc987d17d>)()
  apply(#f(compiled-function () #<bytecode -0x12772c5cc987d17d>) nil)
  timer-event-handler([t 0 0 1000 nil #f(compiled-function () #<bytecode -0x12772c5cc987d17d>) nil idle 0 nil])

Using the 'x' key works, but again, it disables lsp-treemacs-error-list-mode and collapses the error list. I couldn't find lsp-treemacs-list-errors-quick-fix anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant