Jump to content

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


Jos
 Share

Recommended Posts

  • Developers

I have no idea what you are changing anymore, but all you need to do is start with a clean install ( So NO CHANGES) and only change one line in AutoItIndentFix.lua to:

self.Debug = true

... but is this Clean install hanging before you make the change?

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

This fresh installation will hang before making changes.

 

function AutoItIndentFix:OnStartup()
    self.VK_RETURN = 0x0D
    self.Debug = true
    -- The number of lines to look-back when trying to determine indentation.

Console output : 
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
Debug: *** Enter detected => Start Indent checking
Debug: +### processing line:1 Curr_firstword::      Next_firstword:::      Next2_firstword::
Debug:  Line: 1 -------------------------------------------------------
Debug:  Curr_foldLvl:1024 Curr_lev:1024   Curr_IsFoldHeader    :false        Parent_line:-1        Parent_foldvl: -1  fold_firstword:  fold_lastword:
Debug:  Prev_foldLvl:67109888 Prev_lev:67109888   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
Debug: *** Enter detected => Start Indent checking
Debug: +### processing line:2 Curr_firstword::      Next_firstword:::      Next2_firstword::
Debug:  Line: 2 -------------------------------------------------------
Debug:  Curr_foldLvl:1024 Curr_lev:1024   Curr_IsFoldHeader    :false        Parent_line:-1        Parent_foldvl: -1  fold_firstword:  fold_lastword:
Debug:  Prev_foldLvl:67109888 Prev_lev:67109888   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

Conclusion: Must comment self.VK_RETURN = 0x0D

Edited by wyf
Link to comment
Share on other sites

  • Developers

So you hit one time Enter and then it goes into this endless loop and is hanging?

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

A carriage return has only one message, such as:
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
Debug: *** Enter detected => Start Indent checking
Debug: +### processing line:1 Curr_firstword:: Next_firstword::: Next2_firstword::

The second carriage return is for the second message:
Debug: Line: 0 --------------------------------------------- ----------
Transform to:
Debug: Line: 1 --------------------------------------------- ----------
.......
This loop until you stop the carriage return. SciTE will not hang, with the number of carriage returns, the empty script will increase the line number equal to the number of carriage returns.
SciTE will not hang if you stop the carriage return.

Link to comment
Share on other sites

  • Developers

So the answer to my question is No ?

... and is is not going into an endless loop and not hanging? 

I really wish I could copy your issue so I can test myself as this isn't really being productive for either of us.

 

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

Yes, it is not an infinite loop, nor will it hang,
After editing the first line of code, press Enter, the first debugging message appears on the console, and a blank line is added to the SciTE edit box. You can continue to edit this line of code.
Do this until you finish editing the code! It's just that the console has some unnecessary debugging messages...

Link to comment
Share on other sites

  • Developers

..but you said it is hanging with a fresh install? Are you saying it doesn't hang anymore after you change the line:

self.Debug = true

We need to get into a situation were the debugging information is shown and the problem occurs or else we are completely in the dark.

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

I have posted the debugging information.

 

It is really difficult to communicate through Google.

What I write needs Google Translate, and I have to go through Google Translate to see your reply.

It is difficult to correctly understand the meaning of the other party.
Didn’t you see my screenshot? I have a freshly installed pure English version of the AutoIt3 system.
Currently I only modify the following:


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


I can say that the carriage return hang problem has been solved, please take a look at my screenshot.

I don’t understand what self.VK_RETURN = 0x0D does, sorry! I really can’t help you with this, please forgive me!

Edited by wyf
Link to comment
Share on other sites

You can stop thinking about this issue for the time being. I am also very confused. I just resumed the modification of the lua file.
The hang problem no longer occurs, and the console will not output debugging information.
I will continue to test for a while and then provide feedback.

Edited by wyf
Link to comment
Share on other sites

  • Developers
28 minutes ago, wyf said:

 -- self.VK_RETURN = 0x0D

I never told you to do this as this simply disables the whole function!!!!! I actually told you not to do this!
The variable contains the value of the Key this function needs to act upon, so when the Enter key is hit, the function will check if anything needs to be adjusted.


To be able to debug it needs to fail and I require debug information...  It really shouldn't be this hard to follow a few simple steps, but I do realize we have a language barrier here. :) 

  

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

  • 2 weeks later...
  • Developers

Has anybody noticed an substantial lag when using the arrow keys to move the caret up/down/left/right in the Beta?
It seems that there is any noticeable lag which disappears when disabling AutoHScroll.lua in SciTeStartup.lua:

--LoadLuaFile("AutoHScroll.lua")

  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

  • Moderators

Jos,

Everything normal here with that line working.

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
22 hours ago, Melba23 said:

Everything normal here with that line working.

Thanks for testing Steve, but I do get some slowdown on larger files, so have rewritten part of the functions to make it way more efficient and only set the Horizontal Scrollbar one time for a file and avoid doing a constant check for the max width. 

Will add this updated version to a new version of the installer soon. :) 

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

  • Moderators

Jos,

Just for info, the file on which I tested was 161k.

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

  • 3 weeks later...

Add below line 62 of AutoItIndentFix.lua:

        if line + 3 >= editor.LineCount then
            editor:EndUndoAction()
            self.Check_Indent_inProgress = false
            return return_value
        end

Link to comment
Share on other sites

  • Developers

Thanks for the  suggestion, but could you tell me what you are exactly trying to fix with that so I understand why you are proposing this? :) 

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

I understand and assumed this was a fix for that, but I like to understand what you discovered and how this fixes that, as I don't yet understand the issue you have.
So please explain what you have discovered what the issues is?

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

V 4.xx series SciTE.exe use the menu File--New or toolbar button--New to create an au3 script (even after saving), write a line of code, and click the [Enter] key, SciTE.exe has no response for a long time. And the SciTE.exe window cannot be closed normally. 

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