Hi, I have 2 pain points using calva+lsp, where I'd be happy for any hints at what might be wrong in my installation:
• function docs for clojure core functions or required libs don't show up in the completions when typing (only on mouse hover) docs for functions within the codebase are shown correctly. (going to the function definition works perfectly) I know that the docs were shown some time ago, don't remember exactly when it quit working
• quick-fix suggestions don't work very well for me currently. as an example: i'm using the telemere logging function event! all around the codebase, however, in a namespace where they are not yet used, the quick fix is to create the private function event! . when spelling out the namespace taoensso.telemere/event!it asks to create an alias (instead of the :refer in other namespaces ) it suggests t/event! , even though the alias t already exists in the namespace (in a require within a comment).
Calva version used: v2.0.509
clojure-lsp version used: 2025.05.27-13.56.57
clj-kondo version used: 2025.04.08-SNAPSHOT
I have been looking at the communication traces (lsp<->calva) but could not see anything wrong. there is a logfile 200MB. only error at startup is: ERROR [clojure-lsp.db:90] - [DB] No cache DB file found for /home/***/.cache/clojure-lsp/db.transit.json (this file does not exist). Many thanks!
if find definition works properly I don't see why hover won't work, they rely on same analysis. It sounds like you have a classpath issue, clojure-lsp when starting issue a https://clojure-lsp.io/settings/#classpath-scan, so if that fails, it prompts if you want to start in a "single file mode"
try rm -rf .lsp/.cache and restart LSP so we can make sure it spawns the classpath command and works
it works again, thanks! the solution was to remove the config file in /home/user/.config/clojure-lsp/config.edn i had copied a default config there some time ago 🙏🙏🙏🚀
ah yeah, that makes sense