Jump to content

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


Recommended Posts

  • Developers
Posted
Just now, argumentum said:
ConsoleWrite(FileGetVersion("MSVCP140.dll") & @CRLF) ; 14.42.34433.0 ; new one just installed
ConsoleWrite(FileGetVersion("MSVCP140.dll") & @CRLF) ; 14.31.31103.0 ; older

Check for your version and demand it as a minimum ?

You are raising questions,  not giving exact solutions. ;) I have thought of all those questions already, but what i really would need is either a proper workaround from somebody or be able to let my setup crash so i can use the debugger to figure out why it crashes.

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

..a proper workaround.., would be to load/{Try} what does not in a newer version. Did not find in M$ any log change other than "try our new and shiny ...".
The installer should have a way to check for FileVersion and if/then/else. That was my exact solution.

11 minutes ago, Jos said:

or be able to let my setup crash so i can use the debugger to figure out why it crashes.

What I did is to create a VirtualMachine in Hyper-V and install the old version ( with working DLLs for them ) then upgrade.
If you can make such setup, you can make it crash.
That I may make believe that am better at crashing stuff but you to can become a "why does it happen to me" :D

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • Developers
Posted (edited)

Can you still make it Crash?
One option that might help is to change from a Dynamic to a Static linking, SO i can make a static linked ScITE x64 available to you or anybody having this crash and see if that solves it.

https://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/SciTEStatic/

It contains the x86 static linked version and the x64 static linked version now.

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
1 minute ago, Jos said:

or anybody having this crash and see if that solves it.

...that would take me to build another VM and repeat the process that lead to the crash. And I'd save the disk, or make checkpoints, to go back and forth with the VM's disk.
I'll have to do that in about 8 hours because I'm busy right now but yes, I can do it later this evening.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • Developers
Posted (edited)
4 minutes ago, argumentum said:

...that would take me to build another VM and repeat the process that lead to the crash. And I'd save the disk, or make checkpoints, to go back and forth with the VM's disk.
I'll have to do that in about 8 hours because I'm busy right now but yes, I can do it later this evening.

No worries, just hoped you hadn't used that sledgehammer on that VM yet.  
I'll just wait for the next person having the issue to see whether it could be solved this way.

This link now contains the x86 static linked version and the x64 static linked version of SciTE: now.https://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/SciTEStatic/

 

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

Hi @Jos,

to be honest, I lost the track or the overview about which version does what, which is for which purpose and so on.

I follow and participate in the Thread Visual Studio Code Extension currently available and future plans for SciTE? and also here at BETA: SciTE v5x & lua Dynamic_include and "Smart" AutoComplete for Vars/UDFs/Abbrevs .

May I ask you to summarize somewhere which SciTE or "SciTE4AutoIt3 Full installer" version contains what and where it can be downloaded? You have a link in your signature and have now distributed further links in (what feels like) numerous places, hence the confusion on my part.

I am grateful 🤝 .

Best regards
Sven

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

  • Developers
Posted (edited)

Only use this latest version....  All the other stuff will be closed soon.
This latest version has everything in it that was developed/changed in the last couple of years, including the Dynamic stuff.

As soon as the release candidate is proven to be working, then all webinfo and links will be updated.

 

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

Just wanted to say I just installed your last version (non-static), and all seems to be working for me, (Including VSCode detection).

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

Spoiler

"Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."

 

Posted
Spoiler
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\VSCodium]
@=hex(2):4f,00,70,00,65,00,6e,00,20,00,77,00,26,00,69,00,74,00,68,00,20,00,56,\
  00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,00,00
"Icon"=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,54,00,65,\
  00,73,00,74,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,\
  00,5c,00,56,00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,5c,00,56,00,53,00,\
  43,00,6f,00,64,00,69,00,75,00,6d,00,2e,00,65,00,78,00,65,00,00,00

[HKEY_CLASSES_ROOT\*\shell\VSCodium\command]
@=hex(2):22,00,43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,54,00,65,\
  00,73,00,74,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,\
  00,5c,00,56,00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,5c,00,56,00,53,00,\
  43,00,6f,00,64,00,69,00,75,00,6d,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,\
  00,25,00,31,00,22,00,00,00

[HKEY_CLASSES_ROOT\Applications\VSCodium.exe]

[HKEY_CLASSES_ROOT\Applications\VSCodium.exe\DefaultIcon]
@="C:\\Users\\Test\\AppData\\Local\\Programs\\VSCodium\\resources\\app\\resources\\win32\\default.ico"

[HKEY_CLASSES_ROOT\Applications\VSCodium.exe\shell]

