I experience this issue when I load a namespace that directly or indirectly refers to tick.core: > Dependency cycle: > tick.core -> tick.file -> tick.core I picked up Clojure project after a while and nothing changed other then Idea version and Cursive I suppose. Any idea how to overcome this?
Here is the sample repo showing the problem: https://github.com/rynkowsg/repro-cursive-issue-3026 With building this sample repo I found two new observations: • I can not run "Load File in REPL", but I can take all the code in the namespace and send it to REPL • The dependency cycle actually does exist. Not in tick/tick 1.0, but in tick/tick 0.4.23-alpha provided as a dependency for wing/wing 0.1.4 I was using. It looks Cursive does some dependency resolution during "Load...", but not the same way as the Clojure does.
It looks this issue affects the latest Cursive 2025.1. I tested it against Idea 2024.3.5 (with Cursive 2025.1-243) and Idea 2025.1 (with Cursive 2025.1-251). In both cases I had same issue. The problem disappeared when I downgraded Cursive to 1.14.0-2024.3 on Idea 2024.3.5. No issue in Cursive 1.14.0-2024.3.
Which version of tick are you using? I just tried this with 1.0 and I can't reproduce it. There don't seem to be any references from tick.file back to tick.core, looking at the source.
@grzegorz.rynkowski I'm curious, does rebuilding your indexes (File | Invalidate Caches, restart) fix this? Several people are reporting problems along these lines, and I can't reproduce any of them. I'm wondering if some sort of index corruption after the upgrade is to blame.
Tried that initially. I'll prepare tomorrow a repo demonstrating the problem, plus I'll also test it on Mac
Thanks, I appreciate it
@cfleming A few more details: • I tested it on two notebooks. One running Fedora 39 and other Fedora 38. • On both machines I use IntelliJ IDEA Ultimate • I run the project on Java Corretto 19.0.2.7.1 • Initially I had in the repo tick 0.7.5 and Clojure 1.11.1, but also tested with tick 1.0 and Clojure 1.11.3 - same result. The version of tick and Clojure didn't seem to matter. • I use deps.edn Tested Idea/Cursive combinations: • Idea 2025.1 with Cursive 2025.1-251, it doesn't work • Idea 2024.3.5 with Cursive 1.14.0-2024.3, work fine 👍 • Idea 2024.3.5 with Cursive 2025.1-243, it doesn't work If there are some logs that helps, let me know where to find them and I will post them here.