This is based on D15943: [balooctl] Monitor also for state changes.
Simply print current state & file when monitor starts.
BUG: 364858
FIXED-IN: 5.52
bruns | |
ngraham |
Baloo | |
Frameworks |
This is based on D15943: [balooctl] Monitor also for state changes.
Simply print current state & file when monitor starts.
BUG: 364858
FIXED-IN: 5.52
balooctl monitor now prints
Press ctrl+c to stop monitoring File indexer is running Idle
No Linters Available |
No Unit Test Coverage |
Buildable 3547 | |
Build 3565: arc lint + arc unit |
Woops! startedIndexingFile does not print a newline. I guess I can just add m_out << endl...
I don't see how it is a problem. The problem is not that it's not written to terminal (it is), but that it just doesn't have a trailing newline, i.e. output looks like
Indexing /some/file1Indexing /some/file2: OK Indexing /some/file3: OK ...
A flush shouldn't hurt.
Just in case, I suggest not to do it inside startedIndexingFile, but right here, after line 73 (that's because we have a special case of startedIndexingFile without finsihedIndexingFile).
So apparently the indexer has not yet processed the registration request and does not send us a finished signal?
Can you try to find out the exact sequence of messages using dbus-monitor interface='org.kde.fileindexer'?
Are you sure its file1...file2 and not the same file twice? If it is the same, we can set m_currentFile in 71 and suppress the duplicated output in startedIndexingFile.
Also, is your running baloo_file using current master? Otherwise, it may return a file finished long ago, see D15994.
That's weird. I caught it only once and thought that it is because I trivially forgot the endl. But now I cannot reproduce it anymore.
Seems like it should be fine, since we do emit finished signal, which will write the 'OK' part.
Sorry for the noise.