[HKEY_CLASSES_ROOT\Applications\VSCodium.exe\shell\open]
"Icon"="\"C:\\Users\\Test\\AppData\\Local\\Programs\\VSCodium\\VSCodium.exe\""

[HKEY_CLASSES_ROOT\Applications\VSCodium.exe\shell\open\command]
@="\"C:\\Users\\Test\\AppData\\Local\\Programs\\VSCodium\\VSCodium.exe\" \"%1\""

[HKEY_CLASSES_ROOT\directory\background\shell\VSCodium]
@=hex(2):4f,00,70,00,65,00,6e,00,20,00,77,00,26,00,69,00,74,00,68,00,20,00,56,\
  00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,00,00
"Icon"=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,54,00,65,\
  00,73,00,74,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,\
  00,5c,00,56,00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,5c,00,56,00,53,00,\
  43,00,6f,00,64,00,69,00,75,00,6d,00,2e,00,65,00,78,00,65,00,00,00

[HKEY_CLASSES_ROOT\directory\background\shell\VSCodium\command]
@=hex(2):22,00,43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,54,00,65,\
  00,73,00,74,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,\
  00,5c,00,56,00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,5c,00,56,00,53,00,\
  43,00,6f,00,64,00,69,00,75,00,6d,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,\
  00,25,00,56,00,22,00,00,00

[HKEY_CLASSES_ROOT\directory\shell\VSCodium]
@=hex(2):4f,00,70,00,65,00,6e,00,20,00,77,00,26,00,69,00,74,00,68,00,20,00,56,\
  00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,00,00
"Icon"=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,54,00,65,\
  00,73,00,74,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,\
  00,5c,00,56,00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,5c,00,56,00,53,00,\
  43,00,6f,00,64,00,69,00,75,00,6d,00,2e,00,65,00,78,00,65,00,00,00

[HKEY_CLASSES_ROOT\directory\shell\VSCodium\command]
@=hex(2):22,00,43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,54,00,65,\
  00,73,00,74,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,\
  00,5c,00,56,00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,5c,00,56,00,53,00,\
  43,00,6f,00,64,00,69,00,75,00,6d,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,\
  00,25,00,56,00,22,00,00,00

[HKEY_CLASSES_ROOT\Drive\shell\VSCodium]
@=hex(2):4f,00,70,00,65,00,6e,00,20,00,77,00,26,00,69,00,74,00,68,00,20,00,56,\
  00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,00,00
"Icon"=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,54,00,65,\
  00,73,00,74,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,\
  00,5c,00,56,00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,5c,00,56,00,53,00,\
  43,00,6f,00,64,00,69,00,75,00,6d,00,2e,00,65,00,78,00,65,00,00,00

[HKEY_CLASSES_ROOT\Drive\shell\VSCodium\command]
@=hex(2):22,00,43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,54,00,65,\
  00,73,00,74,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,\
  00,5c,00,56,00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,5c,00,56,00,53,00,\
  43,00,6f,00,64,00,69,00,75,00,6d,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,\
  00,25,00,56,00,22,00,00,00

[HKEY_CLASSES_ROOT\vscodium]
"URL Protocol"=""
@="URL:vscodium"

[HKEY_CLASSES_ROOT\vscodium\shell]

[HKEY_CLASSES_ROOT\vscodium\shell\open]

[HKEY_CLASSES_ROOT\vscodium\shell\open\command]
@="\"C:\\Users\\Test\\AppData\\Local\\Programs\\VSCodium\\VSCodium.exe\" \"--open-url\" \"--\" \"%1\""

[HKEY_CLASSES_ROOT\VSCodium.js]
@="JavaScript Source File"
"AppUserModelID"="VSCodium.VSCodium"

[HKEY_CLASSES_ROOT\VSCodium.js\DefaultIcon]
@="C:\\Users\\Test\\AppData\\Local\\Programs\\VSCodium\\resources\\app\\resources\\win32\\javascript.ico"

[HKEY_CLASSES_ROOT\VSCodium.js\shell]

[HKEY_CLASSES_ROOT\VSCodium.js\shell\open]
"Icon"="\"C:\\Users\\Test\\AppData\\Local\\Programs\\VSCodium\\VSCodium.exe\""

[HKEY_CLASSES_ROOT\VSCodium.js\shell\open\command]
@="\"C:\\Users\\Test\\AppData\\Local\\Programs\\VSCodium\\VSCodium.exe\" \"%1\""

[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\VSCodium]
@=hex(2):4f,00,70,00,65,00,6e,00,20,00,77,00,26,00,69,00,74,00,68,00,20,00,56,\
  00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,00,00
