Jaime Agudo
Jaime Agudo

Reputation: 8286

How can I stop indexing intellij idea?

Without "excluding" folders, how can I stop Indexing intellij idea on start? It's very very annoying that it starts indexing on startup without allowing you to, for example, debug a test case making you wait until indexing has finished.

Upvotes: 158

Views: 146254

Answers (9)

yamini
yamini

Reputation: 21

In my case File-> Invalidate Caches / Restart didn't work, I killed the intelliJ in task manager (END TASK) and reopened the project with pom.xml and It worked.

Upvotes: 0

In my case i had constantly indexing files in Angular application when i remove node_modules folder.

I've tried to invalidate caches multiple times what didn't help at all.

Only solution was to remove project with clear Git state and reclone project - than everything started to work just flawlessly.

Upvotes: 0

Vishrant
Vishrant

Reputation: 16628

If longer indexing is an issue you can enable the shared indexes.

Add this plugin in your intellij and follow the instructions from here.

Upvotes: 0

Senthilnadhan Ramasamy
Senthilnadhan Ramasamy

Reputation: 1213

It may be because of libraries folder is added more than one sub folder in the project. example in my case i have node_modules folder in two locations in the project. one is under root directory(app-->node_modeules) another one is under(app-->test-->node_modules)

Simply Right click on each folder and then selected Mark Directory As --> Excluded

It resolved my problem. Hope it would be helpful.

Upvotes: 2

Magomed Abdurakhmanov
Magomed Abdurakhmanov

Reputation: 1924

You can stop synchronizing/indexing each time you switch to the IDEA and it's quite useful when dealing with big projects and outside build process which triggers indexing.

Just disable checkbox System Settings -> Synchronize files on frame or editor tab activation.

Make sure you run indexing manually to update hints when needed through Synchronize menu (Cmd-Alt-Y on Mac) or File -> Reload All from Disk to run it manually for IDEA 2020 running under Linux

System Settings

Upvotes: 135

Muhammad Ahmed
Muhammad Ahmed

Reputation: 215

You Can easily resolve it.

Just Go to: File -> Setting -> Directories.

Stop all the files that are going to included and need to empty ADD Content Root.

Like This:

enter image description here

Upvotes: 5

Ashu
Ashu

Reputation: 2266

After struggling with this issue for around a week and searching all the solution I came to below conclusion: either upgrade your intellij which gives you feature to pause the indexing ( I can't upgrade my intellij due to license issues ) so the other option was to disable all the plugins and then try enabling as per the need one by one.

After enabling any of the plugin if you see it behaving the same uninstall the plugin and download some alternative of it.

Upvotes: 0

Jacob.B
Jacob.B

Reputation: 810

Try:

File-> Invalidate Caches / Restart.

I think that this issue happens (at least for me it seems to be the reason) if you start commit and then close the IDE in the middle of the process.

Upvotes: 22

Nelson G.
Nelson G.

Reputation: 5441

Now, "excluding" folders is the only way to disable indexing when a change occurs in one of excluded folders (except for generated sources that mustn't be excluded).

Checked with Intellij 2016.2.5

I suggest you to tune your Intellij configuration, see this post : https://stackoverflow.com/a/22508853/779338

Upvotes: 9

Related Questions