Jump to content

BETA: SciTE v5x & lua Dynamic_include and "Smart" AutoComplete for Vars/UDFs/Abbrevs


Recommended Posts

Posted
  On 10/4/2022 at 11:44 AM, Jos said:

Calltips is a different from AutoComplete. Calltips will show info about known functions.
Are you saying that the regular CallTips still work but the User calltips do not? 

Expand  

Found what the reason was, of course my fault.
Nevermind.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 10/4/2022 at 11:46 AM, Jos said:

That shouldn't happen....   anyway for me to replicate this?

Expand  

Working on this.

Have one observation - after typing last y letter it shows single 2 items instead 3

image.png.ff51601e8bf1afc64d433cd0c08168e4.png

image.png.12f1c5d9ebcbd669430e9828de355e71.png

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 10/4/2022 at 1:22 PM, mLipok said:

I'll have a package ready tonight.

Expand  

today is the night ;)

 

I found out why it happens.

STEP BY STEP

1. open new script save them as test.au3

2. try to type 

  Quote

_arraydisp

Expand  

you will see single _ArrayDisplay in the popup call tips

image.png.8205af770704a273c876e14e807c71d0.png

3. add some fake functions and start typing _arraydisp

here is my result:

image.png.179c18274d06971255c07f53ccc11d23.png

4.

change 

_ArrayDisplay($aTemp)

to

_ArrayDisplay2($aTemp)

and check again by typing _arraydisp

my results:

image.png.14f847a5e8266aac3669d2cb6e7d2610.png

 

 

my testing script:

 

#Region ; *** Dynamically added Include files ***
#include <Array.au3>                                         ; added:10/11/22 23:00:03
#EndRegion ; *** Dynamically added Include files ***

_Example()
Func _Example()
    Local $aTemp[2]
    _ArrayDisplay2($aTemp)
EndFunc

_arrayd

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted

@mLipok, thanks for the testing and I was indeed able to replicate this so just uploaded a fix for that. 
I also noticed that using a tab on a dropdownlist wouldn't (always) add the #include statement at the top when missing and fixed that too. 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Works good.
I think that I do not have any more questions ... as so far.
Give me one more week of extensivly usage time.
And I think I would be able to do finall summary.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 10/4/2022 at 9:19 AM, mLipok said:

I still want to use au3.user.calltips.api in some scirpts/projects.
I have script where I do not use this new LUA autocomplete feature:

My issue is that SciTE do not popup caltips defined in au3.user.calltips.api  file.

So I ask:
Due to the new functionality (LUA autocomplete), the old ones (au3.user.calltips.api) have been disabled or should still work ?

Expand  

I have reproducer to this issue.
@Jos just a moment ago, I sent you email: AutoItPortable_for_JOS__testing_LUA.zip - part 4

Please take a  look when you find some spare time.

Regards,
Michał

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

@Jos I was able to take a look on your change which you mention in email.
Thanks for adding this new feature it works good.
Please describe it here.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

I think that  I still want to provide 2 things to be considered.
Currently working on testing and documenting.
Give me some more time week or two ;)

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted
  On 10/19/2022 at 6:10 PM, mLipok said:

@Jos I was able to take a look on your change which you mention in email.
Thanks for adding this new feature it works good.
Please describe it here.

Expand  

Guess you're talking about SciTE? 

No rush with that... Just play with it. ;) ...  The only other person that has responded in this extensive thread is also playing with so I honestly can't be bothered spending time on posting shit nobody else cares about.. or doesn't respond to.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

How this new awesome LUA features coexist with:

; Add required Include files by AutoIt3Wrapper. Obsolete with the Dynamic Include implementation
#AutoIt3Wrapper_Add_Includes=                   ;(Y/N) Add the used standard UDF include files. Will only run one time.

I see

  Quote

Obsolete with the Dynamic Include implementation

Expand  

Is this comment realted to the new LUA features ?

And how it coexist with:

#AutoIt3Wrapper_Autoit3Dir=                     ;Optionally override the AutoIt3 install directory to use.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted
  On 10/20/2022 at 11:57 AM, mLipok said:

Is this comment realted to the new LUA features ?

Expand  

