Jump to content

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


Recommended Posts

  • Developers
Posted
  On 11/7/2023 at 8:44 AM, mLipok said:

I have such setup:
 

#SciTE4AutoIt3_Dynamic_Include_Path=;z:\!!!_SVN_AU3\UDF_Forum\mLipok;z:\!!!_SVN_AU3\UDF_Forum\Other_Members;z:\!!!_SVN_AU3\UDF_ML
#SciTE4AutoIt3_Dynamic_Include=y                               ;dynamic.include=y/n
#SciTE4AutoIt3_Dynamic_Include_whiletyping=y                   ;dynamic.include.whiletyping=y/n
#SciTE4AutoIt3_Dynamic_Include_recursive_check=y               ;dynamic.include.recursive.check=n/y
#SciTE4AutoIt3_Dynamic_Include_use_local_cache=y               ;dynamic.include.use.local.cache=n/y
#SciTE4AutoIt3_Dynamic_Include_version=prod                    ;dynamic.include.version=prod/beta
#SciTE4AutoIt3_Dynamic_Include_verboselevel=2                  ;dynamic.include.verbose.level=0/1/2
#SciTE4AutoIt3_Dynamic_Include_Always_Update_Local_File=n      ;dynamic.include.always.update.local.file=n/y
#SciTE4AutoIt3_AutoItTools_debug=n                             ;debug.autoIttools=n/y
#SciTE4AutoIt3_AutoItDynamicIncludes_debug=n                   ;debug.AutoItDynamicIncludes=n/y
#SciTE4AutoIt3_AutoItAutocomplete_debug=n                      ;debug.autoitautocomplet=n/y
#SciTE4AutoIt3_AutoItGotoDefinition_debug=n                    ;debug.autoitgotodefinition=n/y
#SciTE4AutoIt3_AutoItIndentFix_debug=n                         ;debug.autoitindentfix=n/y

 

_ADO_Execute(

and get:

So my question is:

Could you be so nice and also add timing to CTRL+J feature ?

Expand  

What about you tell me first what your findings are with the latest version when using Ctrl+j ?

Is it better ...the same. ...  Worse?

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/7/2023 at 9:54 PM, donnyh13 said:

Hi Jos, I was wondering, since updating to this BETA Scite, when I Ctrl+Break a script, I now always get this message in the output:

Is this normal?

Expand  

I'll have a look to see if I get the same. Working on Autoit3wrapper anyway to get rid of mailslots.

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
  On 11/7/2023 at 10:18 PM, Jos said:

What about you tell me first what your findings are with the latest version when using Ctrl+j ?

Is it better ...the same. ...  Worse?

Expand  

In some cases it is very fast, in another still slow.

In each cases I use the same setup.

I was looking for the rule, as for now I do not know why they differs.

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

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.  

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

> new time: 11.90  
:(

EDIT:Does this mean that the OLD JUMP technique was used instead of NEW JUMP (tables from dynamic lua)?

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

 just uncomment lines 132 & 373 in AutoitGotoDefinition.lua to enable them. 

Expand  

Could you link this to the following setting?

  Quote

#SciTE4AutoIt3_Dynamic_Include_verboselevel=0                  ;dynamic.include.verbose.level=0/1/2 ;  0=disabled; 1=Timing per Function; 2=1+Total timing

Expand  

 

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

> new time: 11.90  
:(

Expand  

this was first usage

any further less than 2

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 11/8/2023 at 9:29 AM, mLipok said:

this was first usage

any further less than 2

Expand  

well that must be again a pretty big project, but as always, when you want me to have a look you will have to give me a reproducer zip so I can see what is happening. :) 

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

give me a reproducer zip

Expand  

ASAP

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

I noticed there are a few annoying quirks in the Indent Fix stull like going to the wrong like on a newline. 
Will try to see to that tomorrow.

Noticed while doing the rewrite of AutoIt3Wrapper using IPC and also getting rid of the tmp file as indicators for running processes. 

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 notice that F1 on   #SciTE4AutoIt3_****** directive still open AutoIt HelpFile instead SciTE4AutoIt HelpFile.
Is this related to AutoIt3Help.exe ?

Can you fix it ?

 

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

I noticed there are a few annoying quirks in the Indent Fix

Expand  

Okay, thanks Jos, I did notice that too, but I wasn't sure if you were done rewriting the indenter yet or not. It's  good to report bugs for this now then?

Edited by donnyh13

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

  • Developers
Posted
  On 11/8/2023 at 9:03 PM, mLipok said:

I notice that F1 on   #SciTE4AutoIt3_****** directive still open AutoIt HelpFile instead SciTE4AutoIt HelpFile.
Is this related to AutoIt3Help.exe ?

Can you fix it ?

 

Expand  

Is already done but part of the AutoIt3 installer. I have copied the updated AutoIt3Help.exe to the Beta dir for Dynamic stuff, so you can already use it. :) 

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/8/2023 at 9:15 PM, donnyh13 said:

Okay, thanks Jos, I did notice that too, but I wasn't sure if you were done rewriting the indenter yet or not. It's  good to report bugs for this now then?

Expand  

Not really unless there are these kind of real quicks as I still need to start that rewrite. improper indenting is what it is right now, but wrong lines after Enter is not good and very annoying, so will try to tackle that soon first  ! :)

