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

Content deleted on Windows #40

Open
ivose opened this issue Nov 25, 2023 · 2 comments
Open

Content deleted on Windows #40

ivose opened this issue Nov 25, 2023 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ivose
Copy link

ivose commented Nov 25, 2023

I took in Windows' VS Code. If i format a swift file, it doesn't work. It removes content totally.

@ivose ivose changed the title It A bigger bug. Nov 25, 2023
@vknabel vknabel changed the title A bigger bug. Windows: deletes contents Dec 9, 2023
@vknabel vknabel changed the title Windows: deletes contents Content deletes on Windows Dec 9, 2023
@vknabel vknabel changed the title Content deletes on Windows Content deleted on Windows Dec 9, 2023
@seta-hailuong
Copy link

seta-hailuong commented Dec 11, 2023

can confirm this and SwiftFormat auto delete all text in file, heck even it stuck forever at prepare apple/swift-format, can also confirm swift beyond Xcode is unusable

@vknabel vknabel added bug Something isn't working help wanted Extra attention is needed labels Dec 22, 2023
@oskargargas
Copy link

Found a solution.

  1. Install swift-format globally and add it to system path.
  2. In plugin settings, modify path to only include:
"apple-swift-format.path": [
    "swift-format"
]

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