News for hackers. Stuff that matters.
Re:Dear JetBrains, Don't mess with your UI by lars_francke on Tuesday October 18, 2022 @02:16AM (#33243573)
Switch branches? Let's index it all again! Working on a Rust project? Let's index the Go stdlib. It'll be ready in 10-20 min, please hold.

I've been waiting for indexing improvemence for over 10 years, not holding my breath.

Re:Dear JetBrains, Don't mess with your UI by patates on Tuesday October 18, 2022 @02:26AM (#33243655)
You want to run a task from your build tool that has nothing to do with indexing before indexing finishes? No can do!

You installed an npm package and it seems to depend on all the things? Let's start indexing on node_modules and give you no chance to even uninstall the **er. You used the CLI to work around our tooling? Hey let's start indexing immediately after this one finishes so it's a great idea for a coffee break, just never pull directly after coming back so you may actually do some work until we bog down all the cpu cores.

Don't get me wrong, I love all the JB IDEs, but indexing has been a deal-breaker for many.

Re:Dear JetBrains, Don't mess with your UI by adrianmsmith on Tuesday October 18, 2022 @03:37AM (#33244161)
> so you may actually do some work until we bog down all the cpu cores.

I wish it bogged down all cores.. I work on relatively small Java projects (maybe 10 KLOC, 20 or so items in the pom.xml (although these obviously have transitive dependencies)). IntelliJ 2018 would re-index everything in a few minutes using all 20 vcores. I specifically spent about $8k on an iMac Pro back in the day to make this faster.

IntelliJ 2022, on the other hand, uses only 4 cores, and takes about 10 minutes. That's a stupid default (if I buy a powerful computer I want to use it..).

There is a setting to override it, but in my case it just doesn't work. CPU goes to approx 400% and just stays there. I filed a bug report, no movement.

Re:Dear JetBrains, Don't mess with your UI by irrational on Tuesday October 18, 2022 @02:35AM (#33243730)
Do I just have a really fast computer (I’m using a MacBook Pro)? I’ve never experienced this indexing issue.
Re:Dear JetBrains, Don't mess with your UI by alias_neo on Tuesday October 18, 2022 @02:43AM (#33243773)
While not quite 10 minutes, I'm on a 12 core i7 Dell XPS, I have to switch between half a dozen or so Go projects in a day sometimes and it really can take a couple of minutes each; long enough to be annoying, not long enough to grab a coffee.

Edit: I should say 12-thread, not 12-core, just to be clear on the performance level we're expecting here. It's a 6c/12t i7.

Re:Dear JetBrains, Don't mess with your UI by Sakos on Tuesday October 18, 2022 @03:39AM (#33244172)
I'm on a MacBook Pro with M1. Indexing is a pain in the ass for me.
Re:Dear JetBrains, Don't mess with your UI by lars_francke on Tuesday October 18, 2022 @07:00AM (#33245479)
Maybe. I used to be on MacBook Pros back in the days when I was working on Java and indexing was the bane of my existence. I usually worked with 3-10 big Java projects in parallel (e.g. HBase, Hadoop, Hive, NiFi, Kafka) and indexing could (not exaggerating) take up to 4 hours in total. NiFi is one of the worst offenders. And switching branches means it starts all over again.

I haven't worked with Java in ~2 years so I'm not sure how bad it is now. I might start a NiFi index job just for fun...

Re:Dear JetBrains, Don't mess with your UI by deaddodo on Tuesday October 18, 2022 @02:20AM (#33243611)
I use Clion for C/C++ and Rust (with the rust plugin) and indexing seems fine. PHP, Python, Ruby and Go have been generally miserable for me.
Re:Dear JetBrains, Don't mess with your UI by faizshah on Tuesday October 18, 2022 @02:24AM (#33243645)
Same. Typescript, Python and Ruby are so painful for indexing especially if you use a workspace based build tool at a big tech company.
Re:Dear JetBrains, Don't mess with your UI by vladvasiliu on Tuesday October 18, 2022 @02:48AM (#33243819)
I use Rust in IntelliJ, and the indexing is usually fine once the IDE is up.

But for some reason, whenever I reopen a project, it needs to reindex it. Even when I open the same project every day, not having changed anything in between. I understand from a friend it doesn't do that with Java projects.

Re:Dear JetBrains, Don't mess with your UI by Traubenfuchs on Tuesday October 18, 2022 @03:37AM (#33244163)
> I understand from a friend it doesn't do that with Java projects.

Sometimes it does. I have no idea what causes it.

Re:Dear JetBrains, Don't mess with your UI by bravit on Tuesday October 18, 2022 @05:43AM (#33244940)
Hi! There is definitely something wrong going on. It'd be great if you file an issue at https://github.com/intellij-rust/intellij-rust/issues and attach your logs. We'd like to investigate this.
Re:Dear JetBrains, Don't mess with your UI by Traubenfuchs on Tuesday October 18, 2022 @03:36AM (#33244151)
IntelliJ reindexes existing jdks and the whole spring ecosystem on my system, daily.

I think their developers have no idea how it works either and just gave up some time after the useless shared indices came out.

Re:Dear JetBrains, Don't mess with your UI by miskin on Tuesday October 18, 2022 @05:15AM (#33244769)
Do you have enabled "Public shared indexes"? It should be able to download pre-built indexes for both JDK and many Maven libraries.
Re:Dear JetBrains, Don't mess with your UI by Traubenfuchs on Tuesday October 18, 2022 @07:44AM (#33245829)
It's on. I just switched to an IntelliJ window that hasn't been used for a few days and -indexing!
Re:Dear JetBrains, Don't mess with your UI by cube2222 on Tuesday October 18, 2022 @06:24AM (#33245210)
Indexing performance has drastically improved for me in the last 1-2 years, to the point where it's become a non-issue. New projects index very quickly, and adding new libraries also indexes quickly. It's an order of magnitude better than a few years ago.

That's both on my 16-inch M1 Max and my M2 Air with Go in Goland.