Jump to content

7/02/2021: Uploaded a new release candidate of the new SciTE4AutoIt3.exe v21.203.1500.3


Jos
 Share

Recommended Posts

  • Moderators

wyf,

When you reply in future, please use the "Reply to this topic" button at the top of the thread or the "Reply to this topic" editor at the bottom rather than the "Quote" button - we know what we wrote and it just pads the thread unnecessarily. Thanks in advance for your cooperation.

M23

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:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Developers
3 hours ago, wyf said:

Sorry, I don't understand how your test method operating.

Comment a few lines in the SciTEStartup.lua file like this:

-- Load all the Lua files.
LoadLuaFile("Class.lua")    -- Always load first.
LoadLuaFile("Common.lua")   -- Always load second.
--LoadLuaFile("AutoItPixmap.lua")
--LoadLuaFile("AutoHScroll.lua")
--LoadLuaFile("AutoItAutoComplete.lua")
--LoadLuaFile("LUAAutoComplete.lua")
LoadLuaFile("AutoItIndentFix.lua")
LoadLuaFile("EdgeMode.lua")
LoadLuaFile("SmartAutoCompleteHide.lua")
LoadLuaFile("Tools.lua")
LoadLuaFile("AutoItTools.lua")
LoadLuaFile("AutoItGotoDefinition.lua")
LoadLuaFile("SciTE_extras.lua")
if os.getenv("SCITE_USERHOME") ~= nil then
    f = io.open(os.getenv("SCITE_USERHOME") .. "\\PersonalTools.lua")
    if f ~= nil then
        LoadLuaFile("PersonalTools.lua",os.getenv ("SCITE_USERHOME") .. "\\")
        f:close()
    end
else
    f = io.open(os.getenv("USERPROFILE") .. "\\PersonalTools.lua")
    if f ~= nil then
        LoadLuaFile("PersonalTools.lua",os.getenv ("USERPROFILE") .. "\\")
        f:close()
    end
end

and try if it still goes wrong. When it does add the next 4:

-- Load all the Lua files.
LoadLuaFile("Class.lua")    -- Always load first.
LoadLuaFile("Common.lua")   -- Always load second.
--LoadLuaFile("AutoItPixmap.lua")
--LoadLuaFile("AutoHScroll.lua")
--LoadLuaFile("AutoItAutoComplete.lua")
--LoadLuaFile("LUAAutoComplete.lua")
--LoadLuaFile("AutoItIndentFix.lua")
--LoadLuaFile("EdgeMode.lua")
--LoadLuaFile("SmartAutoCompleteHide.lua")
--LoadLuaFile("Tools.lua")
LoadLuaFile("AutoItTools.lua")
LoadLuaFile("AutoItGotoDefinition.lua")
LoadLuaFile("SciTE_extras.lua")
if os.getenv("SCITE_USERHOME") ~= nil then
    f = io.open(os.getenv("SCITE_USERHOME") .. "\\PersonalTools.lua")
    if f ~= nil then
        LoadLuaFile("PersonalTools.lua",os.getenv ("SCITE_USERHOME") .. "\\")
        f:close()
    end
else
    f = io.open(os.getenv("USERPROFILE") .. "\\PersonalTools.lua")
    if f ~= nil then
        LoadLuaFile("PersonalTools.lua",os.getenv ("USERPROFILE") .. "\\")
        f:close()
    end
end

Continue until all but the first 2 lines with LoadLuaFile() lines are commented.

When any comment block solves the issue then uncomment one by one until the issue returns.

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

Link to comment
Share on other sites

  • Developers

Ok, so next please change line 17 in that file to:

self.Debug = true

... and try again and tell me what the debug output is in the console. My guess is some sort of endless loop.

This in my output for an Enter in an empty file:

