Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rtags does not automatically reindex files #1052

Closed
6 tasks
cheshire opened this issue Sep 7, 2017 · 7 comments
Closed
6 tasks

Rtags does not automatically reindex files #1052

cheshire opened this issue Sep 7, 2017 · 7 comments

Comments

@cheshire
Copy link

cheshire commented Sep 7, 2017

Please mark appropriate

  • [*] rtags (rdm/rc/rp)
  • Emacs Lisp
    • ac-rtags.el
    • company-rtags.el
    • helm-rtags.el
    • flycheck-rtags.el
    • ivy-rtags.el
    • rtags.el

Problem description

When I change the file (either using VIM or just touch) it does not get reindex:
no corresponding lines appear in rtags.log.
If I run rc --check-reindex MyFile.cpp, then it says "Dirtied one file" and actually does reindex it.
If I run rc -s watchedpaths I do see the folder my file is in under filemanager|source|dependency.

Expected behavior

Automatic reindexing upon filesystem changes.

Actual behavior

No reindexing

Environment

  • Your operating system:
    OS X

  • LLVM/Clang version:
    4.0.1

@cheshire
Copy link
Author

cheshire commented Sep 7, 2017

Or am I supposed to start rdm with --watch-system-paths?

@cheshire
Copy link
Author

cheshire commented Sep 7, 2017

Reindexing does properly trigger when I type rc -x

@Andersbakken
Copy link
Owner

Andersbakken commented Sep 9, 2017 via email

@cheshire
Copy link
Author

@Andersbakken tracked it down to be an error with a limit to the number of opened file descriptors on mac.
RDM prints:

2017-09-11 14:36 rdm[36406] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)

Apparently, it's a common issue, e.g. cf. nodejs/node-v0.x-archive#5463

Raising my ulimit did not help.

@cheshire
Copy link
Author

I have about 7000 files in my project, but running ulimit -n 10000 did not seem to stop the crash from happening.

@cheshire
Copy link
Author

@Andersbakken would be great if rtags could figure out / could be configured to use fswatch with a directory, and not with individual filename.
Using individual filenames seems to bound to have problems with projects with 10k+ files.

@casch-at
Copy link
Collaborator

casch-at commented Jun 7, 2018

Closing as the initial problem was due to the file system watcher limit. Please open a new issue for any feature requests or/and issues left. Thanks!

@casch-at casch-at closed this as completed Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants