godot-gdscript-toolkit icon indicating copy to clipboard operation
godot-gdscript-toolkit copied to clipboard

pop os - infinite format runner

Open Levrault opened this issue 4 years ago • 4 comments
trafficstars

Hi,

I'm running pop os 21.04 beta and vscode 1.57.1

gdtoolkit is installed with gdlint

But every time I run the formatter in vs code, I got the running notification but nothing happens. The gdformat command run fine when I use it in the terminal.

Screenshot from 2021-06-29 09-42-30

Thanks

Levrault avatar Jun 29 '21 13:06 Levrault

@igordreher is it possible that this issue is a regression after your recent change?

Scony avatar Jun 30 '21 15:06 Scony

@Scony Sorry for late reply, I don't think it is related to the changes I made, since it seems to work fine. But it's hard to tell.

@Levrault Is it possible for you to test with older versions?

igordreher avatar Jul 19 '21 16:07 igordreher

I rollback on the 3 previous version and still no update. On the 1.2.1, the formatter is just not executed without any indication, only on the 1.2.2 there is something happening but it still the infinite runner

Levrault avatar Jul 30 '21 16:07 Levrault

I found a workaround that could help other in my situation.

I installed the vscode extension run on save and add this the my settings.json

"emeraldwalk.runonsave": {
    "commands": [
        {
            "match": "\\.gd$",
            "isAsync": true,
            "cmd": "gdformat ${file}"
        }
    ]
}

Now it's working, good enough for me since the original issue itself can be hard to fix

Levrault avatar Jul 31 '21 18:07 Levrault