Jump to content

donnyh13

Active Members
  • Posts

    350
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by donnyh13

  1. 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>
  2. 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
  3. 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
  4. 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
  5. 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
  6. Ah I see. Sorry, still catching on to stuff in VSCode
  7. 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
  8. Another benefit would be for folding. Since VSCode relies on indentation to determine foldable areas/ and start/stop fold positions. Though I haven't checked if unindented comments stop folding? Edit: Yes it can.
  9. Right, I forgot about #include-Once. In that case, that does sound better. Thanks Jos.
  10. Thanks for the explanation on the ArrayDisplay. No AU3 is not giving an error. You're right, sorry I missed that, MsgBox constants was included down one of the rabbit holes of includes I think this is a good method to prevent clutter/ unnecessary includes, so maybe no need to change it?
  11. 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.
  12. Thanks for your time and effort in developing and debugging the Scite tools Jos, Much appreciated! Edit: By the way, I look forward to this, if it's possible.
  13. Okay. What debugging should I turn on etc. and I would set the " debug.tofile=" correct? Edit: PM sent.
  14. 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 #~ # ------------------------------------------------------------------------------------------------------------------------
  15. I deleted both the "AppData\Local\AutoIt v3\SciTE" and "\Program Files (x86)\AutoIt3\SciTE" folders and let the the installer re-fill it with files. This should have done it? Edit: Sorry, not just the lua folder, but all the Scite Folder.
  16. If it's working on your end, perhaps it's something on my end. Maybe I'll try playing with some stuff and see what's happening. Thanks for your help Jos.
  17. I edited my post, but since we are on a new page, here it is again: Using Script: _Word_Create() MsgBox($MB_OK, "", "") With Debug enabled: debug.autoitdynamicincludes=Y debug.autoitautocomplete=y debug.autoitindentfix=y
  18. Still not working, but my version is still off? I'll try another clean install. Edit: No, still doesn't work. _Word_Create() MsgBox($MB_OK, "", "")
  19. I've ran the latest beta installer, and then copied the newer Scite /scintilla etc files. Am I missing some separate files you modified? Edit: Beta installer: 25.205.1420.4 Scite 5.5.5 Edit2: I don't see a newer version of DynamicIncludes on the Downloads site, perhaps I'm missing it?
  20. I can confirm this method works. Sorry for mixing two different processes.
  21. Does Ctrl+Shift+Z do the correct process? Or Are you using another method? With Debug on, I get this: Perhaps I am confusing things.
×
×
  • Create New...