VF results not matching QS

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

: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: 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: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

VF results not matching QS

Post by jupe »

I am not entirely sure if this sort of slightly complex query is expected to work in GVF/VF/LF, although if using QS it does, maybe VF just has never been capable of this and I have just never tried previously, anyway I have knocked up a repro script to illustrate the issue, which has also exposed a couple other things that I think might need checking into anyway, even if I am just misusing VF first char negation.

Code: Select all

  $path = "<xyscripts>\LF_test";
  $ext  = "txt";
  $filter = "!(two | three) AND !Tags:test AND Ext:$ext";

  focus "P1";
  if (!exists($path)) { while ($i++ < 40) { new("$path\" . gettoken("one two three four five", rand(1, 5), " ", , rand(1, 2)) . ".$ext"); } }
  tab("new", $path);
  tagitems("tags", "test", quicksearch("/l=4 /fn", $path));
  filter $filter;
  focus "P2";
  tab("new", $path);
  #263; // INIT QS, ELSE BELOW QS DOESN'T WORK ON FIRST RUN
  goto quicksearch(":$filter /fn", $path, "|") . "?"; // THIS QS DOESN'T WORK ON FIRST RUN (I THINK BUG)
After running the script you should notice the correct results in the QS pane, but theoretically both panes should match? Initially I thought it may have had something to do with VFAllowMasterInvertOldWay, but I have tried both settings which didn't change the results, so just thought I'd see if you think it should work, but I made this report mainly because of the other issues, such as when I run the above script in fresh, without that second last line of #263 (which I used just to initialize QS) then the last line QS doesn't have a return, but from second run on is ok, this seems like a bug, you can test by just commenting out that line, and running in fresh.

Additionally I noticed that SyncSelect doesn't work (conditionally) when one of the panes is a manually invoked QS (maybe div issue), you can test via GUI after running above script, or text syncselect(, 1, , 2);

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

Re: VF results not matching QS

Post by admin »

VF does not support parentheses. Rewrite it as !two and !three AND !Tags:test AND Ext:txt to make it work.

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

Re: VF results not matching QS

Post by jupe »

Yes, thanks I already understood how to modify the pattern to make it work in VF, I was just using it in the example because I was mistakenly under the impression that the parsing logic between QS and VF was sync'd when you added them to the cell context menu, but now I see that VF only supports parentheses in a master invert situation.

The main reason for the post was the other 2 issues which are demo'd when using the repro script.

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

Re: VF results not matching QS

Post by admin »

Conc. #263; // INIT QS, ELSE BELOW QS DOESN'T WORK ON FIRST RUN:

Yes, confirmed, good bug! :bug: :tup: Took me an hour to get down to the heart of the problem. But I got it and fixed it.

PS: I'll look into SyncSelect tomorrow...

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

Re: VF results not matching QS

Post by jupe »

oooh I finally found a good bug! :P

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

Re: VF results not matching QS

Post by admin »

SyncSelect issue fixed.

BTW, mentioning bugs can really help get a point across. These are also good bugs:
To see the attached files, you need to log into the forum.

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

Re: VF results not matching QS

Post by jupe »

Confirmed both fixed in v23.70.0208 :cup:

Thanks for your effort fixing the QS issue, it took me a while to understand that one.

Post Reply