-
Notifications
You must be signed in to change notification settings - Fork 252
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
Comments
Or am I supposed to start |
Reindexing does properly trigger when I type |
How are you starting rdm?
The check-reindex stuff should only be necessary when you run rdm
with --no-filesystem-watcher
Can you run rdm -v -v
(This will produce a lot of output) if you're indexing large files and see
what happens when you touch a file.
Anders
…On Thu, Sep 7, 2017 at 1:31 PM, George Karpenkov ***@***.***> wrote:
Reindexing does properly trigger when I type rc -x
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1052 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEdSpn0MOxf0A-vQ7hPE9V7bd9bMtP_ks5sgFKfgaJpZM4PQVVa>
.
|
@Andersbakken tracked it down to be an error with a limit to the number of opened file descriptors on mac.
Apparently, it's a common issue, e.g. cf. nodejs/node-v0.x-archive#5463 Raising my ulimit did not help. |
I have about 7000 files in my project, but running ulimit -n 10000 did not seem to stop the crash from happening. |
@Andersbakken would be great if rtags could figure out / could be configured to use fswatch with a directory, and not with individual filename. |
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! |
Please mark appropriate
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 underfilemanager|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
The text was updated successfully, but these errors were encountered: