Open dlsniper opened 4 years ago
On my machine, strace
ing the fsnotifier
process indeed shows millions of watches on Bazel cache entries looking like:
inotify_add_watch(3, "$HOME/.cache/bazel/_bazel_$LOGNAME/$DIGEST/execroot/...
inotify_add_watch(3, "$HOME/.cache/bazel/_bazel_$LOGNAME/$DIGEST/external/...
inotify_add_watch(3, "$HOME/.cache/bazel/_bazel_$LOGNAME/install/$DIGEST/...
A workaround consists in a filtering wrapper script :
#!/usr/bin/env sh
grep -v -F /_bazel_ | /path/to/original/bin/fsnotifier "$@"
... declared in idea.properties
:
# custom IntelliJ IDEA properties (expand/override 'bin/idea.properties')
idea.filewatcher.executable.path=/path/to/my/bin/fsnotifier-wrapper
@rdesgroppes Thanks for sharing the workaround. @dlsniper Feel free to reach if you still have any further queries on the same.
@sgowroji while the workaround is good, I don't think this issue is closed. I don't expect many/all people using the plugin to come to this thread and apply the workaround. The plugin should really take care of this on its own and handle this case.
Right, such a workaround had only be crafted to buy some time. Thanks for having reopened the issue.
Thank you for contributing to the IntelliJ repository! This issue has been marked as stale since it has not had any activity in the last 6 months. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-maintainer". Please reach out to the triage team (@bazelbuild/triage
) if you think this issue is still relevant or you are interested in getting the issue resolved.
Still relevant: @bazelbuild/triage isn't a GitHub team so not sure who to reach out to.
Hello, I'm forwarding the following piece of feedback for the plugin:
As a proposed solution, it would be better if the user doesn't need to disable the symlink feature in the bazelrc but have the plugin automatically ignore the
bazel-bin
andbazel-out
from the indexing and watching for changes features.Original comment with the feedback.
Thank you.