Hacker News new | ask | show | jobs
by lars_francke 3492 days ago
One thing that IntelliJ does not support is working on multiple branches of a product without having to reindex.

I work with a lot of Open Source tools (e.g. Hadoop, Kafka) with complex build setups. It often takes 10+ minutes for IntelliJ to load a project. If I now switch to a different branch it starts all over again.

I wish it'd keep a cache of multiple index versions around.

1 comments

I use git worktree as a workaround for this case.
Can you go into more detail about that?
I assume he means he uses git worktree to create a directory structure like so:

src/my_project_master/

src/my_project_develop/

src/my_project_new_feature/

Each with it's own IntelliJ project. If he needs to switch branches it's relatively fast to open a different existing project rather than git checkout branch, which can cause IntelliJ to become unresponsive as it reindexes everything.

Not tried this, but I experience this quite often and will have to give this a shot.