[BUG] Proliferation of visible .dat files in sidebar
CompletedThis bug seems fairly easy to reproduce:
1. Hit `⌘N` to create a new Folder (call it anything; put it anywhere.)
2. In the active search bar, type in "new" and press Return.
3. Hit `⌘L` and then `⎋` to cancel the search.
In addition the the "new.txt" entry, there will also be a ".dat.nosync{random}" entry.
As new files are created, more of these .dat files appear, in great numbers after a few tests.
nvUltra: Version 1.0.0 (20)
macOS: 10.14.4 / APFS volume
-
Official comment
nvUltra isn't creating those files, your computer is (I believer those are created by iCloud storage?).
FIXED for next version -- those files were not being indexed normally, but "snuck" in through the "a file changed" back door indexing.... They should now be ignored regardless of why they came to nvUltra's attention.
Thanks!
-
P.S. Yikes! This place doesn't use Markdown? ;)
0 -
Also, if you create a new file via [[new file]] this will happen immediately ;)
0 -
Yes -- sadly it seems that Zendesk is migrating away from Markdown. That definitely factored into our decision making, but for right now it seems that they offer the best price/feature ratio in other ways. If we found a similar alternative that also strongly supported Markdown, we could look at switching. So far we haven't found one.
Despite the lack of Markdown support, I think that otherwise the platform will allow us to better provide customer support.
0 -
Weird, I don't have an iCloud account, but who knows what background stuff Apple runs no matter what, even if it is pointless.
I forgot to mention, but I did do some checking with the shell to try and find where these were coming from. Whatever they are, my working theory is that they flash in and out of existence almost instantaneously. It's enough to trigger them being added to the sidebar, but there isn't a symmetrical *removal* action for that. For example:
1. Shell into the test folder.
2. Use the command `touch test.md`
3. Perform the above search & cancel search (in fact that's all you need to do, you don't have to make a file, as per the original reproduction notes).
Now we have 'test.md' in the list.
4. Back in the shell, `rm test.md`.
5. Search & cancel.
test.md remains in the sidebar. At this point it is a broken file entry (you just get a big white document icon), exactly like you do with these .dat files.
So excluding these files aside (which looks to be a good idea no matter what), it might be a good idea to remove deleted files from the sidebar, particularly as they serve no useful function.
P.S. I am never going to get used to only pressing carriage return once between paragraphs, ha! (Not complaining, just laughing at myself.)
0 -
Update: found one mention on the 'net regarding [.dat.nosync files](https://github.com/quicksilver/Quicksilver/issues/2286#issuecomment-264951399).
> The .dat.nosync* files are caused by the atomically: flag of some write methods.
And that is an interesting point that I had not noticed in my shell level testing above: when I use touch/rm to add and remove a file, no .dat file is created. I tested further, using Sublime Text to create an .md file in the folder---no .dat file. But every time I use nvUltra to generate the file (which wiki links would also include), I get a .dat file. So that might be the clue!
(Oops: saw you posted an official update at the top of the thread an hour ago. I'm probably treading over stuff you know then.)
0 -
I can't replicate this behavior -- when I `rm test.md` and then update the file list, `test.md` is gone. But either way the behavior is improved for next release.
0
Please sign in to leave a comment.
Comments
7 comments