Jump to content

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


Recommended Posts

Posted (edited)
  On 10/28/2022 at 6:42 PM, Jos said:

Updated the Beta zip file with some changes to the logic to hopefully now cover both properly. 

Expand  

Works fine. Thanks.

image.png.b5e96d221f866789e71430192d9159e7.png

 

IMHO: If no one else has found any other bugs, I think now this is a version ready for release to the public.

EDIT:
You can make a halloween release:

halloween-funny-happy-halloween.gif

 

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

  • Moderators
Posted

Jos,

I am quite happy with the way it works as well. Thank you very much for having taken so much time to get these new functionalities to work.

Steve G

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

I have found one more issue, must to check it.
You can see that the same functions shows 3 different lines in calltip
I must to investigate it.

image.thumb.png.43299b58b1293f2c52b1573afe333349.png

 

EDIT: I see them when I press CTRL + SHIFT + SPACE - they change rotationally

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)

 One issue is related to comment blocks. I mean commented functions are showed in calltips

Func _UWAGA1($sText)
    MsgBox($MB_OK + $MB_TOPMOST + $MB_ICONINFORMATION, 'UWAGA', $sText)
EndFunc   ;==>_UWAGA1

#cs
    Func _UWAGA2($sText)
    MsgBox($MB_OK + $MB_TOPMOST + $MB_ICONINFORMATION, 'UWAGA', $sText)
    EndFunc   ;==>_UWAGA2
#CE

_UWAGA

 

image.png.1c2d44529f13d49e5dddaa3c052d382c.png

image.png.bcb6b76054a8f739233e430ef9ab9d85.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

btw.
Why do tooltips show excess space after the function name and in front of the parenthesis?

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

using recent ZIP pack (31-10-2022) with this code:

#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_recursive_check=y
#SciTE4AutoIt3_Dynamic_Include=y

_UWAGA(

 

I get:

image.thumb.png.db3a625f14d1ee0ef0892cf5450228c6.png

And I notice that double backslashes are added.

 

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/2/2022 at 1:20 PM, mLipok said:

One issue is related to comment blocks. I mean commented functions are showed in calltips

Expand  

Second issue is related to the fact that I still have au3.user.calltips.api file which also shows the call tip.

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/2/2022 at 12:59 PM, mLipok said:

EDIT: I see them when I press CTRL + SHIFT + SPACE - they change rotationally

Expand  

Simply means the UDF is found at multiple places so is part of Multiple different (dynamic) API files you can find in the SCITEUSER_HOME or default directory.

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/2/2022 at 1:44 PM, mLipok said:

Why do tooltips show excess space after the function name and in front of the parenthesis?

Expand  

Where? .... Isn't there only one as standardly defined in the API files?  

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/2/2022 at 2:29 PM, mLipok said:

And I notice that double backslashes are added.

Expand  

Will check that one....  Where does the entry with double backslashes come from?  Your user api file? How does it 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 (edited)

Uploaded a new zip file to beta containing the following changes:

  • added one extra option to exclude the ABBREVS from AutoComplete with as default for them to be included:

    # Include Abbrevs in AutoComplete dropdown (default=y)
    autocomplete.au3.include_abbrevs=n
  • #AutoIt3Wrapper_Version directive is now taken into account for reading the Include files and takes president over the #SciTE4AutoIt3_Dynamic_Include_version & dynamic.include.version.  
  • Some more changes to the API dynamic generation used for Tooltips. They didn't always contain the proper relative include path correctly. 
Edited by Jos
fixed

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 one more issue.
Calltips are refreshed automatically but Enums/Variables names not.

Is this per design ?

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 11/3/2022 at 1:45 PM, jpm said:

autocomplete.au3.inlude_abbrevs=1 ???

in au3.properties

inlude = include ?

1 = y ?

Expand  

Sorry about that ....  fixed that in the latest ZIP file.  

... and yes:  1 is the same as y and they both will work in this case,  but all standard SciTE properties use 1 for y and 0 for no.

Thanks

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/2022 at 2:20 PM, mLipok said:

Is this per design ?

Expand  

ofcourse I guess...... but would you mind explaining what situation you are describing as my mindreading skills are zero.. ;) 

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/2/2022 at 3:01 PM, Jos said:

Where? .... Isn't there only one as standardly defined in the API files?  

Expand  

image.png.aaaef49e6d5b6b47a4930976c317d7c9.png

 

 

  Quote

-- Table: {6}
{
   ["_wd_capabilitiesdump"]="_WD_CapabilitiesDump ($s_Comment='')",
   ["_wd_capabilitiesadd"]="_WD_CapabilitiesAdd ($key, $value1=Default, $value2=Default)",
   ["@version@"]="27.07.2022|20:20|21˙039",
   ["_wd_capabilitiesstartup"]="_WD_CapabilitiesStartup ()",
   ["_wd_capabilitiesdefine"]="_WD_CapabilitiesDefine (ByRef $sCapabilityType, $sCapabilityName)",
   ["@includefile@"]="wd_capabilities.au3",
   ["@includepath@"]="z:\\!!!_SVN_AU3\\UDF_Forum\\Other_Members\\",
   ["_wd_capabilitiesget"]="_WD_CapabilitiesGet ()",
   ["@count@"]=5,
},
-- Table: {7}

Expand  

there is:

   ["_wd_capabilitiesadd"]="_WD_CapabilitiesAdd ($key, $value1=Default, $value2=Default)",

but IMHO should be

   ["_wd_capabilitiesadd"]="_WD_CapabilitiesAdd($key, $value1=Default, $value2=Default)",

 

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/2/2022 at 2:29 PM, mLipok said:

