cursive

Daniel Shriki 2025-02-02T09:55:37.932679Z

Hi all! I am writing clojure on Intellij using cursive plugin, and just moved to macos recently. I defined a macro using defmacro. this macro is doing a functionality which is similar to defn, but intellij doesn't recognize this macro when its being used and yield "unrecognized symbol" with red mark. I've added a symbol resolution and it didn't help. I tried to restart/invalidate cache, ect, and it didn't help ether. (when I used ubuntu- those steps was sufficient) The code would probably run from repl/terminal, ect. but the only issue is intellij's compiler that yield with a red line. Anyone has an idea? Thanks!

2025-02-02T13:52:07.315389Z

Who decides when indexing happens? Is that Cursive or Intellij? I'm starting to really hit performance issues with the editor and it would be good to know if this is coming from the plugin or editor 😃...

2025-02-02T13:54:55.664639Z

There seems to be a lot of wait for indexing to happen before anything can happen, including delay ui rendering + keypresses at times, and I'm wondering where the assumption is that indexing is fast, because from what I can tell indexing is really really slow (this could be just because of how much project data I have) This seems to result in a lot of out of sync ui, pauses waiting for ui to load, waiting for keypresses to register... Some of this might also be related and connected to stubs not being generated correctly...

Dustin Getz (Hyperfiddle) 2025-02-02T13:55:53.328939Z

idea 2024.3 on apple silicon has outrageous performance degredation (e.g. multiple second gc pauses while typing), i downgraded to 2024.1 which also has really bad performance degredation but on the order of 100ms not 3000ms so i can get by

Dustin Getz (Hyperfiddle) 2025-02-02T13:56:40.511169Z

i'm on Macos Sonoma 14.7.1 (23H222), have not tried upgrading yet

Dustin Getz (Hyperfiddle) 2025-02-02T13:58:33.521639Z

honestly, running IDEA remotely on a cloud linux box may be a superior solution that i just thought of

2025-02-02T13:59:15.818729Z

Ok wow, that's just crazy... Are you aware if jetbrains is looking into this?

Dustin Getz (Hyperfiddle) 2025-02-02T14:00:18.578559Z

i dont recall

2025-02-02T14:03:31.466299Z

Hmm, ok, going to try the EAP, see if they're doing anything in the latest version, at least I can load a big project in there and see if it's just as bad there... Would be good to get colin's view as well, every time I've ever spoken to jetbrains, the second they know a plugin is involved they throw their hands up and blame the plugin... It would be good to be able to actually fix this, as it's really starting to affect productivity 😃...

2025-02-02T14:08:02.140649Z

Ok, looks like it's unsupported...

Plugin 'Cursive' (version '1.14.1-eap1-2024.3') is not compatible with the current version of the IDE, because it requires build 243.* or older but the current build is IU-251.18673.35

2025-02-02T14:11:07.359679Z

Let's try 2024.1 as you suggested 😃...

2025-02-02T14:14:41.940799Z

Ok, I can't run the different plugin versions side by side...

cfleming 2025-02-02T18:29:51.042749Z

Yes, there have been performance issues with recent versions, I believe it's due to the JDK which they updated in 2024.2. If you have a time when the performance is bad, if you can capture a CPU snapshot and send it to me that would be useful: Help | Diagnostic Tools | Start/Stop CPU usage profiling.

2025-02-02T18:32:18.874859Z

Oh it's bad right now, so give me a sec

2025-02-02T18:32:52.575529Z

I've had IndexNotReadyException sitting there for the past 2 hours xD...

2025-02-02T18:33:12.316349Z

It's still indexing

cfleming 2025-02-02T18:36:05.206419Z

In that case, is sounds like the indexes have become corrupted - I'd suggest File | Invalidate Caches...

2025-02-02T18:36:45.495919Z

Agreed, however it seems to happen fairly regularly at this point

onetom 2025-02-03T09:16:06.689159Z

i think it's still unclear what exactly causes these performance issues, because on our M1 & M2 Pro machines with Sequoia 15.2 (24C101), IntelliJ IDEA 2024.3.2.1 Build #IU-243.23654.153, built on January 23, 2025, Cursive 1.14.1-eap1-2024.3 we are not seeing any issues.

👍🏽 1
👀 1
manas_marthi 2025-02-03T10:12:14.229489Z

Can multiple versions of cursive plugin be available in the market place which are compatible with say last 3 or 5 versions of IntelliJ

onetom 2025-02-03T14:26:48.641489Z

@manas.marthi but there are many versions available in 3 different channels Stable / Dev / EAP, eg https://plugins.jetbrains.com/plugin/8090-cursive/versions/eap

Dustin Getz (Hyperfiddle) 2025-02-06T12:51:40.250509Z

@cfleming I cannot find the Start/Stop CPU Usage Profiling option, please advise. Screenshots are 2025.1 EAP

😲 1
2025-02-06T13:22:12.550849Z

Wait is cursive running @dustingetz? It was disabled on mine...

Dustin Getz (Hyperfiddle) 2025-02-06T13:44:05.622099Z

Yes cursive is running, here is a screenshot including clojure highlighting as proof

😍 1