Jump to content

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


Recommended Posts

Posted
  On 10/25/2022 at 7:56 AM, Jos said:

I assume this func is also found via the standard defined include paths?

Expand  

Yes in the testing DevEnv which I sent you via email a week ago or so. 

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/25/2022 at 8:46 AM, mLipok said:

Yes in the testing DevEnv which I sent you via email a week ago or so. 

Expand  

I alway stuff delete after I tested and solved/cleared the issue to keep things clean, but:

When the func is found in a standard library then that is what will be used.

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)

But why the path are relative instead absolute/direct path ?

Edit

I mean path inserted in #include statement

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
  On 10/25/2022 at 8:49 AM, mLipok said:

But why the path are relative instead absolute/direct path ?

Edit

I mean path inserted in #include statement

Expand  

When the include is part of the Registry directories, no absolute path is used as AutoIt3 will find 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 10/25/2022 at 10:49 AM, Jos said:

When the include is part of the Registry directories

Expand  

they are not part of Registry entries
They are declared by:

#SciTE4AutoIt3_Dynamic_Include_Path=;C:\AutoItPortable\MyIncludeSet\mLipok;=;C:\AutoItPortable\MyIncludeSet\OtherMembers;C:\AutoItPortable\MyIncludeSet\Pri

 

And as I saw in Opening Post:

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

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:
dynamic_complete4.png

Expand  

that you are using 

#SciTE4AutoIt3_Dynamic_Include_Path=;includes;

which gives you

#include "inlcudes\_SciTE.au3"

so I was expecting that all my path will be also used to bulid the include path.

 

I hope now you will understand what I'm refering for.

 

EDIT:
I mean 
my:

#SciTE4AutoIt3_Dynamic_Include_Path=;C:\AutoItPortable\MyIncludeSet\mLipok;

should gives:

#include "C:\AutoItPortable\MyIncludeSet\mLipok\debuging.au3"

instead current:

#include <debuging.au3>


 

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
  On 10/25/2022 at 11:16 AM, mLipok said:

hat you are using 

#SciTE4AutoIt3_Dynamic_Include_Path=;includes;

which gives you

#include "inlcudes\_SciTE.au3"

so I was expecting that all my path will be also used to bulid the include path.

 

Expand  

Correct ...   that is the way it works.... and when it doesn't work for you in that way then, as always....  need the logfile to see what is happening and preferable a simple reproducer!  (No need for the whole SciTE setup as that will not work on my PV anyways as that has an installed version)

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 10/25/2022 at 11:42 AM, Jos said:

need the logfile to see what is happening and preferable a simple reproducer!

Expand  

Reproducer attached.

unpack the zip file to C drive and open: c:\JosTesting\Project_1\main.au3 

#Region ; *** Dynamically added Include files ***
#include <include_test1.au3>                                 ; added:10/25/22 13:50:40
#include "projecspecificinclude\include_test2.au3"           ; added:10/25/22 13:53:30
#EndRegion ; *** Dynamically added Include files ***

#SciTE4AutoIt3_Dynamic_Include_Path=;C:\JosTesting\Include;c:\JosTesting\Project_1\ProjecSpecificInclude\;

_Jos_Example1()
_Jos_Example2()

From what I was able to notice, it does not work well when the specified path is outside the main script path.
In my case

 C:\JosTesting\Include is not located internally in c:\JosTesting\Project_1\main.au3 path.

And thus I get:

#include <include_test1.au3>

instead expected:

#include "C:\JosTesting\Include\include_test1.au3"

 

JosTesting.zipFetching info...

 

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

Thanks for the reproducer and think I got that fixed now in the current available beta zip file.
It should no use the full path when in isn't in the same subdir as the MasterScript.

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

Thanks.
It works as expected:

#Region ; *** Dynamically added Include files ***
#include "c:\jostesting\include\include_test1.au3"           ; added:10/26/22 10:31:12
#include "projecspecificinclude\include_test2.au3"           ; added:10/26/22 10:31:20
#EndRegion ; *** Dynamically added Include files ***

#SciTE4AutoIt3_Dynamic_Include_Path=;C:\JosTesting\Include;c:\JosTesting\Project_1\ProjecSpecificInclude\;

_Jos_Example1()
_Jos_Example2()

btw.
Could you also somehow keep "correct/source" case sensitivity in file path ?

 

I mean:

#include "c:\JosTesting\Include\include_test1.au3"           ; added:10/26/22 10:31:12

instead:

#include "c:\jostesting\include\include_test1.au3"           ; added:10/26/22 10:31:12

 

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/26/2022 at 8:34 AM, mLipok said:

Could you also somehow keep "correct/source" case sensitivity in file path ?

Expand  

.... sure ....   will be in the next version later today....

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

Uploaded a new Beta with the ProperCase directorynames.
I've also changed the behavior of unsaved "Untitled *" files:  the new autocomplete/dynamic includes will be switched off and revert to the standard autocomplete functionality.

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 9/20/2022 at 6:13 PM, Jos said:

Same place as before! <snip>

Expand  

Downloaded and it works fine.

Thanks.
I will keep testing one more week ;)

 

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

Please consider to add at the top of list all matched internal AutoIt functions and keywords

for example I want to finish ForNext loop and I can't just simply hit enter

image.png.49dc5729f2de9675145e613a0c591194.png

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/28/2022 at 12:23 AM, mLipok said:

for example I want to finish ForNext loop and I can't just simply hit enter

Expand  

I see the Next disappears after typing the last letter of Next, which shouldn't happen and indeed also am missing items there. 
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.
  :)

  • Developers
Posted

Just uploaded a updates zip file that contains a fix for the regression introduced in the previous version which wouldn't show the standard Funcs & Keywords anymore in the AutoComplete dropdown list.

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. Works fine:

image.png.fda2589b8994257adb81b03165285001.png

 

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 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 the last issue. Working on better description.

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

In the opening post in section "Smart AutoComplete function for Variables, Functions and Abbreviations"

  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 was trying to replicate this behavior ... I mean to use this feature.
But I can't make it to works as described.

Could you please check it if it works on your side ?

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 8/21/2022 at 4:08 PM, mLipok said:

why     _w     shows all this abbreviations:

Expand  

 

  On 10/28/2022 at 10:01 AM, mLipok said:

Could you please check it if it works on your side ?

Expand  

I made that regression when fixing the first linked issue, so need to revert that change and revisit that first issue. (great to have a GIT Repo to track back these kind of changes issues) :) 

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