Debug: *** Enter detected => Start Indent checking
Debug: +### processing line:0 Curr_firstword::      Next_firstword:::      Next2_firstword::
Debug:  Line: 0 -------------------------------------------------------
Debug:  Curr_foldLvl:1024 Curr_lev:1024   Curr_IsFoldHeader    :false        Parent_line:-1        Parent_foldvl: -1  fold_firstword:  fold_lastword:
Debug:  Prev_foldLvl:1024 Prev_lev:1024   Prev_IsFoldHeader    :false   Prev_Parent_line:-1   Prev_Parent_foldLvl: -2
Debug:  Next_foldLvl:1024 Next_lev:1024   Next_IsFoldHeader    :false   Next_Parent_line:-1   Next_Parent_foldLvl: 0

 

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

Link to comment
Share on other sites

  • Developers

No messages but it is hanging? 

You did uncomment line ?

LoadLuaFile("AutoItIndentFix.lua")

 

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

Link to comment
Share on other sites

  • Developers

Sorry but I lost you now!

You said that when you comment "--LoadLuaFile("AutoItIndentFix.lua")" the problem is gone. 
Doesn't the problem return when you uncomment that line? 

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

Link to comment
Share on other sites

Restore EventClass:BeginEvents() annotation
Uncomment LoadLuaFile("AutoItIndentFix.lua")

Change line 17 of AutoItIndentFix.lua to
self.Debug = true -- self.VK_RETURN = 0x0D

Blank script test carriage return is normal,
No messages displayed on the console

Edited by wyf
Link to comment
Share on other sites

  • Developers

...and also hanging?

6 minutes ago, wyf said:

self.Debug = true -- self.VK_RETURN = 0x0D

you mean?:

self.VK_RETURN = 0x0D
    self.Debug = true

 

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

Link to comment
Share on other sites

No hanging !

Uncomment EventClass: BeginEvents()
Uncomment LoadLuaFile("AutoItIndentFix.lua")

Change line 17 of AutoItIndentFix.lua to:

--------------------------------------------------------------------------------
function AutoItIndentFix:OnStartup()
    self.Debug = true
    -- self.Debug = false

 

It is normal to test carriage return with an empty script,

The console does not display any messages.

Edited by wyf
Link to comment
Share on other sites

  • Developers

That is not possible ....  then your still have another change in "SciTEStartup.lua" as that debug statement should show the messages I posted!

Make sure you go back to the status you have with the original installer ... and then check if you get the hang issue again and then do as I asked.

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

Link to comment
Share on other sites

Completely uninstall the previously installed AutoIt3,
Fresh install autoit-v3.3.14.5-setup.exe & SciTE4AutoIt3_V21.203.1500.1.exe,
Do not do any localization conversion search after installation! Do not load the SciTEUser.properties file.

Because the modification test has been done yesterday, after the new installation, the test:

1. Only modify AutoItIndentFix.lua:
- self.VK_RETURN = 0x0D Comment line 17
self.Debug = true modify false To true
Untitled empty script and carriage return are normal,
Scite.exe does not appear to hang!
No message appears on the console!

2. Comment - After LoadLuaFile("AutoItIndentFix.lua"):
Untitled empty script and carriage return are normal,
Scite.exe does not appear to hang!
No messages appear on the console!

And the code indentation format is normal.

System environment Windows 10 Professional 20H2 x 86

Can you tell you the specific modification of the circular message on the console?

 

SciTE.PNG

Edited by wyf
Link to comment
Share on other sites

  • Developers
4 hours ago, wyf said:

1. Only modify AutoItIndentFix.lua:
- self.VK_RETURN = 0x0D Comment line 17
self.Debug = true modify false To true

You Only need to change the line 

self.Debug = true

and not change anything on line:

self.VK_RETURN

 

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

Link to comment
Share on other sites

function AutoItIndentFix:OnStartup()
    self.Debug = true
    self.VK_RETURN = 0x0D
    self.Debug = false

Cancel or not cancel the comment of LoadLuaFile("AutoItIndentFix.lua"),

Test empty script, no hang, normal carriage return.

Link to comment
Share on other sites

  • Jos locked and unpinned this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...