This builds a hacked version of fsnotifier
that exclude the .cache/bazel
directory from being indexed by Intelij. This helps a ton with project startup times and reindexing after builds, for a large mono-repo this reduced initial sync times by 30%.
The default destination directory is assumed to be /usr/share/idea/bin
which is true for Arch Linux packages. When installing the existing fsnotifier
binary will get backed up to fsnotifier.orig
.
Use like this:
make
sudo make install
# if your system uses a different installation path
sudo make install DESTDIR=/opt/JetBrains/idea-IU-211.7142.45/bin
This is based on this. For a good laugh see the discussion here on why this hack is necessary.