I get:

image.thumb.png.db3a625f14d1ee0ef0892cf5450228c6.png

And I notice that double backslashes are added.

Expand  

 

  On 11/2/2022 at 3:02 PM, Jos said:

Where does the entry with double backslashes come from?  Your user api file? How does it look?

Expand  

 

  Quote

-- Table: {72}
{
   ["_uwaga_errext"]="_UWAGA_ErrExt ($sDescription, $h_parent_windows=0, $v_msg_color=0xFFA0A0, $s_czy_debug_prefix='', $iError=@error, $iExtended=@extended)",
   ["_pytanie"]="_Pytanie ($sQuestionMessage, $h_parent_windows=0, $s_title='', $v_msg_color=Default, $sTEXT_RODO_GDPR='', $s_Comment='', $iError=@error, $iExtended=@extended)",
   ["_window_centergui"]="_Window_CenterGUI ($hGUI)",
   ["_katalog_wybierz_jezeli_nie_istnieje"]="_Katalog_Wybierz_jezeli_nie_istnieje (ByRef $sDirectory, $s_dodatkowy_opis='')",
   ["@version@"]="25.07.2022|20:27|56˙188",
   ["_pytanie_debug"]="_Pytanie_Debug ($s_text, $h_parent_windows=0)",
   ["_notaktka_czerwona"]="_NOTAKTKA_CZERWONA ($sTrescNotatki)",
   ["_array_mydisplay_2"]="_Array_MyDisplay_2 (ByRef $aToCheck, $aFunction=\"\", $MyDisplay_title=\"Wybierz elementy\", $MyDisplay_msg=\"Wybierz elementy\")",
   ["_pytanie_exitiffalse"]="_Pytanie_ExitIfFalse ($s_text, $h_parent_windows=0)",
   ["_dodaj_parametry_funkcji_array_mydisplay"]="_dodaj_parametry_funkcji_Array_MyDisplay (ByRef $aMyFunction, $sParm0, $sParm1, $sParm2)",
   ["_datesystemtonative"]="_DateSystemToNative ($sDateToConvert)",
   ["_gui__choose_options"]="_GUI__Choose_Options ($s_Description, $a_Options_List=\"\", $i_GUI_Left=Default, $i_GUI_Top=Default, $i_GUI_Width=Default, $hWnd_Parent=0)",
   ["_notaktka_zolta"]="_NOTAKTKA_ZOLTA ($sTrescNotatki)",
   ["_pytanie_konfiguracja"]="_Pytanie_konfiguracja ($s_text, $h_parent_windows=0)",
   ["_array_select"]="_Array_Select (ByRef $a_Source, $s_title, $s_Information, $b_ArrayHasHeader=True, $hWnd_Parent=0, $b_SINGLESEL=False)",
   ["_my_gui__podaj_date"]="_My_GUI__Podaj_Date ($sTekst, $bReturnAsAu3Date=True)",
   ["_uwaga"]="_UWAGA ($s_text, $h_parent_windows=0, $v_msg_color=Default, $s_czy_debug_prefix='', $i_GUI_Width=950, $i_GUI_Height=700, $iError=@error, $iExtended=@extended)",
   ["@includefile@"]="_ML_User_Interaction.au3",
   ["_informacja"]="_Informacja ($s_title, $s_info, $v_msg_color=0xFFFFE1, $h_parent_windows=0, $iError=@error, $iExtended=@extended)",
   ["_gui__choose_options__example"]="_GUI__Choose_Options__Example ($i_ScriptLineNumber)",
   ["_array_mydisplay"]="_Array_MyDisplay (ByRef $aToCheck, $aFunction=\"\", $MyDisplay_title=\"Wybierz elementy\", $MyDisplay_msg=\"Wybierz elementy\", $b_multiselect=True)",
   ["_uwaga_debug"]="_UWAGA_Debug ($s_text, $h_parent_windows=0, $v_msg_color=0xFFA0A0, $iError=@error, $iExtended=@extended)",
   ["_informacja_debug"]="_Informacja_Debug ($s_title, $s_info, $v_msg_color=0xFFFFE1, $iError=@error, $iExtended=@extended)",
   ["_pytanie2"]="_Pytanie2 ($sQuestionMessage, $sTEXT_RODO_GDPR='', $s_title='', $h_parent_windows=0, $v_msg_color=Default, $iError=@error, $iExtended=@extended)",
   ["@count@"]=23,
   ["@includepath@"]="z:\\!!!_SVN_AU3\\UDF_ML\\",
   ["_inicjalizuj_parametry_funkcji_array_mydisplay"]="_inicjalizuj_parametry_funkcji_Array_MyDisplay ()",
},
-- Table: {73}

Expand  

 

 

I think that the problem is related to :

  Quote

   ["@includepath@"]="z:\\!!!_SVN_AU3\\UDF_ML\\",

Expand  

which should be :

  Quote

   ["@includepath@"]="z:\!!!_SVN_AU3\UDF_ML\",

Expand  

or before they are displayed in CallTip this string should be parsed by replacing double backslashes to single backslash, at least if they are not at the begining of the path string

 

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/3/2022 at 2:20 PM, mLipok said:

I notice one more issue.
Calltips are refreshed automatically but Enums/Variables names not.

Is this per design ?

Expand  

I did some test - I was working on reproducer, and notice that this works fine with my reproducer.
This led me to conclusion that my specific case have some kind of my own specific issue which I have to find on my own and eventually back when I will be able to make reproducer of this specific issue.

 

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

When you put a few parentheses, the hint still appears, is that okay?

image.png.ec2d063334e54eb784cd0ef919b71dc1.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

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