AutoHotKey v2.0.11 has a PCRE execution error
Posted: 15 Feb 2024, 17:10
I had AutoHotKey v2.0.9 installed. At some point I needed to reinstall AutoHotKey v1 to run a particular script I came across. After that, I got the firstly useful, then annoying prompt asking me which version of AHK to run. I tried removing manually the v1 folder from Program Files\AutoHotKey, but to no avail; the v1 executable wasn't there, but the system still registered it as installed. So I went ahead and uninstalled AutoHotKey completely, then downloaded the current version (2.0.11 as I post).
After installing 2.0.11, it displays the Dash suggesting it was properly installed, but then I get this on one of my ever-running scripts:
Note that at no point my personal script file is mentioned. If of any help, I have this line near the top of it: SetTitleMatchMode "regex", but I doubt it has anything to do with the current problem.
Good thing is I still had the 2.0.9 installer. Reverted, and it is now running as normal, albeit in an outdated version.
After installing 2.0.11, it displays the Dash suggesting it was properly installed, but then I get this on one of my ever-running scripts:
Code: Select all
Error: PCRE execution error.
Specifically: -8
---- C:\Program Files\AutoHotkey\UX\inc\identify.ahk
003: {
005: p := 1, count_1 := count_2 := 0, version := marks := ''
▶ 006: While (p := RegExMatch(code, identify_regex, &m, p))
006: {
007: p += m.Len()
Call stack:
C:\Program Files\AutoHotkey\UX\inc\identify.ahk (6) : [RegExMatch] While (p := RegExMatch(code, identify_regex, &m, p))
C:\Program Files\AutoHotkey\UX\inc\identify.ahk (6) : [IdentifyBySyntax] While (p := RegExMatch(code, identify_regex, &m, p))
C:\Program Files\AutoHotkey\UX\launcher.ahk (72) : [GetLaunchParameters] i := IdentifyBySyntax(code)
C:\Program Files\AutoHotkey\UX\launcher.ahk (139) : [IdentifyAndLaunch] lp := GetLaunchParameters(ScriptPath, !(whichMode := args.HasProp('which')))
C:\Program Files\AutoHotkey\UX\launcher.ahk (59) : [Main] IdentifyAndLaunch(ScriptPath, A_Args, switches)
C:\Program Files\AutoHotkey\UX\launcher.ahk (16) : [] Main()
> Auto-execute
Good thing is I still had the 2.0.9 installer. Reverted, and it is now running as normal, albeit in an outdated version.