'Edit Orphans' doesn't edit, it adds

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
admin
Site Admin
Posts: 67315
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: 'Edit Orphans' doesn't edit, it adds

Post by admin »

It might all be a misunderstanding. Do you have screenshots that show "before" and "after" the orphan adding?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: 'Edit Orphans' doesn't edit, it adds

Post by TheQwerty »

grindax can you please verify the steps to reproduce this?
I did the following and did not see any issue.

With a freshly extracted copy of XYplorer v12.80.
  1. Run and exit XY once to generate tags.dat.
  2. Replace contents of tags.dat with:

    Code: Select all

    XYplorer File Tags v2
    Red||FC7268;Orange||F6AB46;Yellow||EFDC4A;Green||B5D74A;Blue||5DA4FE;Purple||E29CDC;Grey||B5B5B5;Reduced Size PDF||FF8000
    
    S:\Disc Images (Applications)|8|||||
  3. Run XY.
  4. Tools > Configuration > Tags > Advanced Options... > Edit Orphans (All Drives)
  5. Replaced 'S:\Disc Images (Applications)' with 'C:\Windows'.
  6. OK out of everything.
  7. Exit XY
  8. View new contents of tags.dat:

    Code: Select all

    XYplorer File Tags v2
    Red||FC7268;Orange||F6AB46;Yellow||EFDC4A;Green||B5D74A;Blue||5DA4FE;Purple||E29CDC;Grey||B5B5B5;Reduced Size PDF||FF8000
    
    C:\Windows|8|||||

Various Information wrote:XYplorer: 12.80.0000 (Pro Edition - 30-day Trial Version)
Loaded in: 547 ms at 9/3/2013 10:21:33 AM
Uptime: 4 secs
Memory Usage: 39,256 KB, Virtual Memory Size: 17,456 KB

OS: Windows 7 Professional (Service Pack 1), 64-bit (6.1)
OS Uptime: 36 days, 13 hrs, 31 mins, 41 secs
UTC Offset: --04:00
User Role: User
Themes: Yes (Aero)

System Locale ID: 1033
Thread Locale ID: 1033
Default ANSI Code Page: 1252
Active Code Page: 1252 (ANSI - Latin I)
DBCS Code Page: No

DblClick Time: 550 ms
Screen DPI: 96 (100%)
Screen Color Depth: 32
UseDPIAwareIconSizes: No, Yes
Icon Size: small=16, large=32
Icon Size Recommended: small=16, large=32

Command:
CommandW:
Command Normalized:

App: C:\Zen\Downloads\New Folder\XYplorer.exe
Ini File: C:\Zen\Downloads\New Folder\Data\XYplorer.ini
App Data Path: C:\Zen\Downloads\New Folder\Data\
Pane 1 Data Path: C:\Zen\Downloads\New Folder\Data\Panes\1\
Pane 2 Data Path: C:\Zen\Downloads\New Folder\Data\Panes\2\
Catalogs Path: C:\Zen\Downloads\New Folder\Data\Catalogs\
Icons Path: C:\Zen\Downloads\New Folder\Data\Icons\
New Items Path: C:\Zen\Downloads\New Folder\Data\NewItems\
Scripts Path: C:\Zen\Downloads\New Folder\Data\Scripts\
Thumbs Cache: C:\Zen\Downloads\New Folder\Data\Thumbnails\
Catalog: C:\Zen\Downloads\New Folder\Data\Catalogs\catalog.dat
Tags Database: C:\Zen\Downloads\New Folder\Data\tag.dat

Language Support: 8.35
Language: No language loaded

grindax

Re: 'Edit Orphans' doesn't edit, it adds

Post by grindax »

.
Last edited by grindax on 23 Jan 2016 15:17, edited 1 time in total.

grindax

Re: 'Edit Orphans' doesn't edit, it adds

Post by grindax »

.
Last edited by grindax on 23 Jan 2016 15:17, edited 1 time in total.

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

Re: 'Edit Orphans' doesn't edit, it adds

Post by admin »

Tried again and failed to repro. File under unsolved mysteries.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: 'Edit Orphans' doesn't edit, it adds

Post by TheQwerty »

I can recreate this by doing the following with a fresh copy of v12.80.0001:
  1. Create folders 'C:\Folder1\' and 'C:\Folder2\'.
  2. Tag 'Folder2' with 'Red'.
  3. File > Save Settings.
  4. Tag 'Folder1' with 'Blue'.
  5. Outside of XY rename 'Folder2' to 'Folder0' (Tip: use '!!ren Folder2 Folder0' in the AB).
  6. Configuration > Tags > Advanced Options... > Edit Orphans (All Drives)...
  7. Edit 'C:\Folder2' to 'C:\Folder0'.
  8. OK
  9. Advanced Options... > Edit Tagged Items...
