Skip to content

fix: make format -i to work again #54

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

Merged
merged 1 commit into from
Jun 9, 2024
Merged

fix: make format -i to work again #54

merged 1 commit into from
Jun 9, 2024

Conversation

kkebo
Copy link
Owner

@kkebo kkebo commented Jun 8, 2024

fixes #52

@kkebo kkebo added the bug Something isn't working label Jun 8, 2024
@kkebo kkebo self-assigned this Jun 8, 2024
@kkebo
Copy link
Owner Author

kkebo commented Jun 8, 2024

$ echo 'let a:Int=0' > sample.swift
$ swift-format format -i sample.swift 
<unknown>: error: Unable to format sample.swift: Error Domain=NSCocoaErrorDomain Code=512 "(null)"
$ cat sample.swift
let a: Int = 0

@kkebo
Copy link
Owner Author

kkebo commented Jun 8, 2024

We need to fix swift-corelibs-foundation.

Although an error occurs, the writing itself succeeds, so I'm going to merge this PR.

@kkebo kkebo mentioned this pull request Jun 9, 2024
@kkebo kkebo merged commit 4d592e3 into wasm32-wasi Jun 9, 2024
2 checks passed
@kkebo kkebo deleted the issues/52 branch June 9, 2024 04:02
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

Successfully merging this pull request may close these issues.

Cannot format in-place
1 participant