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

add windows suport #30

Open
insinfo opened this issue Oct 8, 2023 · 4 comments
Open

add windows suport #30

insinfo opened this issue Oct 8, 2023 · 4 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@insinfo
Copy link

insinfo commented Oct 8, 2023

I have swift 5.9 and swiftformat 0.52.7 installed but when I use the format option in VS Code it deletes all source code

image

image

image

@vknabel
Copy link
Owner

vknabel commented Oct 9, 2023

Thanks for the report! As I don't have access to a windows system, I am unable to reproduce your problem.

As debugging windows issues requires lots of ping pong with a tester, I would appreciate a pull request by any volunteer.

@vknabel vknabel added bug Something isn't working help wanted Extra attention is needed labels Oct 9, 2023
@MChriss12
Copy link

Still a bug. It deletes all the source code when trying to autoformat on save.

@vknabel
Copy link
Owner

vknabel commented Nov 27, 2023

Correct. I haven’t done anything, because as mentioned, I don’t have access to a device running windows.

I would appreciate a pull request by any volunteer.

Alternatively I could simply disable all formatting on windows.

@oskargargas
Copy link

Take a look at vknabel/vscode-apple-swift-format#40 (comment)
same fix works for swiftformat too

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

No branches or pull requests

4 participants