paperfolder explicit save

Things you’d like to miss in the future...
Post Reply
jupe
Posts: 2749
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

paperfolder explicit save

Post by jupe »

I have noticed an issue using paperfolders while explicit save is enabled, repro steps using fresh:
  1. enable explicit save
  2. open existing paperfolder
  3. rename one of the files listed
  4. save paperfolder
  5. result = renamed file disappears
The new name seems to be saved into the PF correctly though, it's just removed from the list pane.

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

Re: paperfolder explicit save

Post by admin »

Confirmed. Should be fixed in next beta. :beer:

jupe
Posts: 2749
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: paperfolder explicit save

Post by jupe »

I noticed a new issue, possibly since/linked to virtual folders intro, made a repro script:

Code: Select all

  paperfolder(3:="oe0");
  paperfolder("TEMP", <xy>,, "n");
  paperfolder(3:="oe1");
  paperfolder("TEMP", <xytagdat>);
  msg 'I still see <xy> in the PF', 16;

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

Re: paperfolder explicit save

Post by admin »

You are right. Should be fixed in next beta.

jupe
Posts: 2749
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: paperfolder explicit save

Post by jupe »

I noticed something else when explicit save is enabled, when a PF is opened in a new tab (SC tab) the list is empty, if tab refreshed or switched away from and back it is ok, I made a repro if it helps:

Code: Select all

  paperfolder(3:="oe1");
  $file = "<xypaper>\tab_new_paper_bug.txt";
  writefile($file, "<pick *.exe '<xypath>'>", "n", "tu");
  goto "paper:$file";  // WORKS
  msg "Notice the list pane has contents";
  goto <xypath>; // ISSUE NOT PRESENT WHEN PF ALREADY OPEN IN LIST PANE WHEN tab() INVOKED
  tab("new", "paper:$file");    // PANE IS EMPTY, REFRESH AND IT'S OK
  msg "Notice the list pane is now empty", 16;
  delete 0, 1, $file;
So it first demo's it working, then not working when opened in a new tab.

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

Re: paperfolder explicit save

Post by admin »

Thanks, confirmed and fixed. :tup:

jupe
Posts: 2749
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: paperfolder explicit save

Post by jupe »

Don, I think there is possibly an issue when explicit save is enabled and using r mode of SC paperfolder, it lists the current pane, instead of the PF in that situation, should it instead return the file on disk content? Repro if it helps,

Code: Select all

  goto <xypath>;
  $pf = <date yyyymmddhhnnss>;
  paperfolder($pf, <xy>, , "n");
  paperfolder(3:="oe0");
  text paperfolder($pf, 3:="r"); // LISTS PF
  paperfolder(3:="oe1");
  text paperfolder($pf, 3:="r"); // LISTS PANE

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

Re: paperfolder explicit save

Post by admin »

Yes, this happens when the list does not show a PF currently. I think this bug is as old as SC paperfolder. It's fixed now.

Post Reply