Scripting Bugs

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:
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Scripting Bugs

Post by bdeshi »

admin wrote:OK, it depended on Configuration | Find Files & Branch View | Visual Filters | Show filter information in tab headers.

Next version will always work.
Great! thanks.

[split]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Scripting Bugs

Post by TheQwerty »

Ternary seems to be doing its own illogical thing.

Code: Select all

"Empty A - Expect trues" Global $a = ''; Sub '_test';
"False A - Expect falses" Global $a = false; Sub '_test';
"True A - Expect trues" Global $a = true; Sub '_test';

"_test"
  Global $a;
  $b = ($a == '' || $a == true);
  $c = ($a == '' || $a == true) ? true : false;echo "A: '$a'<crlf>B: $b<crlf>C: $c<crlf>B==C: " . ($b == $c);
:veryconfused:

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

Re: Scripting Bugs

Post by admin »

Bugs (yep, 2 independent bugs here) confirmed and fixed.

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

Re: Scripting Bugs

Post by TheQwerty »

Ternary fix confirmed in v15.00.0301.
Thanks!

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Scripting Bugs

Post by bdeshi »

Report() templates for CustomColumns can only retrieve values of the first 5 CCs.

Code: Select all

 text report("{custom 1}|{custom 2}|{custom 3}|{custom 4}|{custom 5}|{custom 6}", <curitem>);
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Scripting Bugs

Post by admin »

SammaySarkar wrote:Report() templates for CustomColumns can only retrieve values of the first 5 CCs.

Code: Select all

 text report("{custom 1}|{custom 2}|{custom 3}|{custom 4}|{custom 5}|{custom 6}", <curitem>);
Confirmed, only the 5 hard custom columns are supported.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Scripting Bugs

Post by bdeshi »

allow all.
This apparently supported all columns in the past, what's the reason for this change?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Scripting Bugs

Post by admin »

No, they have never been supported. Their nature is too different from the rest internally. Would need lots of heavy rewriting.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Scripting Bugs

Post by bdeshi »

How? forgive me, but as I see it, the first five CCs are completely interchangeable with all the others -- we can swap them at any time by editing, and report doesn't fail then ; seems there's nothing special about those first ones, other than they come predefined by default.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Scripting Bugs

Post by admin »

I made it appear like that. :)

PS: Try this to see a bit of the inner difference:

Code: Select all

text columnlayout(, "get");

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

Re: Scripting Bugs

Post by admin »

Next version you can report those columns via their captions. :cup:

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Scripting Bugs

Post by zer0 »

By the way of unwanted behaviour, I have to say that I do not like the fact that you cannot minimise XY when a script is running. What is the reason for this? I often run a script that takes 1-2 minutes to execute, so not allowing me to minimise XY seems a bit harsh.

Another kick in the teeth is that the message that pops up to say that you cannot minimise XY while a script is running actually pauses the running script. I mean, come on, if you are going to tell me that I cannot do something, do not delay something that is stopping me from doing what I want to do.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

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

Re: Scripting Bugs

Post by admin »

There is a reason for this:

Code: Select all

v8.90.0001 - 2010-03-11 21:38
    * Scripting: Experimentally it is now disallowed to minimize the 
      application while a script is running. Reason: Any modal forms 
      popped by a script while the application is minimized would block 
      the application.
Not sure though if this is still valid in Win8.1 and later, and no time to test now.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Scripting Bugs

Post by zer0 »

admin wrote:There is a reason for this:

Code: Select all

v8.90.0001 - 2010-03-11 21:38
    * Scripting: Experimentally it is now disallowed to minimize the 
      application while a script is running. Reason: Any modal forms 
      popped by a script while the application is minimized would block 
      the application.
That is all well and good if a script has any modal forms to pop-up. My script, for example, is a collection of folderreport() commands that dump to individual files. No pop-up forms, modal or otherwise. Clearly, my scenario does not fit the use case of the restriction that has been introduced, so I would appreciate if you could please either remove it or add logic that determines if a script meets the restriction criteria. Such broad, sweeping restriction seems unjustified.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

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

Re: Scripting Bugs

Post by admin »

Too difficult. I'll add a tweak: ScriptAllowMinimizeApp=1

Post Reply