Jump to content

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


Recommended Posts

  • Developers
Posted

Yea...  that regex is a complex business with the flexibility I am looking for ,....  just updated the Zip file will a small change for that.
It also contains some tests for the commented includefiles in the current master script as that is already lexer-ed it is easier to check.

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
  On 11/13/2023 at 8:44 AM, Jos said:

current master script as that is already lexer-ed it is easier to check

Expand  

Sounds perfect. Thanks Jos!

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

Posted

@Jos I notice some issues.
Typing by hand 2314 in this following small example

_Example()
Func _Example2314()

EndFunc

in console I get this redundant information :

  Quote

_.*example2
_.*example2
_.*example2
_.*example2
_.*example23
_.*example23
_.*example23
_.*example23
_.*example231
_.*example231
_.*example231
_.*example231
_.*example2314
_.*example2314
_.*example2314
_.*example2314
 

Expand  

 

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 11/8/2023 at 8:13 AM, Jos said:

Well, the timer is actually in there already when I was testing but commented out....   just uncomment lines 132 & 373 in AutoitGotoDefinition.lua to enable them.  

Expand  

is it still possible to enable logging time for jumping in function ?

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 11/13/2023 at 7:32 PM, mLipok said:

in console I get this redundant information :

Expand  

I think Jos forgot to comment line 794 in AutoItAutoComplete.lua

794             print(regexword)

 

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

  • Developers
Posted

 

  On 11/13/2023 at 7:34 PM, mLipok said:

is it still possible to enable logging time for jumping in function ?

Expand  

Sure, uncomment those lines as indicated for now! ;) 

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 (edited)

Hi Jos,

I was wondering if you could give me a little bit of clarification of the files Dynamic Include, Call tip,  etc., scans?  According to the help, it would seem to be only files in the Script Dir, plus AutoIt Includes folder, any funcs/ variables in the current script, plus any includes indicated by #SciTE4AutoIt3_Dynamic_Include_Path=;.  — But not any files indicated by #Include ... — Does that cover it?

Edited by donnyh13

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

  • Developers
Posted

I guess/hope that most of it is described in the Beta doc page, but things could have changed a bit since then: 

 https://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/SciTE5-with-DynamicFunctions/doc/SciTE4AutoIt3-autocomplete_dynamic_includes.html

  Quote

These are all the Func's (UDFs) that will be recognized by the dynamic include process:

  1. All Funcs in the default autoit/includes directory with format _ABC(), undocumented Funcs will be added to AutoComplete
  2. All Funcs except __*.au3 from all extra *.au3 Files in the openfile= paths that have a #include-once in it, are added to Style 16 (UserUDFs).
  3. All Funcs from the current script file are added to style 17 (InFIleUDFs)
  4. All Gobal Const Variables defined in any of the previous defined paths that are defined in a *constants*.au3 scriptfile which also includes #include-once.
  5. All Funcs except __*.au3 from all *.au3 Files in the current script directory are added to Style 16 (UserUDFs).
  6. All Funcs except __*.au3 from all *.au3 Files in the directories defined with Directive:#SciTE4AutoIt3_Dynamic_Include_Path=;Includes\relative\path;d;\includes\absolute\path

    Items 1-4 are read from those directories one time during the life of SciTE, but only when the first *.au3 files is opened. (slows it down ~0.5 sec one time to build all required tables)
    Items 5-6 are read each time an *au3 file is Opened or Switched to its Tab.  (slows it down ~0.1 - 0.2 secs per change of tab and at Save time,  to build all required current file tables)
Expand  

Guess I should add that any already included file is also scanned for Funcs and shown in the dropdown.

Does that cover your question? 

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 (edited)
  On 11/17/2023 at 2:30 PM, Jos said:

Does that cover your question?

Expand  

Yes, that answers it, I think. Thank you. I had read the help, but I thought it was also scanning the include files also, but didn't see mention of it.

It scans Includes in the present file for functions, but not includes inside of includes then, correct? If not, then I may have a bug report...

