Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwiftFormat hanging for long time #34

Open
adam-fowler opened this issue Dec 14, 2023 · 4 comments
Open

SwiftFormat hanging for long time #34

adam-fowler opened this issue Dec 14, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@adam-fowler
Copy link

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,
@vknabel
Copy link
Owner

vknabel commented Dec 16, 2023

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 vknabel self-assigned this Dec 16, 2023
@vknabel vknabel added the bug Something isn't working label Dec 16, 2023
@adam-fowler
Copy link
Author

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.

@jsonfry
Copy link

jsonfry commented Feb 8, 2024

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)

@2288-256
Copy link

I have encountered the same problem and am currently using v1.6.4 to work around this bug.
Is there any progress on this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants