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
156 stars 10 forks source link

Temporary freezes in VSC when AHK PP extension enabled #475

Closed jb261 closed 2 weeks ago

jb261 commented 3 weeks ago

When I have AHK PP extension enabled, I sometimes get temporary freezes of VS Code, where VSC is unresponsive to most attempts to interact with the app, except for closing the app. When it occurs, this temp freeze will usually last 1-3 minutes, then it will be fine for a couple of minutes, the temp freeze again. Disabling AHK PP extension resolves this.

First encountered this issue a couple of months ago. AHK PP last version used is 5.0.7

VSC info: Version: 1.89.1 (user setup) Date: 2024-05-07T05:13:33.891Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.19045

mark-wiemer commented 3 weeks ago

Hi @jb261, do you have very large folders that you're working on, with many AHK files? My first thought is that the extension is trying to parse all your AHK files at once. Does this usually happen when you start up VS Code or in the middle of sessions?

jb261 commented 2 weeks ago

Hi @jb261, do you have very large folders that you're working on, with many AHK files? My first thought is that the extension is trying to parse all your AHK files at once. Does this usually happen when you start up VS Code or in the middle of sessions?

No, the folders don't contain many AHK files (though subfolders do). Usually happens in the middle of sessions, but once it starts, it often continues after restarting VS Code. Sometimes I'll go a couple of weeks without this freeze, so it's very intermittent. I usually enable the AHK PP extension because it's so useful, and then once this freeze starts, I'll disable it for a while.

jb261 commented 2 weeks ago

image

My VSC extensions. Apart from AHK PP, the least downloaded of the extensions is 22.7mm downloads. So I don't think there's any conflicts among those (as many users of those will also be using the others), but maybe some kind of conflict between AHK PP and one of those extensions?

fade2gray commented 2 weeks ago

I have 47 extension installed, 10 of which are disabled. The .RUN extension is in my disabled lot, and the rest of your listed extensions are amongst my 37 enabled ones - I have many workspaces with multiple folders, some with many largish scripts, and suffer no freezes.

I wonder if disabling .RUN my fix your freeze - I daren't risk enabling it at this point in case I jinx myself. 😟

Currently running AutoHotkey Plus Plus v5.1.0 (pre-release)

jb261 commented 2 weeks ago

I have 47 extension installed, 10 of which are disabled. The .RUN extension is in my disabled lot, and the rest of your listed extensions are amongst my 37 enabled ones - I have many workspaces with multiple folders, some with many largish scripts, and suffer no freezes.

I wonder if disabling .RUN my fix your freeze - I daren't risk enabling it at this point in case I jinx myself. 😟

Currently running AutoHotkey Plus Plus v5.1.0 (pre-release)

I'll try it!

mark-wiemer commented 2 weeks ago

Good idea, there's also Resolving extension issues with bisect if other folks have the same issue but different extensions installed :)

mark-wiemer commented 2 weeks ago

Hey @jb261, unfortunately I can't resolve this without more details--namely, a way to reproduce on my side. As this doesn't seem to be caused by my extension alone, closing as out of scope for now. Feel free to re-open if you have more to share :)

jb261 commented 1 week ago

Yep, understood. Haven't experienced the issue since disabling the Code Runner extension as @fade2gray suggested. So that may well have been the problem.