If you have a folder on your desktop, folder 1, and place two scripts in it, Script 1, Script 2. Script 1 includes Script 2.

Create another folder in Folder 1, called folder 2. Create a script in it, Script 3, and include Script 1.

You can call functions in Script 1, but not in Script 2.

Edited by donnyh13

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

Posted (edited)

Hi Jos,

I think I found another bug.... Calling a function in a function call brings up the wrong call tip.

Local $sString

Func _FUNC1($sParam1, $sParam2)

EndFunc

Func _FUNC2($sString1, $sString2)

EndFunc

_FUNC1($sString, _FUNC2(

1.png.1b543a0216f9a4ed8373213e515e87d9.png

Edited by donnyh13

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

  • Developers
Posted (edited)
  On 11/19/2023 at 8:36 PM, donnyh13 said:

Calling a function in a function call brings up the wrong call tip.

Expand  

indeed,  the carret isn't at the correct position yet when calling the internal function for calltip.
This is corrected by adding this line to AutoItAutoComplete.lua line below line 645:

ncarretpos = ncarretpos + 1
                    editor.SelectionNCaret[editor.MainSelection] = ncarretpos
                    scite.MenuCommand(IDM_SHOWCALLTIP) -- Show ToolTip for Functions

 

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.
  :)

Posted

Confirmed as fixed.
Thanks.

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 11/20/2023 at 9:28 AM, Jos said:

This is corrected by adding this line to AutoItAutoComplete.lua line below line 645:

Expand  

Works great, thanks Jos!

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

  • 2 weeks later...
Posted

Hey Jos,

I'm not sure if this pertains to you? But I think it does....

When I press cancel on the compile page (Ctrl+f7), or the X, when I've decided not to go forward with a compile, the compile script (Au3Wrapper?) still goes through and unfolds and (sometimes?) refolds all of my folds, and according to the output, removes and reinserts my bookmarks. Is this intentional? It seems needless to process those when I've decided not to compile... unless I am missing something?

 

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

  • Developers
Posted (edited)
  On 11/29/2023 at 11:41 AM, donnyh13 said:

I'm not sure if this pertains to you? But I think it does....

Expand  

yea... guess so.. ;) 

  On 11/29/2023 at 11:41 AM, donnyh13 said:

When I press cancel on the compile page (Ctrl+f7),

Expand  

Yea there is no need to that... will have  look at that ... tnx

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.
  :)

Posted

Morning Jos,

Found another minor bug.

Backspacing with multiple selections in an include only backspaces the main selection line.

1.png.6f56f0a5811ae2f3e5fd5f90203f43d1.png

Thank you,

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

  • Developers
Posted (edited)

Changed the logic to a similar logic for the Var&Func AutoComplete, which should fix this. new zip available.

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.
  :)

  • Developers
Posted (edited)
  On 11/29/2023 at 11:41 AM, donnyh13 said:

Hey Jos,

I'm not sure if this pertains to you? But I think it does....

When I press cancel on the compile page (Ctrl+f7), or the X, when I've decided not to go forward with a compile, the compile script (Au3Wrapper?) still goes through and unfolds and (sometimes?) refolds all of my folds, and according to the output, removes and reinserts my bookmarks. Is this intentional? It seems needless to process those when I've decided not to compile... unless I am missing something?

 

Expand  

I have uploaded an new beta for Autoit3Wrapper.au3 which has the rewrite of mailslot to IPC and also include a extra test for this. 

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.
  :)

  • Developers
Posted
  On 11/3/2023 at 11:54 AM, Jos said:

Next version of SciTE will be out soon (SciTE 5.3.9) with:
 

They were both pretty minor changes and Neil was willing to put them both in. The second one was a Mod I've put in many moons ago so can rip that out now. :) 

Expand  

Just uploaded SciTEx86.zip & SciTEx64.zip which contain the Latest SciTE 5.4.0 versions. 

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

Thanks Jos!

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

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...