vscode-swiftformat icon indicating copy to clipboard operation
vscode-swiftformat copied to clipboard

SwiftFormat hanging for long time

Open adam-fowler opened this issue 6 months ago • 3 comments

Sometimes when saving a file I get the following dialog appearing for at least a minute. While this dialog is displayed most operations in VSCode do not work.

Screenshot 2023-12-14 at 17 18 50

The only options I have set are

    "swiftformat.path": "/Users/adamfowler/.mint/bin/swiftformat",
    "swiftformat.onlyEnableWithConfig": true,

adam-fowler avatar Dec 14 '23 17:12 adam-fowler

Hi, thanks for your report! When this happened, were you working in a project with a SwiftFormat dependency? Eventually the build process of it might have delayed formatting the file? I’ll definitely have a look on this annoying bug.

vknabel avatar Dec 16 '23 09:12 vknabel

No SwiftFormat dependency. I've seen this while working on https://github.com/hummingbird-project/hummingbird and https://github.com/soto-project/soto.

It is intermittent so hard to narrow down.

adam-fowler avatar Dec 16 '23 09:12 adam-fowler

I've been noticing this too, I have swift format installed with brew. It seemed to start happening after v1.6.4 (so from v1.6.5)

jsonfry avatar Feb 08 '24 11:02 jsonfry