Change specification when relative paths are specified in the runtime
attribute
#307
Labels
enhancement
New feature or request
runtime
attribute
#307
RELATED: #303
The current
runtime
attribute is treated as relative to the AutoHotkey directory if the path specified is not absolute.For example, if
autohotkey
is specified, it will be converted toC:/Program Files/AutoHotkey/AutoHotkey.exe
.However, I noticed that if you specify
autohotkey
, it expects to findautohotkey
in directories registered in the environment variable.For example, if the AutoHotkey runtime is located in
C:/foo/AutoHotkey.exe
andC:/foo
is registered in the environment variable, it means thatautohotkey
will expect to be converted toC:/foo/AutoHotkey.exe
.However, as the default value of
runtime
isAutoHotkey.exe
, users may refer to it and set the value directly in launch.json. This will be treated as an error after the specification change, so users will be confused.So I will search the directory registered in the environment variable if it does not contain path delimiters such as
/ or
`, and if the runtime does not exist, refer to the default installation directory of AutoHotkey as before.If you want to treat the path as relative to the installation directory, use
. /autohotkey
, for example. /
to start with.This is not a destructive change, so it is probably more of an improvement than a specification change.
Additionally, this change to the specification may solve this issue.
The text was updated successfully, but these errors were encountered: