Page 2 of 3

Re: Flatten Folder Failure

Posted: 13 Sep 2015 23:47
by armsys
Hi Papoulka,
You got it.

Re: Flatten Folder Failure

Posted: 13 Sep 2015 23:52
by armsys
The Flatten Folder's performance is random and inconsistent.
An hour ago it worked, but now failed.

Re: Flatten Folder Failure

Posted: 14 Sep 2015 02:36
by Papoulka
armsys - what Windows are you running? I'm on Win7 32-bit. There may be some relevant difference between 7 and later.

Also, try a "::fresh" instance of XY (type that without the quotes in the address bar). In a ::fresh instance I find no failures of the menu "Flatten folder" command. And if my personal XY has just been restarted, it too works reliably.

But if my personal XY has been running for a while, the menu "Flatten folder" command always fails. This is on both the C: drive and other drives. "Fails" means no changes are made, no messages etc - just nothing happens.

My only use of Flatten is the script version where I've never had such a problem.

Re: Flatten Folder Failure

Posted: 14 Sep 2015 04:54
by armsys
Papoulka wrote:But if my personal XY has been running for a while, the menu "Flatten folder" command always fails. This is on both the C: drive and other drives. "Fails" means no changes are made, no messages etc - just nothing happens.
That's exactly the core issue. It happens to my XY.
OS: Windows 7 Ultimate (Service Pack 1), 64-bit (6.1)
I don't like ::fresh because it loses all my charming XY settings.

Re: Flatten Folder Failure

Posted: 14 Sep 2015 06:06
by Papoulka
No, ::fresh does not affect your settings. And it's the only way for everyone to be on the same sheet of music.

Re: Flatten Folder Failure

Posted: 14 Sep 2015 09:22
by admin
I could fix the "only empty folders" issue. I could not repro anything else.

Re: Flatten Folder Failure

Posted: 18 Sep 2015 02:10
by xman
The error described by OP appeared again, but this time with different message:
"folder was flat already"

Re: Flatten Folder Failure

Posted: 18 Sep 2015 02:23
by armsys
xman wrote:The error described by OP appeared again, but this time with different message:
"folder was flat already"
Excuse me, what's 'OP'?

Re: Flatten Folder Failure

Posted: 18 Sep 2015 02:26
by xman
Original Poster, ie you. :lol:

Reproducible Cause of Flatten Folder Bug

Posted: 18 Sep 2015 02:41
by armsys
I've just re-tested the Flatten Folder (right-click context menu command) and confirm it still fails. That's, no folders are flattened but it still shows a faulty status report.
After existing and re-starting XY, the Flatten Folder works as expected.

On the other hand, this time I discover a repeatable/reproducible cause of the Flatten Folder failure:
After stopping 'getting folder size" by pressing ESC, the Flatten Folder will fail.

Correction 2015.09.18 Fri 03:52:24 PM HKT
After exiting and re-starting XY, the Flatten Folder works as expected.

Re: Flatten Folder Failure

Posted: 18 Sep 2015 02:46
by xman
Good job figuring it out :appl:.

I just tried content search, cancelled it using escape and got the same message. And it worked before the search, I tried.

Re: Flatten Folder Failure

Posted: 18 Sep 2015 02:50
by xman
In fact, just pressing the escape without running a search or doing anything else triggers this bug. And I tried in ::fresh and it works there too.

Re: Flatten Folder Failure

Posted: 18 Sep 2015 06:10
by armsys
xman wrote:In fact, just pressing the escape without running a search or doing anything else triggers this bug. And I tried in ::fresh and it works there too.
In my case, the ::fresh creates a new instance of XY, which forgets all my own settings c:\ArmSys.ini. I hate it. :naughty: :twisted:
::fresh; will force the data path to %appdata%\xyplorer\fresh.
Above all, ::fresh; is hardly a charming solution.
An anomaly is an anomaly.

Re: Flatten Folder Failure

Posted: 18 Sep 2015 07:42
by RalphM
armsys wrote:In my case, the ::fresh creates a new instance of XY, which forgets all my own settings c:\ArmSys.ini. I hate it. :naughty: :twisted:
::fresh; will force the data path to %appdata%\xyplorer\fresh.
Above all, ::fresh; is hardly a charming solution.
An anomaly is an anomaly.
You seem to have misunderstood the use of ::fresh.
It's use is solely to eliminate the influence of your settings in making a bug possible or show its ugly face, which is why it creates an environment with factory defaults without any user customized settings (in all cases not just yours).
It is not intended to use this fresh instance instead of your customized one for your daily XYing.

Re: Flatten Folder Failure

Posted: 18 Sep 2015 07:51
by armsys
Oh! Thanks RalphM for explaining the original purpose of ::fresh.