Yes...  there is no need for it in AutoIt3Wrapper anymore... hence OBSOLETE.

  On 10/20/2022 at 11:57 AM, mLipok said:

And how it coexist with:

#AutoIt3Wrapper_Autoit3Dir=                     ;Optionally override the AutoIt3 install directory to use.
Expand  

what exactly is the question here?    coexistence with what exactly?
Just for clarity: Dynamic includes do not take this directive into account and works ONLY the way described in the docs for finding the available AutoIt3 include files & Functions.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

I still testing SciTEv5

here is what I get:

  Quote

!???.Dynamic Includes will skip duplicate includefile : z:\!!!_svn_au3\udf_ml\wd_helper_for_CEiDG.au3
!???.                            First found occurence: Z:\!!!_SVN_AU3\UDF_MLwd_helper_for_CEiDG.au3
!???.Dynamic Includes will skip duplicate includefile : z:\!!!_svn_au3\udf_ml\wd_helper_for_CEiDG.au3
!???.                            First found occurence: Z:\!!!_SVN_AU3\UDF_MLwd_helper_for_CEiDG.au3
!???.Dynamic Includes will skip duplicate includefile : z:\!!!_svn_au3\udf_ml\wd_helper_for_CEiDG.au3
!???.                            First found occurence: Z:\!!!_SVN_AU3\UDF_MLwd_helper_for_CEiDG.au3
 

Expand  

I notice that there is lack of backslash

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

a cosmetic thing in the log file

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 10/24/2022 at 7:46 PM, mLipok said:

skip duplicate includefile

Expand  

the same here: lack of space "include file"

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 10/24/2022 at 8:31 PM, Jos said:

it is assumed that the functionality is working as expected.

Expand  

Almost.

I still have one wish which for me is called issue.

But I have to test it well and take a look into documentation twice, before I open my mouth.

;)

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

@Jos I re read documentation and in relation to this statement:

When we then hit the Opening bracket or Space key, the required #include"includes\_SciTE.au3" line will be added within the existing or newly created #region:

I want to ask about this example:

#Region ; *** Dynamically added Include files ***
#include <Debugging.au3>                                     ; added:10/24/22 23:28:52
#EndRegion ; *** Dynamically added Include files ***
#SciTE4AutoIt3_Dynamic_Include_Path=;C:\AutoItPortable\MyIncludeSet\mLipok;=;C:\AutoItPortable\MyIncludeSet\OtherMembers;C:\AutoItPortable\MyIncludeSet\Priv
#SciTE4AutoIt3_Dynamic_Include_recursive_check=y
#SciTE4AutoIt3_Dynamic_Include=y

_MsgBox_IfDebug_Info(@ScriptLineNumber, 'testing')

why it adds:

#include <Debugging.au3>                                     ; added:10/24/22 23:28:52

instead:

#include "C:\AutoItPortable\MyIncludeSet\mLipok\Debugging.au3"                                     ; added:10/24/22 23:28:52

I ask because when I want to use CTRL+j   to jump to the function definition then I get error on my AutoIt portable version of my DevEnv (the same as I sent to you via email a week ago).

Edited by Jos

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 7/1/2022 at 2:30 PM, Jos said:

Example 2: When you type $Yes, the result will be:
dynamic_complete_ACorderVar.png

Expand  

 

I'm not able to make this feature to work

I test it with:

#SciTE4AutoIt3_Dynamic_Include_recursive_check=y
#SciTE4AutoIt3_Dynamic_Include=y

$yes

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted (edited)
  On 10/24/2022 at 9:45 PM, mLipok said:

I'm not able to make this feature to work

I test it with:

#SciTE4AutoIt3_Dynamic_Include_recursive_check=y
#SciTE4AutoIt3_Dynamic_Include=y

$yes

 

Expand  

This is not enough information for me to understand what you mean. ;)  What are you expecting to happen that isn't happening? example?

  On 10/24/2022 at 9:34 PM, mLipok said:

why it adds:

#include <Debugging.au3>                                     ; added:10/24/22 23:28:52

instead:

#include "C:\AutoItPortable\MyIncludeSet\mLipok\Debugging.au3"                                     ; added:10/24/22 23:28:52

 

Expand  

I think I understand this one and will have a look.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...