Jump to content

Abbreviation Manager bug


Recommended Posts

Hello

To reproduce the bug:  open Abbreviation Manager (Menu > Tools > SciTe Config > Other Tools > Run Abbrev Manager).

In the text box at top-left, enter your new abbreviation name and click button "Create".

In the editor that opens, if you put a pipe character in your code (which you need there to place the cursor), then it messes up how the entry goes into this file:

%LOCALAPPDATA%\AutoIt v3\SciTE\au3UserAbbrev.properties

it seems to split the entry (at the pipe) into two lines so what should be:

mb1=MsgBox(1, '', '|')

ends up as

')

mb1=MsgBox(1, '', '

The second file is:

%LOCALAPPDATA%\AutoIt v3\SciTE\au3.keywords.user.abbreviations.properties

I'm can't seem to reproduce it, but I am pretty sure that at some point while experimenting with this, this file ended up blank (so none of my abbreviations worked).

My current workaround is to write the code (with no pipe char), click the "Add" button (closes the editor), then click the "Edit" button, and put the pipe in.

Edited by lee321987
clean up
Link to comment
Share on other sites

  • Moderators

lee321987,

Thanks for the report - looking into it.

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

  • Moderators

Hi,

Found the problem - _ArrayAdd splits the input on the "|" as it thinks it is a delimiter. An easy fix - just change line #552 in your "AutoIt3 Folder\SciTE\SciTEConfig\AbbrevMan.au3"to read:

_ArrayAdd($aUser_Abbrev, $sAbbrev_Name & "=" & $sAbbr, Default, Default, Default, $ARRAYFILL_FORCE_SINGLEITEM)

That bug has been sitting there waiting to happen for a long time (I since I rewrote the Array library in 2014, you can read all about it in this thread) - obviously very few people ever use the Abbreviation Manager to add abbreviations with the cursor set character!

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

27 minutes ago, lee321987 said:

@Melba23 Thanks it worked!

@Nine All I did was change line #552 of this file:

C:\Program Files (x86)\AutoIt3\SciTE\SciTEConfig\AbbrevMan.au3

 

Nice going, sadly it doesn't work for me :wacko:

NVM, I forgot I didn't installed the latest version of Scite.  I had downloaded it but never installed it. Sometimes, I can kick myself.  Now it is working fine...Thanks to you Lee.

Edited by Nine
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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