Can intellij's indexer be invoked from the command line / in batch mode?

Answered

Hi,

It would be convenient for us to be able to invoke IntelliJ's indexer from the command line during continuous builds. That way, we could potentially build the index once for lots of people, instead of lots of people building (presumably almost identical assuming they're looking at the same revision of code) indexes personally on their own machine.

Is this something that's possible today with IJ? If not, could it be considered as a future enhancement?

Thanks,
Brian

4 comments

Hello Brian,

It would be convenient for us to be able to invoke IntelliJ's indexer
from the command line during continuous builds. That way, we could
potentially build the index once for lots of people, instead of lots
of people building (presumably almost identical assuming they're
looking at the same revision of code) indexes personally on their own
machine.

Is this something that's possible today with IJ? If not, could it be
considered as a future enhancement?


The indexes are very sensitive to local paths and other local environment
and aren't currently designed to be reused between machines. It's not a matter
of invoking the indexer (it can be done with some custom plugin coding),
it's a matter of not being able to use its output.

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


0

Yes, I'm very aware that's an issue with such a system.

A product I used to work on (Oracle JDeveloper) solved this problem several years ago, and provides a command line tool (ojindex) for pre-computing its indices. We were very careful to design our Java indexing storage in JDeveloper so that it could be reused across machines for exactly this usecase. It's extremely helpful in a team environment to be able to share indexes with other team members. Within Oracle, we saved many many hours of developer time by precomputing indexes for our huge projects during our continuous build cycles. Developers could just pick up those labels and immediately start using them in their IDE.

I was really hoping that IntelliJ would have encountered this request before and might have come up with a solution.. ah well :)

OK another tack.. An intermediate step we took in JDeveloper before we had indexes that could be rebased was to transform an index that had been produced for one machine to repair incorrect absolute paths? In my current company's development environment, it's very easy for us to know how to translate an absolute path on one machine to the equivalent on another. Does IntelliJ provide an API or a file format spec for the indices?

Brian

0

It lasts more than 10 years since the last post, but the problem described here is kind of deal-breaker for us. I wonder if something changed and now there is a way to build an index from the command line?

0

Please sign in to leave a comment.