At this point the list dialog contains:

Code: Select all

C:\Folder0|1|||||
C:\Folder2|1|||||
I don't believe the tags used really matter, but it seems important to save tag.dat and cause the items to need re-sorted.
Various Information wrote:XYplorer: 12.80.0001 (Pro Edition - 30-day Trial Version)
Loaded in: 418 ms at 9/4/2013 8:37:45 AM
Uptime: 2 mins, 52 secs
Memory Usage: 39,476 KB, Virtual Memory Size: 20,552 KB

OS: Windows 7 Professional (Service Pack 1), 64-bit (6.1)
OS Uptime: 3 hrs, 17 mins, 39 secs
UTC Offset: --04:00
User Role: User
Themes: Yes (Aero)

System Locale ID: 1033
Thread Locale ID: 1033
Default ANSI Code Page: 1252
Active Code Page: 1252 (ANSI - Latin I)
DBCS Code Page: No

DblClick Time: 550 ms
Screen DPI: 96 (100%)
Screen Color Depth: 32
UseDPIAwareIconSizes: No, Yes
Icon Size: small=16, large=32
Icon Size Recommended: small=16, large=32

Command:
CommandW:
Command Normalized:

App: C:\Zen\Downloads\New Folder\XYplorer.exe
Ini File: C:\Zen\Downloads\New Folder\Data\XYplorer.ini
App Data Path: C:\Zen\Downloads\New Folder\Data\
Pane 1 Data Path: C:\Zen\Downloads\New Folder\Data\Panes\1\
Pane 2 Data Path: C:\Zen\Downloads\New Folder\Data\Panes\2\
Catalogs Path: C:\Zen\Downloads\New Folder\Data\Catalogs\
Icons Path: C:\Zen\Downloads\New Folder\Data\Icons\
New Items Path: C:\Zen\Downloads\New Folder\Data\NewItems\
Scripts Path: C:\Zen\Downloads\New Folder\Data\Scripts\
Thumbs Cache: C:\Zen\Downloads\New Folder\Data\Thumbnails\
Catalog: C:\Zen\Downloads\New Folder\Data\Catalogs\catalog.dat
Tags Database: C:\Zen\Downloads\New Folder\Data\tag.dat

Language Support: 8.35
Language: No language loaded

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

Re: 'Edit Orphans' doesn't edit, it adds

Post by admin »

Yes, I could repro it now, thanks. Needs some deep thinking...

grindax

Re: 'Edit Orphans' doesn't edit, it adds

Post by grindax »

.
Last edited by grindax on 23 Jan 2016 15:17, edited 1 time in total.

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

Re: 'Edit Orphans' doesn't edit, it adds

Post by admin »

I fixed it. Uff!

I currently don't see another way to create dupes in tag.dat. If you still find one let me know.

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: 'Edit Orphans' doesn't edit, it adds

Post by Enternal »

admin wrote:I fixed it. Uff!

I currently don't see another way to create dupes in tag.dat. If you still find one let me know.
It's been a while since I've gone and just came back today and saw all this. What exactly went wrong Don? I'm curious heh.

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

Re: 'Edit Orphans' doesn't edit, it adds

Post by admin »

I'm using an indexed sort internally for the tags in memory and at that one point in the code I forgot to implement that level of abstraction, so things went wrong at that point when the tags in memory were not sorted per se.

grindax

Re: 'Edit Orphans' doesn't edit, it adds

Post by grindax »

.
Last edited by grindax on 23 Jan 2016 15:18, edited 1 time in total.

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

Re: 'Edit Orphans' doesn't edit, it adds

Post by admin »

Madonna! :blackstorm:

I tried TheQuerty's steps with moving folder1 in folder2 and vice versa. I cannot repro it. Probably TheQuerty finds the way. :whistle:

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: 'Edit Orphans' doesn't edit, it adds

Post by TheQwerty »

Sorry - no luck here. (Or maybe grindax is the one without luck. :P )

Tried my steps.
Tried steps more closely resembling the video.
But I've yet to see the issue in a fresh copy of 12.80.0002.

grindax, you mention it being broken on your "main PC" still. Do you mean it's still showing up on a fresh copy of XY or only on the one that has been configured?

grindax

Re: 'Edit Orphans' doesn't edit, it adds

Post by grindax »

.
Last edited by grindax on 23 Jan 2016 15:18, edited 1 time in total.

Post Reply