"Icon"=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,54,00,65,\
  00,73,00,74,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,\
  00,5c,00,56,00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,5c,00,56,00,53,00,\
  43,00,6f,00,64,00,69,00,75,00,6d,00,2e,00,65,00,78,00,65,00,00,00

[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\VSCodium\command]
@=hex(2):22,00,43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,54,00,65,\
  00,73,00,74,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,\
  00,5c,00,56,00,53,00,43,00,6f,00,64,00,69,00,75,00,6d,00,5c,00,56,00,53,00,\
  43,00,6f,00,64,00,69,00,75,00,6d,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,\
  00,25,00,31,00,22,00,00,00

[HKEY_CURRENT_USER\SOFTWARE\Classes\vscodium]
"URL Protocol"=""
@="URL:vscodium"

[HKEY_CURRENT_USER\SOFTWARE\Classes\vscodium\shell]

[HKEY_CURRENT_USER\SOFTWARE\Classes\vscodium\shell\open]

[HKEY_CURRENT_USER\SOFTWARE\Classes\vscodium\shell\open\command]
@="\"C:\\Users\\Test\\AppData\\Local\\Programs\\VSCodium\\VSCodium.exe\" \"--open-url\" \"--\" \"%1\""

- add VSCodium support given that is the same ?

Spoiler

@Jos slaps @argumentum around with a large trout  :D

 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

Hi Jos,

Just wanted to say, I noticed the changes that were made to the Ctrl+H Header creator were reverted in this release. Was this intentional?

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

Spoiler

"Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."

 

  • Developers
Posted (edited)
55 minutes ago, donnyh13 said:

Hi Jos,

Just wanted to say, I noticed the changes that were made to the Ctrl+H Header creator were reverted in this release. Was this intentional?

Just checked the latest LUA code I posted in the previous available   SciTE5-with-DynamicFunctions  directory, and there are no changes with the current Beta installer in the AutoItTools.lua file (other that the comment changes I have reverted.  So could it be that this is an oops that is made longer ago?

EDIT: I will merge it back in and this time in the proper version of AutoItTools.lua and put in the next version of the installer before release.

EDIT2: Merged your changes again into AutoItTools.lua and created an updated Beta installer v25.205.1420.1. It only contains changes for SciTE:

  • Merged the Header changes from you
  • Updated The scanning through the *.au3 in the Dynamic LUA code so it can handle filenames containing a special character.
  • Changed AutoitWrapper to avoid getting a Set HotKeys error in case they are set to Blank.

Jos

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

Thanks Jos.

I just noticed it now, but it is possible it was a couple modifications ago... haven't had much time to use Scite/AutoIt for the last month or so.

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

Spoiler

"Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."

 

  • Developers
Posted

Uploaded a new beta installer that has the following updates:

  • Added VSCode wrapper to show output in user tasks
  • Added example user tasks
  • Fixed some /AddIncludes issues with constants and duplicate local includes

Just take a look at the tasks.json included in the autoit3Wrapper directory, which will allow you to add AutoIt3Wrapper tasks like /addincludes  and /au3stripper to the tasks in VScode.
These tasks will shell an already included powershell script (see below) in the AutoIt3Wrapper directory that will ensure that the output will be shown in the VScode terminal window.

The powershell wrapper included with some more detailed description:

# #
# # powershell script to wrap AutoIt3Wrapper to use in VSCODE and show the console output when ran as Task
# #

# When you get: File C:\Program Files (x86)\AutoIt3\SciTE\run_autoit.ps1 cannot be loaded
#      because running scripts is disabled on this system. For more information......
# The error message indicates that PowerShell script execution is disabled on your system.
# You need to enable script execution by setting the execution policy.
# You can do this by
# 1. running PowerShell as an administrator and executing the following command:
# 2. Do command: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# This command sets the execution policy to RemoteSigned for the current user, allowing locally created scripts to run.

param (
    [string]$AutoitPath,
    [string]$Options,
    [string]$ScriptFile
)
# Run AutoIt3 Wrapper
& "$autoitPath\Autoit3.exe" "$autoitPath\Scite\AutoIt3Wrapper\AutoIt3Wrapper.au3" $options /in "$scriptfile" | Write-Output
echo "--Done--"

Thoughts?

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 have a quick question.

Did the Call Tip box ever work when a continuation character is used (and go to the next line) when calling a function? I though it did, but see it doesn't now, nor in the version from December. Maybe I'm mistakenly remembering it used to? :)

MsgBox(0, _
"",

 

Edited by donnyh13

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

Spoiler

"Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."

 

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