Fork me on GitHub
#conjure
<
2021-12-06
>
Yehonathan Sharvit07:12:25

Is it possible to go to symbol definitions inside a jar. Use case: 1. In my code base I have: (defn foo [] (bar)) 2. bar comes from a 3rd party dep: (defn bar [] (baz)) 3. Is there a way to go to baz definition?

mynomoto14:12:56

<localleader>gd should do it

Yehonathan Sharvit10:12:19

Oh you mean to find the symbol through nrepl. Right?

Yehonathan Sharvit10:12:44

Do I need to launch the REPl with nrepl and cider-repl? Could you share a lein command line?

mynomoto11:12:51

Afaik lein has nrepl built in so lein repl should work.

mynomoto11:12:48

I don't think cider is necessary, I have not used lein in ages to be honest. But if necessary you can include it like this https://github.com/technomancy/leiningen/blob/c4e3aad27bb267bba11e5330119afc03a6d36719/sample.project.clj#L191

Yehonathan Sharvit14:12:13

I tried and something weird happens. When I do <localleader>gd it tries to open a file named

~/prj/zipfile:/home/viebel/.m2/repository/metosin/malli/0.6.2/malli-0.6.2.jar::malli/core.cljc

Yehonathan Sharvit14:12:03

Of course it fails

mynomoto14:12:13

This is a bug on conjure probably. As people started to use clojure-lsp it probably went unnoticed.

mynomoto14:12:37

I did reproduce on my machine.

mynomoto14:12:11

There is a thread on #vim about this issue. That was a change on vim 😱

mynomoto14:12:02

If you get the latest conjure it should be fixed 🎉