Fork me on GitHub
#calva
<
2022-03-28
>
borkdude07:03:36

Use #clojure-lsp-builds nightly for this to work

pez08:03:16

Fantastic! Thanks so much for this work, @U04V15CAJ and @UKFSJSM38! gratitude ❤️ 🙏

💜 1
leifericf16:03:11

That’s amazing! Does it also work for arbitrary 3rd party Java libraries pulled from Maven?

borkdude16:03:36

@U01PE7630AC Try it with #clojure-lsp-builds :)

👍 1
leifericf16:03:24

Awesome! Thanks so much for this. I was looking for something exactly like this a few weeks ago, when I was struggling with Google’s API Client for Java.

borkdude16:03:06

@U01PE7630AC Right now it only works when you :import a class and then use it but I'll fix the rest in the coming week

🙌 1
leifericf16:03:18

Here’s the thread I was referring to by the way, where we wound up chatting about reflection, etc. https://clojurians.slack.com/archives/C053AK3F9/p1647546059258699?thread_ts=1647531377.941159&amp;cid=C053AK3F9

phill16:03:24

My Calva updated itself, and when I tried to jack-in I got a prompt to choose among about 10 project.clj's. a) The menu was narrower than the ~10 filenames, so I could not distinguish the options. b) The directory I opened has 1 project.clj, right there. It also contains a "checkouts" directory, a Leiningen feature where you symlink the dependencies in order for Lein to use their working dir in the classpath instead of putting a jar in the classpath. I suspect Calva picked up all the symlinked projects' project.clj. In a true monorepo, these won't be symlinks. Could Calva not follow symlinks when hunting for project.clj?

pez16:03:51

We can try. Please file an issue about it.

pez16:03:41

Please also file an issue about the menu being too narrow. I realize you might not want to share a screenshot, but you can just describe it. Or if you want to gain golden stars in heaven (as we say in Swedish) you can create a project scenario with fake paths that illustrate it, as a public repo. This one will be tricky to fix, but again, we can try!

pez16:03:13

@U02EMBDU2JU, time for your suggestion with predefined search results, maybe! 😃

Lukas Domagala16:03:16

Yeah, not the usecase I was thinking of but it would solve the problem 🙂

pez09:03:55

Seeing this issue https://github.com/BetterThanTomorrow/calva/issues/1643 I just realized that this can probably be handled by adding an exclusion for checkouts. See https://calva.io/connect/#monorepos-multiple-clojure-projects-in-one-workspace