emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.81k stars 892 forks source link

"0 references" on a big Clojure project (clojure-lsp) #4615

Open Nycta-b424b3c7 opened 1 week ago

Nycta-b424b3c7 commented 1 week ago

Thank you for the bug report

Bug description

Whenever I open a file in a big project (~500 files, ~100k lines) it doesn't find references to symbol, if those references are from some other file, until I open that other file.

Steps to reproduce

  1. Get a big Clojure project
  2. Open a Clojure file containing symbols referenced from other files
  3. Give it a minute or two
  4. It still shows "0 references"

Expected behavior

It shows correct references regardless of whether I had other files previously open or not.

Which Language Server did you use?

clojure-lsp 2024.11.08-17.49.29

OS

MacOS

Error callstack

No response

Anything else?

It works correctly in other editors if you give it a few minutes.