-
Posts
350 -
Joined
-
Last visited
-
Days Won
1
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by donnyh13
-
HI Jos, I hit a minor bug (?) with AutoComplete, which I think you fixed once before, but can't find it in this thread. If I begin with: #include <MsgBoxConstants.au3> And then Erase the "MsgBoxConstants" part to change the include to something else, #include <.au3> e.g. "FileConstants", if I select "FileConstants" in AutoComplete, AutoComplete leaves a ".au3>" at the end. #include <FileConstants.au3>.au3>
-
Glad you solved the frustrating problem @mLipok. And also sorry to hear about the stresses and discouragements you have had to face in recent times. I am also glad to hear things are looking up for you. I would also like to echo your sentiment, and thank Jos for his hard work on this (frequently) thankless task. I feel it has turned out great. A time or two I have reverted to Scite v4, and find I very quickly miss the new features of v5. Sorry for the discouragements Jos, and lack of testing/assistance at times. Wishing you the best in your future projects. Best regards, Donny
-
Thank you for the report, and for tracking down the bug @JALucena, it's greatly appreciated. I'll change that right away. I must have messed it up in modifying the order of the parameters previously. Glad to hear you like the UDF, and that it is working well for you. It's nice to know it is a help to somebody, plus we appreciate the bug testing. Best regards, Donny
- 33 replies
-
- libreoffice
- writer
-
(and 2 more)
Tagged with:
-
Potential minor bug with Tidy and inline comments
donnyh13 replied to donnyh13's topic in AutoIt Technical Discussion
Thanks Jos! That works great. -
Potential minor bug with Tidy and inline comments
donnyh13 replied to donnyh13's topic in AutoIt Technical Discussion
Yes, sorry, I didn't notice that, It was a simple example, but where I ran into it was running tidy on code that had been tidied, but then having removed some "If" blocks, thus making the indent level decrease. After running Tidy, I seen that my comments that were only 1 space away from the end of the line before, became 4 or more spaces away. But if this is intended, then it's not a big deal, as I can see its use, per your example. Original Tidied code: If 1 = 1 Then ; A comment 1 space away. If 2 = 2 Then ; A comment 1 space away. If 3 = 3 Then ; A comment 1 space away. EndIf EndIf EndIf Remove one level of "IF"'s and tidy again: ;~ If 1 = 1 Then ; A comment 1 space away. If 2 = 2 Then ; A comment 1 space away. If 3 = 3 Then ; A comment 1 space away. EndIf EndIf ;~ EndIf -
Hi @Jos, I just noticed a (potential) minor bug with Tidy and inline comments. If you run Tidy, and it has to de-indent a line of script with an inline comment at the end, it leaves the comments in its original position, adding spaces after the script line. Is this a purposeful thing? Try running Tidy on this, with no parameters set for Tidy: And it will result in this: Best regards, Donny
-
Thanks. While this is true in generality, even with my indentation settings set to Auto, which is supposed to use the extension's folding settings first, then indent if necessary, indentation seems to still override it. Try this: It folds to the comment in both your, and Logan's extension. Func FunctionName() Local $iError = 0 ;~ Local $aError[5] If Not 1 = 1 Then Return False EndFunc
-
It works good Jos! Thank you! I tested it briefly using this in the LibreOffice development folder: _LOCalc_CellFontColor() MsgBox($MB_OK, "", "") _Word_Create() and it took ~7 seconds before the ArrayDisplay came up. And then some weird output message in the Terminal (This could be my own problem, as I occasionally have display issues with VSC.). But I can't reproduce this after the first two times. But the ArrayDisplay sometimes comes up using this script. I then tested with this: _LOCalc_CellFontColor() MsgBox($MB_OK, "", "") _Word_Create() _LOWriter_VersionGet() And it took ~8 seconds, but missed the MsgBox Constants. However no array display, and only normal messages in the terminal. Edit: Tried it again and it took 5 seconds. Msg Box constants still don't get added with the lower script.
-
Here is my new, current User properties. import au3.UserUdfs import au3.keywords.user.abbreviations ## ------------------------------------------------------------------------------------------------------------------------ ## dynamic.include Directives and properties reference ## ----------------------------------------------------- #SciTE4AutoIt3_Dynamic_Include=y ;dynamic.include=y/n #SciTE4AutoIt3_Dynamic_Include_whiletyping=y ;dynamic.include.whiletyping=y/n #SciTE4AutoIt3_Dynamic_Include_recursive_check=n ;dynamic.include.recursive.check=n/y #SciTE4AutoIt3_Dynamic_Include_use_local_cache=n ;dynamic.include.use.local.cache=n/y #SciTE4AutoIt3_Dynamic_Include_version=prod ;dynamic.include.version=prod/beta #SciTE4AutoIt3_Dynamic_Include_verboselevel=0 ;dynamic.include.verbose.level=0/1/2 #SciTE4AutoIt3_Dynamic_Include_Path= #SciTE4AutoIt3_AutoItDynamicIncludes_debug=n ;debug.autoitdynamicincludes=n/y #SciTE4AutoIt3_AutoItAutocomplete_debug=n ;debug.autoitautocomplet=n/y #SciTE4AutoIt3_AutoItGotoDefinition_debug=n ;debug.autoitgotodefinition=n/y #SciTE4AutoIt3_AutoItTools_debug=n ;debug.autoIttools=n/y ## ================================================ ## dynamic.include config ## ================================================ #> dynamic.include=y/n n=disabled y=will automatically build the func tables for coloring and autocomplete (requires restart SciTE!) dynamic.include=y #> whiletyping=y/n n=disabled y=will automatically add any required standard or USERincludefile for the current line, on the fly, when ) or enter ispressed !) dynamic.include.whiletyping=y #> use.local.cache=n/y n=disable y=Use cache file for local Include UDFs and VARs which could increase the speed when you have a lot of local includefiles which normally shouldn't be the case dynamic.include.use.local.cache=n #> version prod=Use AutoIt3 Production version beta=Use AutoIt3 Beta version #~ dynamic.include.version=prod #> recursive.check=n/y n=disable y=When you like to only add an Include when it isn't included through another #included file yet. dynamic.include.recursive.check=y # level of debug messages 0/1/2 0=disabled; 1= Warnings & Timing per Function; 2=1+Total timing #~ dynamic.include.verbose.level=0 #> Max number of includes files to read from the user directories in the list. This doesn't including the standard AutoIt3 includes. dynamic.max.includes=300 #> Max number total UDFs in the Userlist to handle by dynamic includes. This doesn't including the standard AutoIt3 includes-UDFs. dynamic.max.funcs=3000 #> Scriptlines longer that this value won't be looked at for Checking for required #Include statements. #~ dynamic.max.line.length=300 ## ================================================ ## Autocomplete and call tip settings ## ================================================ #~ autocomplete.au3.disable=0 autocomplete.au3.ignorecase=1 # Define minimum length before AutoComplete dropdown is shown- default=2 autocomplete.au3.min.length=2 # Include Abbrevs in AutoComplete dropdown (default=1/y) #~ autocomplete.au3.include_abbrevs=1 # Don't show AutoItComplete with these styles (Internal only in SciTE4AutoIt3) #~ autocomplete.ignore.styles.$(au3)=1;2;3;6;7;10;13 # Define which character will be added after Tab or Enter was entered and not on a Function/UDF: Can be \s \t \n for space;tab;newline #~ autocomplete.au3.on.enter=\n #~ autocomplete.au3.on.tab= # List of all AutoComplete API files used #~ api.$(au3)=$(SciteDefaultHome)\api\au3.api;$(SciteDefaultHome)\api\au3.autoit3wrapper.api;$(SciteUserHome)\au3.std.dynamic.calltips.api;$(SciteUserHome)\au3.file.dynamic.calltips.api;$(SciteUserHome)\au3.usr.dynamic.calltips.api;$(SciteUserHome)\au3.user.calltips.api ## ================================================ ## Separate settings for debugging these Lua files ## ================================================ #> Enable debugging for these lua scripts: debug.autoitdynamicincludes=Y debug.autoitautocomplete=y # debug.autoitgotodefinition=n debug.autoitindentfix=y # debug.autoittools=n #> when debug.tofile is defined, log records will be send to the log in stead of OutputPane: debug.tofile= #~ debug.tofile=$(SciteUserHome)\SciTE_LUA_Scripts_Debug.err #~ # ------------------------------------------------------------------------------------------------------------------------