cursive

D 2025-10-09T08:47:30.234329Z

👋 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!

D 2025-10-10T08:27:19.064369Z

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"}

cfleming 2025-10-09T21:43:06.815599Z

Is the deftrace itself being resolved correctly? Can you Cmd/Ctrl-click on deftrace to go to its source, or get documentation for it?

cfleming 2025-10-09T21:44:07.392239Z

Also check that the intention at Settings | Editor | Intentions | Clojure | Resolution is enabled.

D 2025-10-10T06:06:31.949299Z

Yes, deftrace is resolved, and I can go to its source. The intention is enabled as well.

cfleming 2025-10-10T06:30:33.235829Z

Is deftrace from a public library I can take a look at?

2025-10-09T21:15:41.136369Z

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 project

cfleming 2025-10-09T21:42:02.609949Z

Do 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.

2025-10-09T21:52:50.315879Z

Not seeing anything named threadDumps in the log directory

cfleming 2025-10-09T22:42:19.550959Z

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.

cfleming 2025-10-09T22:42:43.651139Z

When you say lock up, do you mean the whole UI locks?

2025-10-09T22:45:49.559549Z

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

cfleming 2025-10-09T22:46:39.794979Z

When it locks up like that, can you get a thread dump from the command line, using the commands from that doc?

2025-10-09T22:47:00.787849Z

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

2025-10-09T23:01:19.187529Z

I did that. Want me to look for something specific or just upload the file?

cfleming 2025-10-09T23:02:15.204349Z

Just send it via DM here or to <mailto:cursive@cursive-ide.com|cursive@cursive-ide.com> - I'll take a look later on.

2025-10-09T21:34:21.258669Z

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.