Jump to content

_ArrayFromString function is not correctly colored as Standard UDF's


Go to solution Solved by argumentum,

Recommended Posts

Posted (edited)

The _ArrayFromString function is not correctly colored as a Standard UDF.
Can someone tell me where I should look?
Does it only happen to me?


Thank you very much.

 

Edit:
Now that I looked in the  C:\Program Files (x86)\AutoIt3\Include\Array.au3, the same applies to the
_Array2DCreate
 

Edited by ioa747
Edit

I know that I know nothing

Posted

Hello @ioa747
Assuming your AutoIt version is 3.3.16.1, maybe you got files that need to be updated in your Scite folder / subfolders.

For example, if these 2 files "au3.api" and "au3.keywords.properties" got a modification year indicating 2018 (in Windows Explorer) then it could explain why some actual functions names are not found in them.

Then you won't find these functions in the autocompletion list (while you type the beginning of their names in Scite), also their color won't be the same as the other functions names (as you noticed when opening Array.au3)

In case @Jos reads this, he could tell you how to solve your problem, in his own helping words :)
Have a great week-end

"I think you are searching a bug where there is no bug... don't listen to bad advice."

  • Developers
Posted
On 6/6/2025 at 2:46 PM, ioa747 said:

The _ArrayFromString function is not correctly colored as a Standard UDF.
Can someone tell me where I should look?
Does it only happen to me?

You know I will need details on what you have installed to have any clue why that happens, but in general when you open "au3.keywords.properties" from within SciTE/Options, you get the file that is used to recognize the UDFs. 

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

  • Solution
Posted

Also, do add them in all lower case or it wont work.

I have one at \AutoIt3\SciTE (;AutoIt3 Version 3.3.16.1) and one at \AutoIt3\SciTE\Properties (;AutoIt3 Version 3.3.14.5). Why ?, I don't know, but it now looks properly colored after the edit. Does take closing and opening again for SciTE to show the changes.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

But.., I install AutoIt 1st, then install SciTE ( the v4 version ). So ... AutoIt would not overwrite anything because it was already installed. Now there are 2 of these property files and yes, makes no sense to edit the old file when I should just replace the old version with the correct version ( just thought of it now ).
I never paid much attention to the coloring ... thinking on my feet here. The year for the \SciTE\Properties one is 2018 and the one from \SciTE is 2022.

The solution is simple, replace one with the other.
I guess that one of these LUA files can check the header of the properties files and replace the one originally included with the version with the one distributed by AutoIt ?,
no clue. Is not a big deal for me. I thought it was just me but another user saw that too so is not just me. Again, no big deal. 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted (edited)

I found four in me  :D

"C:\Program Files (x86)\AutoIt3\SciTE\au3.keywords.properties"
"C:\Program Files (x86)\AutoIt3\SciTE\Defs\beta\au3.keywords.properties"
"C:\Program Files (x86)\AutoIt3\SciTE\Defs\Production\au3.keywords.properties"
"C:\Program Files (x86)\AutoIt3\SciTE\Properties\au3.keywords.properties"

 

I corrected the 
C:\Program Files (x86)\AutoIt3\SciTE\au3.keywords.properties

and I threw it in the
C:\Program Files (x86)\AutoIt3\SciTE\Properties\

and now it's ok.
(at least until the next installation)

Thank you very much

 

 

Edited by ioa747

I know that I know nothing

  • Developers
Posted
20 minutes ago, argumentum said:

But.., I install AutoIt 1st, then install SciTE ( the v4 version ). So ... AutoIt would not overwrite anything because it was already installed. Now there are 2 of these property files and yes, makes no sense to edit the old file when I should just replace the old version with the correct version ( just thought of it now ).
I never paid much attention to the coloring ... thinking on my feet here. The year for the \SciTE\Properties one is 2018 and the one from \SciTE is 2022.

The solution is simple, replace one with the other.
I guess that one of these LUA files can check the header of the properties files and replace the one originally included with the version with the one distributed by AutoIt ?,
no clue. Is not a big deal for me. I thought it was just me but another user saw that too so is not just me. Again, no big deal. 

Think about it for a moment. Just in general : never customize any file provide by the installer in the scite directory as these will be overwritten with the next upgrade or reinstall. 

Always use the files in the user directory.

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
22 minutes ago, ioa747 said:

I found four in me  :D

"C:\Program Files (x86)\AutoIt3\SciTE\au3.keywords.properties"
"C:\Program Files (x86)\AutoIt3\SciTE\Defs\beta\au3.keywords.properties"
"C:\Program Files (x86)\AutoIt3\SciTE\Defs\Production\au3.keywords.properties"
"C:\Program Files (x86)\AutoIt3\SciTE\Properties\au3.keywords.properties"

 

I corrected the 
C:\Program Files (x86)\AutoIt3\SciTE\au3.keywords.properties

and I threw it in the
C:\Program Files (x86)\AutoIt3\SciTE\Properties\

and now it's ok.
(at least until the next installation)

Thank you very much

 

 

How did you install /upgrade AutoIt3 the last time? The installer handles all of this normally.

 

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

I did a normal install.
What can I say, I don't remember if it was an upgrade.
Besides, I have a bad habit of messing things up, so I might have done something wrong.
At some point I made a portable version with SciTE v5x & lua Dynamic_include, but I didn't declare it correctly in the environment variables, and until I figured it out, it messed up some things.

 

19 minutes ago, Jos said:

Always use the files in the user directory.

this means that I simply copy au3.keywords.properties to C:\Users\ioa747\AppData\Local\AutoIt v3\SciTE and is ok ?

I know that I know nothing

  • Developers
Posted
12 minutes ago, ioa747 said:

this means that I simply copy au3.keywords.properties to C:\Users\ioa747\AppData\Local\AutoIt v3\SciTE and is ok ?

Nope, you are restoring a proper version of a file which likely was accidentally changed. 😀

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
1 hour ago, Jos said:

Think about it for a moment. Just in general : never customize any file provide by the installer in the scite directory as these will be overwritten with the next upgrade or reinstall. 

I click-click. AutoIt3 "click-click", SciTE "click-click".
Then I run the beta file updater that downloads and copy over the excising files with those from the beta site, and that too I "click-click".

I do that at least once a month because I run VMs and need the AutoIt environment. The only difference is the I install in C:\utilities\Autoit instead of the default programs folder.

If you were to do a fresh install in a fresh PC, you'd see. Or I can make a video ( but am camera shy :D )

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • Developers
Posted (edited)

Sorry for being slow here and understand the issue now...  Many ( really many) moons ago I moved all properties files into their own subdirectory, but AutoIt indeed install it into the SciTE root directory since that is also where the light version expects it.

Funny this comes up after such a loooong time, but I will have a look to fix this in the SciTE4AutoIt3  installer.
 

Guess all i really need to do is change this in au3.properties:

# Import the default au3.keywords.properties file containing AutoIt3 info 
import properties\au3.keywords
# override with the AutoIt3 provided file located in the root.
import au3.keywords

 

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

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   1 member

×
×
  • Create New...