-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Go to definition sometimes works for Java sources #1436
Comments
This feature doesn't work for me either. To be clear, I think it only should work with a repl connection, and not via clojure-lsp. Is that right @ericdallo? I did some brief investigating and found I have a I've never really needed this feature, so I've never looked much into making it work. Maybe someone else can provide us more info here. I'll post in the Slack channel. |
Related information, just to centralize the info here: clojure-emacs/orchard#103 (comment). |
I am on v2.0.231 and these things are working for me with a REPL connected:
(The hashmap bit will work, when we go to definition for
|
It mostly just works for me. (I'm using In this comment: clojure-emacs/cider#2819 (comment) @vemv points out a way to stablize at least the working things. (I am not sure if that
I am not sure yet how to use enrich-classpath from a deps.edn or shadow-cljs project, but we can probably figure that out. We should be able to add an option to Calva that makes it do these things. |
Good timing! Last weekend I released enrich-classpath 1.5.0. It now includes the JDK sources so this does not apply anymore:
We have it pending to cut new Orchard + cider-nrepl releases. If Calva uses them, it should upgrade those.
That is drafted at clojure-emacs/enrich-classpath#8 . There might be also alternative ways to accomplish this. In the end enrich-classpath is a vanilla library (not Lein plugin) which main defn takes a map in, and returns a map out: https://github.com/clojure-emacs/enrich-classpath/blob/c0dcc2c1b32184d152e05672f9b5fade9ef41837/src/cider/enrich_classpath.clj#L266 I also made a comment about that PR today here: https://app.slack.com/client/T03RZGPFR/C6QH853H8 |
Thanks! Calva uses cider-nrepl, is there a dev version we can test? |
cider-nrepl 0.27.4 is out, which transitively also upgrades Orchard. (enrich-classpath is not part of these dependencies: one needs to "enrich" the classpath caller-side, it's not something that can be self-contained) |
This has stopped working for me entirely since a while. No idea what is going on. |
It's a calva bug I'm not sure how to solve as well, looks related with custom calva code that handle jar openening |
Let me re-phrase: go to definition for java sources never worked on clojure-lsp, only via REPL, clojure-lsp don't have this go to java source yet. |
I'll open a new issue since this one seems related with java sources |
It’s the strangest thing, it just worked for two things, then I wanted to check my calva version, went back to the file, and its broke for everything again, without a reload.
Lsp logs don't show any problems.
After reloading with calva 2.0.230 System works again while the rest is broken.
The text was updated successfully, but these errors were encountered: