Skip to content
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

Request to remove AutoHotkey Plus from deprecation status #603

Open
cweijan opened this issue Feb 12, 2025 · 6 comments · May be fixed by #606
Open

Request to remove AutoHotkey Plus from deprecation status #603

cweijan opened this issue Feb 12, 2025 · 6 comments · May be fixed by #606
Assignees
Labels
AHK v1 exclusive to AHK v1 debugger issues with debugging code

Comments

@cweijan
Copy link
Contributor

cweijan commented Feb 12, 2025

Hi mark, below is my startup configuration. It works fine in Autohotkey Plus, but fails in ahk++. It can't find the ahk I installed and can't recognize the program path. I need an environment that can run ahk v1 stably, so I need to restore Autohotkey Plus. I have sent an email to [email protected] requesting the deprecation status be removed, is this enough?

Image
@mark-wiemer
Copy link
Owner

I'll find more details on un-deprecating later. You can also install a specific version of AHK++ that might work better. Sorry this config isn't working for you, I'll look into it.

@mark-wiemer mark-wiemer moved this to To do in AHK++ Feb 12, 2025
@mark-wiemer mark-wiemer moved this from To do to In progress in AHK++ Feb 12, 2025
@mark-wiemer mark-wiemer added debugger issues with debugging code AHK v1 exclusive to AHK v1 labels Feb 12, 2025
@mark-wiemer
Copy link
Owner

// .vscode/launch.json
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "ahk",
      "request": "launch",
      "name": "AutoHotkey debugger",
      "program": "${workspaceFolder}/main.ahk",
      "stopOnEntry": true
    }
  ]
}
; main.ahk
#Requires AutoHotkey v1

MsgBox % "Hello world"

Result:

image

Script file not found: ahkpp-603/main.ahk

(Folder name is ahkpp-603)

Weird, looking into this now

@mark-wiemer
Copy link
Owner

mark-wiemer commented Feb 12, 2025

For reference, I used microsoft/vscode-discussions#1 to mark AutoHotkey Plus as deprecated, you can probably use the same thread if you'd like to mark it un-deprecated (ref cweijan/autohotkey-plus#106)

@mark-wiemer
Copy link
Owner

Hi @cweijan, I'll have a patch with a workaround out today. The short answer:

  1. AHK++ is incorrectly looking at the currently opened file when determining whether to debug for v1 or v2. The patch will correctly look at the launch args type property, expecting it to be ahk or ahk2.
  2. AHK++ does not recognize forward slashes correctly. The workaround is to use backslashes: "program": "${workspaceFolder}\\main.ahk",

Hopefully I can fix issue 2 later, but issue 1 is the real blocker right now.

Thanks for reporting this!

@mark-wiemer mark-wiemer linked a pull request Feb 12, 2025 that will close this issue
@cweijan
Copy link
Contributor Author

cweijan commented Feb 12, 2025

Hi, you don't need to release it in a hurry, I downloaded the vsix of Autohotkey plus and installed it locally, I just use it to edit some simple game scripts.

@mark-wiemer
Copy link
Owner

mark-wiemer commented Feb 13, 2025

Thanks, don't worry, I never stress myself out with volunteer coding :) that said, some stuff came up today and this release will now be pushed back to "soon (TM)", sorry. Hopefully within a week :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AHK v1 exclusive to AHK v1 debugger issues with debugging code
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

2 participants