-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Support Environment Variables and PATH Auto-Discovery for Interpreter Path #645
Comments
Currently, this feature is supported. |
I conducted more detailed testing, and I found that Scoop adds An alternative, more universal approach to support Scoop is by using environment variables. I tried using environment variables in the "Interpreter Path" property, such as |
I started ahk by specifying the ahk interpreter path as shim.exe, and still got the ahk script variable, but it showed an unknown version in the status bar. |
My environment versions:
Reproduction steps:
Since there are no error logs in the output, I recorded a GIF to visually demonstrate this issue: |
This is a problem with the shim program. It exits immediately after starting ahk. The extension executes the ahk script to obtain script variables. When the extension discovers that the started process has exited, it starts processing the returned information, and at this time, ahk has not yet started working. In addition, running the script cannot get the correct exit code. |
Thank you for the clarification. Just to confirm, does the extension currently support environment variable expansion for the "Interpreter Path" (e.g., Thanks again for your efforts on this excellent extension! |
I will add support for environment variables. e.g., |
The "Interpreter Path" setting in the AutoHotkey v2 Language Support extension requires an absolute path. It does not support environment variables or auto-discovery from the system PATH. When AutoHotkey is installed via scoop, a package manager for Windows, using
scoop install autohotkey
,autohotkey.exe
is automatically set in the system PATH. It is recommended that setting this attribute to simplyautohotkey.exe
should allow the extension to locate the executable automatically.AutoHotkey v2 Language Support 扩展中的 "Interpreter Path" 属性必须为绝对路径,并且不支持环境变量或自动从系统 PATH 中发现路径。如果使用 scoop(Windows 包管理器)安装 AutoHotkey (
scoop install autohotkey
),autohotkey.exe
会自动加入系统 PATH 中。希望可以支持将此属性简单的设置为autohotkey.exe
,不必指定具体路径,扩展也能够根据环境变量自动找到可执行文件的绝对位置。The text was updated successfully, but these errors were encountered: