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

AHK++ is not activating. #405

Closed
dDeepLb opened this issue Sep 3, 2023 · 11 comments
Closed

AHK++ is not activating. #405

dDeepLb opened this issue Sep 3, 2023 · 11 comments
Assignees
Labels
bug something isn't working question needs more clarity in order to take action

Comments

@dDeepLb
Copy link

dDeepLb commented Sep 3, 2023

Description

When I open VS Code, in AHK++ Runtime Status I see "Not yet activated."
At installation it worked, but now no.
Therefore I can't run scripts with hotkey.

Reproduction steps

Steps to reproduce the behavior:

  1. Go to folder with VS Code
  2. Double-click on VS Code
  3. Open AHK++ Ext Page > Runtime Status
  4. See error

Expected behavior

Well... I think it should load AHK++

@dDeepLb dDeepLb added the bug something isn't working label Sep 3, 2023
@mark-wiemer mark-wiemer added this to AHK++ Sep 3, 2023
@mark-wiemer
Copy link
Member

Can you paste the error?

@mark-wiemer mark-wiemer added the question needs more clarity in order to take action label Sep 4, 2023
@dDeepLb
Copy link
Author

dDeepLb commented Sep 4, 2023

Bruh... Not an actual error, it just doesn't load.
image

@mark-wiemer
Copy link
Member

@dDeepLb have you opened an AHK file? The extension only activates once it's needed :)

@dDeepLb
Copy link
Author

dDeepLb commented Sep 6, 2023

Yes, opened one before VS Code launch and second when Code was already opened. AHK++ still not activated..

@fade2gray
Copy link

fade2gray commented Sep 7, 2023

The extension only activates once it's needed :)

This piqued my curiosity. I have VSCode installed on a VM, so I uninstalled it along with the .vscode and Code folders, and reinstalled it (basically a clean install). I then (without opening any AHK scripts) installed AutoHokey Plus Plus and nothing else - et voilà, instant activation.

Afterthought: Wound back and also uninstalled the AHK v1/2 interpreters before reinstalling VSCode and AHKpp extension without reinstalling the interpreters - the AHKpp extension activated immediately on installation.

@dDeepLb
Copy link
Author

dDeepLb commented Sep 8, 2023

Yes, it activated on instalation. But after I re-entered VS Code - no activation..

@fade2gray
Copy link

Perhaps @mark-wiemer can explain a little more.

@mark-wiemer
Copy link
Member

Unfortunately I really don't have ideas here. Of you uninstall and reinstall does it start failing again? VS Code actually recommended we extension devs remove some extension activation triggers as they claimed to handle activation themselves, clearly that's not working.

@dDeepLb
Copy link
Author

dDeepLb commented Sep 13, 2023

Even after I reinstalled it nothing new... Highlighting is here, but IntelliSense not... Maybe there is some way to activate it through dev tools or so?

@mark-wiemer
Copy link
Member

Can you try executing AHK commands? e.g. pressing Ctrl+F1 to open quick help? Or opening a .ahk file, opening command palette (F1), then typing "ahk++" and selecting any of the results?

Really sorry you're experiencing this, but I currently have no way to reproduce the issue. I will try to read developer documentation around this and look around to see if other extensions have experienced this before.

@dDeepLb
Copy link
Author

dDeepLb commented Sep 20, 2023

It didn't work. So I completely reinstalled it by deleting AHK++ folder in C:\Users\myUsername\.vscode\extensions, then reinstalled it in VS Code, restarted.
It wouldn't load... Until I created a new file with the .ahk extension.

Yes, it is now fully functional and shows me:

Activation event: onLanguage:ahk2 
Activation time: 103ms 

in working state.
Now it works even when I open files with .ahk extension, which it didn't before.

@dDeepLb dDeepLb closed this as completed Sep 20, 2023
@github-project-automation github-project-automation bot moved this to Done in AHK++ Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working question needs more clarity in order to take action
Projects
Status: Done
Development

No branches or pull requests

3 participants