emacs-lsp / lsp-treemacs

lsp-mode :heart: treemacs
GNU General Public License v3.0
393 stars 46 forks source link

lsp-treemacs-errors-list just appends to buffer, can't expand nodes #156

Open reimager opened 1 year ago

reimager commented 1 year ago

I have never been able to get lsp-treemacs-errors-list working on my system. It just appends to the buffer and nodes are not clickable. Here is a video to show the issue: https://youtube.com/shorts/1vHD2Ehk5eA

I'm really stumped on this one, and mystified how no one else seems to have this issue. I have it in all configurations.

I have reduced my .emacs to a bare minimum to get lsp up and running:

(require 'package)

(use-package lsp-mode :commands (lsp lsp-deferred) :init :hook (dart-mode . lsp-deferred) :config (setq lsp-dart-flutter-sdk-dir "/home/dmorris/flutter") (setq lsp-dart-server-command (list "/home/dmorris/flutter/bin/dart" "/home/dmorris/flutter/bin/cache/dart-sdk/bin/snapshots/analysis_server.dart.snapshot" "--lsp" "--client-id emacs.lsp-dart")))

(use-package dart-mode) (use-package lsp-dart) (use-package lsp-treemacs)

I'm running emacs 28.2, last official release. I have tried emacs 29 also - same issue.

Here is the output of lsp-doctor: Checking for Native JSON support: OK Check emacs supportsread-process-output-max': OK Check read-process-output-max' default has been changed from 4k: OK Byte compiled against Native JSON (recompile lsp-mode if failing when Native JSON available): OK gc-cons-threshold' increased?: OK Using gccemacs with emacs lisp native compilation (https://akrl.sdf.org/gccemacs.html): OK `

Edit: If I open 'treemacs-select-window' a treemacs file browsing window open and seems fully function with icons. I can click on directories to expand them etc. Everything appears to be working.

Edit: if anyone else does have this issue, I have just been using lsp-ui-flycheck-list as a substitute

jasagredo commented 1 year ago

I'm having exactly the same issue. And I see the same error messages in the message line:

[Treemacs] This function cannot expand a node of type 'treemacs-generic-closed-state'.
[Treemacs] No RET action defined for node of type treemacs-generic-open-state.
david-alvarez-rosa commented 7 months ago

Same here.

LemonBreezes commented 4 months ago

Same.