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

Error list keeps showing old cached results after the first render #155

Open
setzer22 opened this issue Feb 20, 2023 · 5 comments
Open

Error list keeps showing old cached results after the first render #155

setzer22 opened this issue Feb 20, 2023 · 5 comments

Comments

@setzer22
Copy link

setzer22 commented Feb 20, 2023

I've updated my emacs packages, and I noticed this issue. It seems to be related (or identical) to #149, but I've been able to reproduce this in other language servers I use (clojure and rust), which leads me to believe it is a general issue with lsp-treemacs itself, and not something that depends on the language.

The problem is the following: When I open a project, LSP diagnostics work okay in the buffer, and the first time I launch lsp-treemacs-error-list, I see the correct output. If I then make any changes to my LSP setup, lsp-treemacs-error-list keeps showing the old errors indefinitely. I haven't found a way to make it refresh the contents other than restarting emacs.

This is a quick screen recording of my interaction:
emacs_bug

I was able to successfully bisect the issue to the following commit: e668656

Unfortunately, the commit is large enough that I cannot continue debugging without a better understanding of the codebase. This seems to be a caching issue, and the fact there's multiple references to caches in the commit source makes me believe that is the case.

@zoechi
Copy link

zoechi commented Mar 2, 2023

Same issue working with Rust

@shapr
Copy link

shapr commented Apr 4, 2023

Same issue with Haskell

@SreenivasVRao
Copy link

SreenivasVRao commented Apr 6, 2023

Same with lsp-java and lsp-treemacs-references.

@yyoncho
Copy link
Member

yyoncho commented Apr 6, 2023

Unable to repro. Can you verify that it does not work with M-x lsp-start-plain?

@SreenivasVRao
Copy link

(updated my comment to mention lsp-treemacs-references which was causing problems on DOOM emacs.)

M-x lsp-start-plain works fine. thanks for the tip @yyoncho - wasn't aware of this one before. Unsure what's causing this then.

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

5 participants