Tag/label db not updating

Things you’d like to miss in the future...
Post Reply
1024mb
Posts: 205
Joined: 14 Dec 2018 23:26

Tag/label db not updating

Post by 1024mb »

XYplorer isn't updating the db when files are deleted.

If I have this

A\B\C.txt <- this file is labeled
A\B\D.txt

Then
1. Copy a file E.txt
2. Delete the file C.txt
3. Rename the file E.txt to C.txt
4. Close an reopen XYplorer

The new file C.txt will be labeled as it was before the original file was deleted, I haven't tested this with the tags but I'm guessing the same will happen.
And yes, I have everything ticked to be saved on exit and immediately to disk. If XYplorer is not closed the new C.txt file wont have any label even after refreshing, XYplorer must be closed and opened again.
Paranoid me made me check whether the labels were being updated or not, now I have to track which files I have renamed to unlabel them.

Edit: I even tried the Save settings option before closing XYplorer and still, same behavior.
By the way, kinda unrelated to this problem, if one renames a labeled file and then go to another file with the arrow keys XYplorer exits the renaming.
Last edited by 1024mb on 25 Nov 2022 21:20, edited 1 time in total.

JLoftus
Posts: 577
Joined: 22 Jan 2014 14:58

Re: Tag/label db not updating

Post by JLoftus »

Similar thing I've noticed, that when I turn off saving tags immediately (to use Don's new "Tags:"*" //dirty tags filter), if I tag a folder, then save tags, the applied color filter correctly resets, however, if I then move that folder to another drive (example: D:\foo\testfolder to S:\bar) then the color filter is not reapplied, even though the tagged folder item has been modified from D:\foo to S:\bar

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Tag/label db not updating

Post by admin »

1024mb wrote: 25 Nov 2022 20:07 XYplorer isn't updating the db when files are deleted.
1) Are you working in a Multi-User Tagging context?
2) Is Configuration | Information | Tags | Auto-refresh tags ticked?

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Tag/label db not updating

Post by admin »

JLoftus wrote: 25 Nov 2022 21:16 Similar thing I've noticed, that when I turn off saving tags immediately (to use Don's new "Tags:"*" //dirty tags filter), if I tag a folder, then save tags, the applied color filter correctly resets, however, if I then move that folder to another drive (example: D:\foo\testfolder to S:\bar) then the color filter is not reapplied, even though the tagged folder item has been modified from D:\foo to S:\bar
Confirmed. Fixed in next beta.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Tag/label db not updating

Post by admin »

1024mb wrote: 25 Nov 2022 20:07 By the way, kinda unrelated to this problem, if one renames a labeled file and then go to another file with the arrow keys XYplorer exits the renaming.
Cannot reproduce. :?

1024mb
Posts: 205
Joined: 14 Dec 2018 23:26

Re: Tag/label db not updating

Post by 1024mb »

admin wrote: 26 Nov 2022 09:54 1) Are you working in a Multi-User Tagging context?
2) Is Configuration | Information | Tags | Auto-refresh tags ticked?
1) No.
2) Yes.
admin wrote: 26 Nov 2022 09:57 Cannot reproduce. :?
It keeps happening on my end. I get this message in the status bar: tags database reloaded
If I untick Configuration | Information | Tags | Auto-refresh tags it doesn't happen.
I have another instance that is at 23.70.0200 and this doesn't happen. After updating it to latest beta 23.80.0005 this problem starts to happen.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Tag/label db not updating

Post by admin »

Cannot reproduce.

But: Configuration | Information | Tags | Auto-refresh tags is *only* needed in a Multi-User Tagging context. It will show the tags of *other* users in your instance in real-time. You can safely turn it off when no other users are tagging around on your system.

1024mb
Posts: 205
Joined: 14 Dec 2018 23:26

Re: Tag/label db not updating

Post by 1024mb »

admin wrote: 27 Nov 2022 08:44 Cannot reproduce.

But: Configuration | Information | Tags | Auto-refresh tags is *only* needed in a Multi-User Tagging context. It will show the tags of *other* users in your instance in real-time. You can safely turn it off when no other users are tagging around on your system.
That's weird, when I tried earlier turning it off XYplorer didn't update the labels automatically anymore, I've tried turning it off now and it solves both problems I had and all is working correctly.

Also I don't know what has been happening, maybe XYplorer was expecting someone else to also edit the tag db or something because I've checked now the orphans and I saw some files that I've renamed before that appear as orphans (of course the orphans have the old names) but checking the renamed files they do have the labels set correctly, it seems it made a copy of the label in the db with the new name instead of updating it. Weird things happen when Auto-refresh tags is turned on and there is no multi-user tagging.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Tag/label db not updating

Post by admin »

Can you reproduce these weird things at will?

1024mb
Posts: 205
Joined: 14 Dec 2018 23:26

Re: Tag/label db not updating

Post by 1024mb »

admin wrote: 27 Nov 2022 11:08 Can you reproduce these weird things at will?
Yes, tried reproducing with the Auto-refresh option turned off and it doesn't happend. Tried with the option turned on and it does happen. I guess that's why my main problem was happening, the entry in the db was never deleted so when I renamed the file to the other filename it appeared with the label after a restart.
Last edited by 1024mb on 27 Nov 2022 11:50, edited 1 time in total.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Tag/label db not updating

Post by admin »

You mean the original bug of this thread. Should be fixed since v23.80.0004.

1024mb
Posts: 205
Joined: 14 Dec 2018 23:26

Re: Tag/label db not updating

Post by 1024mb »

I reproduced this:
1024mb wrote: 27 Nov 2022 11:04 Also I don't know what has been happening, maybe XYplorer was expecting someone else to also edit the tag db or something because I've checked now the orphans and I saw some files that I've renamed before that appear as orphans (of course the orphans have the old names) but checking the renamed files they do have the labels set correctly, it seems it made a copy of the label in the db with the new name instead of updating it. Weird things happen when Auto-refresh tags is turned on and there is no multi-user tagging.
And you are right, the original issue has been fixed. The only problems that remain are the one I just quoted and the renaming one.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Tag/label db not updating

Post by admin »

Yes, I can reproduce old-named orphans after a rename + save if "Auto-refresh tags" is ticked (or if you use a shared DB via admin settings).

UPDATE: v23.80.0007 should fix it.

Post Reply