Why it's updating indices again and again? making it unusable at all

Answered

The ide is "Updating Indices" of JDK, 3rd jars, .gradle/ folder etc again and again and again when openning the project.  It takes too long time, and cannot be canclled. Making IDEA totally unusable, very very very annoying!

This happening in all versions of idea with gradle plugin.

This feature must be improved, some suggestions:

(1) do not index the same thing more than once

(2) let user to define the exclude-set of indexed folders

(3) do not index unused stuffs; try to identify which are unused

(4) do not block user operations when it's indexing

etc

69 comments
Comment actions Permalink

>> Could you please update to the latest version and check if the issue is still there? If it is please file a ticket and share log files with us

Hi.

IDEA 2021.2.2 - it looks like the situation has become better. At least I do not remember re-indexing after each project opening last weeks. IDEA after a project opening searches for files for indexing (it takes 1-2 minutes) and checks spring configuration.

Full (and long) re-indexing remains if IDEA was incorrectly closed (killed as process, power was switched off). But I guess this is another case and it happens not so often. 

Thank you for feedback and reaction

 

1
Comment actions Permalink

> Full (and long) re-indexing remains if IDEA was incorrectly closed (killed as process, power was switched off). But I guess this is another case and it happens not so often. 

https://youtrack.jetbrains.com/issue/IDEA-275337

-1
Comment actions Permalink

>>Serge Baranov

As far as I understood from your link, version 2021.2.3 fixes the issue with re-indexing (if IDEA was incorrectly closed).

I've updated IDEA to 2021.2.3. Will be tracking if the issue has gone.

Thanks

0
Comment actions Permalink

Yes, this issue should be fixed in 2021.2.3.

-1
Comment actions Permalink

If only the IDE would do what people are saying here "it only index once" nope, it indexes if it crashes too (which unfortunately happens quite often once you write something more than hello world)

I wish we could just disable this

0
Comment actions Permalink

Vinicius Carvalho Indexing database could be corrupted after crash, that is why we reindex. 

This will be improved a bit in 2021.3, and more improvements will be done in 2022.1 

1
Comment actions Permalink

It also indexes out of nothing too. Which is quite annoying. I was working on a class, and after saving it it started indexing, what seems to be internal jars of intellij, and I got no code completion for like 3 minutes.

0
Comment actions Permalink

Vinicius Carvalho Looks like https://youtrack.jetbrains.com/issue/KTIJ-753

For additional details please file a new report at https://youtrack.jetbrains.com/newIssue?project=IDEA and attach the logs using Help | Collect Logs and Diagnostic Data.

-1
Comment actions Permalink

I had the same problem on mac Monterey 12.5 (Apple M1) with PyCharm 2022.2, each time it re-indexed the whole project in an unworkable way.
I solved it with 2 steps:
1) File -> Manage IDE Settings -> Restore Default Settings (maybe optional, in my case it was useful)
2) Preference -> Project Structure -> .idea folder mark as Excluded (mandatory)

I hope it can help someone else.

Enrico

0

Please sign in to leave a comment.