This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-05
Channels
- # adventofcode (89)
- # announcements (9)
- # babashka (11)
- # beginners (8)
- # biff (5)
- # calva (4)
- # cherry (121)
- # clara (15)
- # clerk (16)
- # clj-kondo (20)
- # clj-otel (2)
- # cljdoc (20)
- # clojure (84)
- # clojure-austin (1)
- # clojure-bay-area (3)
- # clojure-berlin (1)
- # clojure-czech (2)
- # clojure-europe (59)
- # clojure-nl (1)
- # clojure-norway (12)
- # clojure-poland (1)
- # clojure-uk (15)
- # cursive (16)
- # datomic (46)
- # events (3)
- # fulcro (85)
- # graalvm (20)
- # hyperfiddle (11)
- # improve-getting-started (1)
- # lsp (7)
- # off-topic (48)
- # overtone (8)
- # podcasts-discuss (4)
- # re-frame (31)
- # releases (1)
- # ring (12)
- # sci (13)
- # shadow-cljs (8)
- # specter (3)
- # squint (26)
- # xtdb (5)
- # yamlscript (6)
Hi, I'm getting an issue when doing jump to definition/call hierarchy. Sometimes I get directed to an identical version of the namespace under target/classes
. I haven't been able to isolate when it happens with Jump to definition, but each node in the call hierarchy is duplicated - one result for the namespace itself, one result for the same namespace under target/classes
.
The target/classes
directory and namespaces within it don't exist most of the time, it's only when I navigate to such a namespace that the file gets created. As soon as I navigate away it disappears.
I'm using VsCode, and lein, this has been happening for at least the past year. The project is from my work so I can't really post details about it. I haven't been able to reproduce this in another project. I searched for this issue in this channel and found https://clojurians.slack.com/archives/CPABC1H61/p1660633630977769, but it hasn't gotten me any closer to what's going on. Let me know what information you need to diagnose further.
@USRHVLXTQ I fixed this some times with extra settings like source-paths-ignore-regex
but it should works out of the box for target/classes
, if not could you provide a repro? some kind of public repo would help a lot understand the problem if I can repro it
Thanks for getting back to me
I've tried source-paths-ignore-regex
but it didn't work for me
I can maybe try and reproduce it, but I don't have high hopes. This is a big project with a lot of cruft, so there's a lot of potential things that could be causing it
@UKFSJSM38 I had the idea that I might run the lsp in debug mode against my project so I could repl into it and dig more into where the phantom results are coming from, but when I tried following the instructions for development in your documentation the server just hanged. Do you know if it's possible to do this?
(I have tried reproducing it in another project, but no luck so far)