Developers Jos Posted February 12, 2021 Author Developers Share Posted February 12, 2021 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 More sharing options...
wyf Posted February 12, 2021 Share Posted February 12, 2021 (edited) 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 February 12, 2021 by wyf Link to comment Share on other sites More sharing options...
Developers Jos Posted February 12, 2021 Author Developers Share Posted February 12, 2021 (edited) So you hit one time Enter and then it goes into this endless loop and is hanging? Edited February 12, 2021 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 More sharing options...
wyf Posted February 12, 2021 Share Posted February 12, 2021 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 More sharing options...
Developers Jos Posted February 12, 2021 Author Developers Share Posted February 12, 2021 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 More sharing options...
wyf Posted February 12, 2021 Share Posted February 12, 2021 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 More sharing options...
Developers Jos Posted February 12, 2021 Author Developers Share Posted February 12, 2021 ..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 More sharing options...
wyf Posted February 12, 2021 Share Posted February 12, 2021 (edited) 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 February 12, 2021 by wyf Link to comment Share on other sites More sharing options...
wyf Posted February 12, 2021 Share Posted February 12, 2021 (edited) 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 February 12, 2021 by wyf Link to comment Share on other sites More sharing options...
Developers Jos Posted February 12, 2021 Author Developers Share Posted February 12, 2021 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 More sharing options...
wyf Posted February 12, 2021 Share Posted February 12, 2021 OK!!! Link to comment Share on other sites More sharing options...
Developers Jos Posted February 23, 2021 Author Developers Share Posted February 23, 2021 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 More sharing options...
Moderators Melba23 Posted February 23, 2021 Moderators Share Posted February 23, 2021 Jos, Everything normal here with that line working. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Developers Jos Posted February 24, 2021 Author Developers Share Posted February 24, 2021 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 More sharing options...
Moderators Melba23 Posted February 24, 2021 Moderators Share Posted February 24, 2021 Jos, Just for info, the file on which I tested was 161k. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
wyf Posted March 15, 2021 Share Posted March 15, 2021 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 More sharing options...
Developers Jos Posted March 15, 2021 Author Developers Share Posted March 15, 2021 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 More sharing options...
wyf Posted March 15, 2021 Share Posted March 15, 2021 Earlier I mentioned the bug that the carriage return caused SciTE.exe to hang Link to comment Share on other sites More sharing options...
Developers Jos Posted March 15, 2021 Author Developers Share Posted March 15, 2021 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 More sharing options...
wyf Posted March 15, 2021 Share Posted March 15, 2021 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 More sharing options...
Recommended Posts