EDIT: Uploaded an updated zip file which hopefully fixes that wrong line issue for now...   still a lot of work there to do.

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

Hi Jos,

I just noticed the Dynamic Includes seems to have another bug?

I am working on a newer script, and typed _array

autocompleted ArrayDisplay, but no include is added?

I turned on debugging in my user Properties, and see this in the log:

  Quote

!07:58:30 AutoItDynamicIncludes->AddMissingIncludes->! ===== Start AddMissingIncludes for wordcheck to current script C:\Users\Owner\Desktop\Spell Check Project\SpellCheck.au3
-07:58:30 AutoItDynamicIncludes->AddMissingIncludes->reload_apis->->reloadproperties:
>07:58:30 AutoItDynamicIncludes->AddMissingIncludes->>>2 wordcheck Word:4719-4732 _ArrayDisplay 15 0 15
 07:58:30 AutoItDynamicIncludes->AddMissingIncludes-> => 119 118 -1 | _ArrayDisplay 15 0
 07:58:30 AutoItDynamicIncludes->AddMissingIncludes->  Add atSourceWords Word _ArrayDisplay :15
 07:58:30 AutoItDynamicIncludes->AddMissingIncludes->### Start processing found words
 07:58:30 AutoItDynamicIncludes->AddMissingIncludes-> -> _arraydisplay 15
 07:58:30 AutoItDynamicIncludes->AddMissingIncludes->==> Initial STD tableload: 3589
>07:58:30 AutoItDynamicIncludes->AddMissingIncludes->> STD Func: _arraydisplay array.au3 Array.au3 C:\Program Files (x86)\AutoIt3\include\
>07:58:30 AutoItDynamicIncludes->AddMissingIncludes->> already included Array.au3
-07:58:30 AutoItDynamicIncludes->AddMissingIncludes->- UDFs         Processed:1
-07:58:30 AutoItDynamicIncludes->AddMissingIncludes->- Global Const Processed:0

Expand  

I specifically notice:

  Quote

>07:58:30 AutoItDynamicIncludes->AddMissingIncludes->> already included Array.au3

Expand  

The only place I have #Include Array at currently is in some commented out code (using #cs #ce).

If you autocomplete the ArrayDisplay in here, it will not add the Include.

#cs
#include <Array.au3>
#ce

_ArrayDisp

 

Edited by donnyh13

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

  • Developers
Posted (edited)
  On 11/9/2023 at 3:08 PM, donnyh13 said:
#cs
#include <Array.au3>
#ce
Expand  

Yea...  I understand as I think the script tests on "^#include "  to check whether the include is already there. ...    There are soooo many exceptions that I am seriously wondering this will ever be ready. The other question one could have is that the script is right and it was commented...so should it then be added again? :) 

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 (edited)
  On 11/10/2023 at 8:05 AM, Jos said:

I am seriously wondering this will ever be ready

Expand  

Ya, I hear you. Perhaps this isn't a big problem....

I was wondering though, when the script searches for the Includes already existing, and makes the table, can it not do a test for lexer styling? e.g. comment? ( I don't mean at the time of dynamic including, just at the time the table is made in the beginning?) I may be speaking non-sense, as I haven't really studied your code to see how it all works. But just a thought.

Then again that would open up other cans of worms probably.

I think it's good Jos, thanks for your dedicated work!

  On 11/10/2023 at 8:05 AM, Jos said:

so should it then be added again? :)

Expand  

Yes, that is true, it was user error more than script error, I suppose... :)

Edited by donnyh13

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

  • Developers
Posted

The issue with trying to find the style in other include files is that you need to open them and lex with scite before they are know and my guess is you can get yourself a coffee each time it requires an refresh of those tables. 😏

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)

Right, I forgot it checked inside the Include files too for Includes....

Its good as is Jos, I think. These additions are great already! ...

Edited by donnyh13

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

  Reveal hidden contents

 

Posted (edited)

Hi Jos,

In the AutoComplete, when I type double underscore, "__" (some letters) , the Autocomplete search seems to only be recognizing a single underscore "_", and consequently mainly showing me regular functions first, rather than internal ones. But if I only type a double underscore, "__", it seems to be working correctly?

[snip]

Edited by donnyh13

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