mark-wiemer-org / ahkpp

AutoHotkey Plus Plus (AHK++) - AutoHotkey v1 and v2 support for VS Code
https://marketplace.visualstudio.com/items?itemName=mark-wiemer.vscode-autohotkey-plus-plus
Other
152 stars 10 forks source link

AHK++ is not activating. #405

Closed dDeepLb closed 11 months ago

dDeepLb commented 1 year ago

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++

mark-wiemer commented 1 year ago

Can you paste the error?

dDeepLb commented 1 year ago

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

mark-wiemer commented 1 year ago

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

dDeepLb commented 1 year ago

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

fade2gray commented 1 year ago

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 commented 12 months ago

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

fade2gray commented 12 months ago

Perhaps @mark-wiemer can explain a little more.

mark-wiemer commented 12 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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.