-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Hover broken when repl is connected but cider-nrelp is not present #1432
Comments
Thanks for the report! In the case you describe above (although without using a container, and I don't think that's relevant now), I think the exception is happening because while there may be a connection to a cljs repl, there's no connected runtime (no browser running the app - evaluating code in the repl doesn't work). We should catch the exception there and return |
Ah, actually it seems the exception occurs because your repl doesn't include npx shadow-cljs -d cider/cider-nrepl:0.26.0 watch :app We still need to handle the exception though for the case when |
This is the error that occurs when |
A fix for the case of not using cider-nrepl will be in the next release. For now, you can use the command mentioned above to keep hovers working after connecting to the repl (and you may want to use that command anyway). |
Duh, I should have thought of trying the standard jack-in to arrive at a diagnosis... :) Thank you for the prompt response and for the PR, amazing! For anyone reading this issue in the future that like me needs to start the repl manually, I just discovered that there is a "Calva: Copy Jack-In Command to Clipboard" command to generate the line above from @bpringe (useful in case more dependencies are added, or if you use a different "project type"). |
You're welcome! The change is out now as of 2.0.230. |
Hi,
It appears that the hover functionality (formally "Show Hover" and "Show Definition Preview Hover" actions in vscode) is broken in some circumstances (for me at least).
I have made a repo where I can reproduce the issue.
My vscode version:
1.62.3 ccbaa2d27e38e5afa3e5c21c1c7bef4657064247 x64
How to reproduce
aside: I am not sure if devcontainers are necessary to trigger the issue, but this is the only way that I'm able to test as I use
nix in this setup and am not yet able to get calva to recognize the appropriate
clojure-lsp
.clojure-lsp
to download and initializesrc/main/core.cljs
defn
shows the docs fordefn
)npx shadow-cljs watch app
shadow-cljs
> suggested port >:app
Thanks for looking into this! I hope to have not overlooked any of the docs or already open issues.
Addendum: "Clojure language client" output pane transcript
These have been obtained by triggering the Hover action over the
defn
symbolTranscript when working
Transcript when broken
The text was updated successfully, but these errors were encountered: