-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Calva shows two hover definitions for user-defined vars when a repl is connected #2091
Comments
I know this happens when there are two LSP clients running that are both governing the same file. Can you confirm if this is the case for your project, or are you sure this is a result of the REPL connection? |
We have some checks for if the REPL has an answer there, iirc. So it could be (my guess it is) to do with several lsp servers serving the same file, and be triggered when there is a REPL connection. |
I've verified that there's only one clojure-lsp process running when I see the double hover entries. Also, clojure-lsp hover entries include the file path, and the repl ones don't. There's one of each, as you can see in the image. |
Another thing to note is the difference in doc strings in the original image. I just did another test to verify that one entry is from the repl. I added content to the doc string, evaluated the function, then removed the content without evaluating the function again. The repl entry still shows the evaluated version of the doc string (bottom), but clojure-lsp shows the current version in the file (top), as expected. |
It doesn't seem like this happens for core functions.
I haven't yet tried previous Calva versions.
The text was updated successfully, but these errors were encountered: