How do I log the files that are being indexed?

Answered

Hi.

When I do a build, towards the end of the build, idea starts indexing for about half a second.

Looking at my propject, any files that are generated by the build should go to excluded folders so I'm not sure what the indexing is for.

I would like to know a way to log the files that are being indexed so I can correct my project file.

Thanks, Nick.

6 comments
Comment actions Permalink

Hello Nick,

I'm afraid it's not currently possible without patching the sources of IntelliJ
IDEA CE and building a custom version.

When I do a build, towards the end of the build, idea starts indexing
for about half a second.

Looking at my propject, any files that are generated by the build
should go to excluded folders so I'm not sure what the indexing is
for.

I would like to know a way to log the files that are being indexed so
I can correct my project file.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks for the response.

Nick.

0
Comment actions Permalink

Hi, has the status changed on this one for IntelliJ 2018?

We are also running into issues that a lot of files are being indexed, so need to first make sure what are being indexed then focus on why those are files were changed, such as annotation processors bugs.

0
Comment actions Permalink

Try turning this category: #com.intellij.util.indexing.FileBasedIndexImpl in bin/log.xml.

0
Comment actions Permalink

Thanks, @petr. However I am not able to find enough doc around log.xml, and the examples are not clear either https://github.com/JetBrains/intellij-community/blob/master/bin/log.xml to me. Could you give a more specific code snippet to insert into bin/log.xml?

0
Comment actions Permalink

Hi, IDEA uses log4j, you could find examples and docs here: https://wiki.apache.org/logging-log4j/Log4jXmlFormat

0

Please sign in to leave a comment.