Jump to content

Recommended Posts

Posted

Hey  Guys,

Check this out.  In a Scite window type 

MD

it  turns pink and you can't type a space character after it.  Any other character, but not a space.  If  you type any other character it changes from pink to blue.  Not a problem, just wondering if anyone knows why.

image.png.326cbeb5f0aef3b0d0ec150888308973.png

  • Developers
Posted (edited)

Seems there is an issue with your installation as I assume you use the Full version, where the MD+SPACE should be replaced by the ABBREV.properties definition, so I can only assume the abbreviation files are missing or something.

Which version are you running and did you install it with the separate installer?

Jos

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

  • Developers
Posted

I indeed see this behavior when the au3abbrev.properties file isn't loaded. In your SCITE-USERHOME directory, you should have file:

abbrev.properties containing:

import au3abbrev
import au3UserAbbrev

.. and in the same directory, those 2 files show also exist with an ".properties" extension. Is that the case? 

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

Posted

autoit  version is 3.3.14.5
scite is 4.2.0

I did the autoit install first and the scite install seconds.  Two separate downloads and two separate installs.  Some time later i also installed the ISN Autoit Studio app as well.

My abbrev.properties is here   C:\Users\user\AppData\Local\AutoIt v3\SciTE and contains:

import au3abbrev
import au3UserAbbrev

yes, au3abbrev.properties and au3UserAbbrev.properties exist in C:\Users\user\AppData\Local\AutoIt v3\SciTE

 

 

  • Developers
Posted (edited)

Which file is opened when you select the following in SciTE: Options/Open abbrev file?
That should be the version from: C:\Users\user\AppData\Local\AutoIt v3\SciTE 

also please show the header in the SciTE outputpane when running a script.

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

  • Developers
Posted (edited)
8 minutes ago, InclusiveExclusion said:

Perhaps the ISN Studio app did?

I don't know but to reset things the best is to do a reinstall. 
... but I always like to understand why things like this happen and can only replicate it when the MD isn't found. The thing that happens is that when you hit a space after a "known abbreviation (shown by its color)", the LUA script will do a MenuCommand(IDM_ABBREV) (Ctrl+B) to expand the abbreviation and won't send the space as the abbrev definition positions the cursor.

EDIT:Your files work fine for me when I use those.

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

Posted

OK.  I'll take a snapshot of all the files and do a file compare after reinstalling.  I do mess with stuff a lot and am unfortunately skilled at "fixing" things till they're broken.  Like a slightly less destructive version of my Mum on a computer.  Thanks for taking a look. 👍

Posted (edited)

lol, it does it for me too, 

 

I just opened SciTE with no file and typed MD and same issue. Can't type a space.

Same behavior is noted on ANY .au3 file, anywhere in the script.

 

help about displays

Version 3.7.3 
    Feb 16 2017 21:41:17

 

I think that it's getting stuck on MouseDown if you type lowercase md and hit space you get MouseDown() so maybe something in the Auto Complete stuff

Edited by Earthshine

My resources are limited. You must ask the right questions

 

  • Developers
Posted

mmm ...  think that is fixed in the latest version by this change in AutoItTools.lua which was submitted by MrCreatoR:

function AutoItTools:Abbreviations(i)
    if i==1 then editor:DeleteBack() end
    local from = editor:WordStartPosition(editor.CurrentPos-i)
    local to = editor:WordEndPosition(from)
    local word = editor:textrange(from, to)
    editor.SelectionStart = editor.CurrentPos - #word
    editor:ReplaceSel(word:lower())
    scite.MenuCommand(IDM_ABBREV)
end

Try updating it to this new version of the function when you want to continue using the current version. 

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

  • Developers
Posted
Just now, argumentum said:

it happens in 4.2.0 only in upper case.
In 4.4.6 is all good.

Correct as that is what that fix does.... it converts the abbrev to lower() and then does the Ctrl+B. ;) 

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

Posted (edited)

guess I'm OLD and out of date... lol. Thanks, I will get the latest one

 

Where do you get the latest version from? I can't find it on download page.

Edited by Earthshine

My resources are limited. You must ask the right questions

 

  • Developers
Posted

Dunno as you are probably on the current production version.  
The "new version" is nearly ready to be release and will be this weekend when no majorissues are found in the latest release candidate installer. 

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

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
  • Recently Browsing   0 members

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