👋 Hey. In one of my projects I need to use deftrace instead of defn for several functions. My problem is that now it is not being properly recognized as var by the IDE. I know that there is a symbol resolution setting, but it is disabled and I can't add the proper macro mapping there. Any ideas how to resolve this problem? Thanks!
Yep. It is from clojure.tools.trace. I've added it to the project's deps.edn file via: org.clojure/tools.trace {:mvn/version "0.8.0"}
Is the deftrace itself being resolved correctly? Can you Cmd/Ctrl-click on deftrace to go to its source, or get documentation for it?
Also check that the intention at Settings | Editor | Intentions | Clojure | Resolution is enabled.
Yes, deftrace is resolved, and I can go to its source. The intention is enabled as well.
Is deftrace from a public library I can take a look at?
does anybody know what would make IntelliJ lockup immediately when starting a repl? This is only happening in 1 of my projects. Others work ok. This one worked fine yesterday. In the IntelliJ log file, get a bunch of
2025-10-09 16:09:13,886 [ 143257] INFO - STDOUT - Do not use URL connection as JarURLConnection
and then
2025-10-09 16:09:14,112 [ 143483] INFO - #cursive.repl.nrepl - Started nREPL ack server on port 61519
2025-10-09 16:09:14,187 [ 143558] INFO - #c.i.p.i.s.IjentSessionMediator - IjentId(ijent-0-wsl-Ubuntu) log: ijent_service::processes: error=(2, "No such file or directory (os error 2)")
that last one seems strange as this project is not a wsl projectDo you get any automatically generated thread dumps? https://intellij-support.jetbrains.com/hc/en-us/articles/206544899-How-to-get-a-thread-dump-when-IDE-hangs-and-doesn-t-respond. Please send them to me if you do and I'll take a look.
Not seeing anything named threadDumps in the log directory
I don't think the second log is anything to do with Cursive, unless something Cursive is doing is prompting IntelliJ to do something with that.
When you say lock up, do you mean the whole UI locks?
When I successfully do the remote repl, I get the exact same error messages that I pasted so I don't think those likely have anything to do with it locking up. Yes the whole UI locks. I can't do anything with it including moving the window or closing it. I have to bring up Task Manager and kill it. It does show it still using a little bit of cpu in Task Manager but not much. And nothing gets written to the log. There are open-telemetry-meters logs that seem to continue to be written to
When it locks up like that, can you get a thread dump from the command line, using the commands from that doc?
It's just bizarre because this was working yesterday. I did upgrade to IntelliJ 2025.2.3 yesterday from 2025.1.3 but it was working after that upgrade. I downgraded today and then upgraded to 2025.1.6 just to see if that would fix it but it didn't
I did that. Want me to look for something specific or just upload the file?
Just send it via DM here or to <mailto:cursive@cursive-ide.com|cursive@cursive-ide.com> - I'll take a look later on.
starting a repl from the command-line then connecting to it via IntelliJ is working so guess I'll just go with that for now.