jshinonome / vscode-q

vscode kdb+/q extension
GNU General Public License v3.0
41 stars 16 forks source link

Certain code causes vscode to freeze #70

Closed derekwisong closed 2 years ago

derekwisong commented 2 years ago

If I enter the following code into an empty .q file and save it - vscode freezes.

{f[{key x} x;1;x]}

VSCode version: 1.67.0 vscode-q version: 2.5.5 (also tried the previously working for me, on older vscode, version 2.3.6)

This seemed to start happening after my organization recently updated vscode versions to 1.67.0

In case it helps...

{f[{};1;x]}     - does not freeze
{f[key x;1;x]}  - does not freeze
{f[{key x};1;x]} - does not freeze
{f[{key x} x;1;x]}  - CAUSES VSCODE TO FREEZE

This is also reproducible in Remote SSH to Linux and locally on Windows.

A variety of scripts are now causing vscode to freeze when I open them. I presume there are more situations than the above causing lockups because so many of my scripts now cause vscode to freeze when I open them.

jshinonome commented 2 years ago

Hi, the issue seems to be with Bracket pair colorization, I will raise a ticket with vscode. you can add the following setting to Open Setting (JSON) as a temporary fix.

    "[q]": {
        "editor.language.colorizedBracketPairs": []
    }
derekwisong commented 2 years ago

Thanks Jo. I am using the workaround successfully.

jshinonome commented 2 years ago

You are welcome. Hopefully vscode team would solve this issue soon.

jshinonome commented 2 years ago

@derekwisong this issue should be fixed now(v2.5.8), let me know if you still see the issue.