SwiftFormat: "Failed to format any files" on second run with --config option
Adding this on the build phase:
${PODS_ROOT}/SwiftFormat/CommandLineTool/swiftformat" "$SRCROOT" ' --config ' "$SRCROOT/../swiftformart"
fails on the second run: Failed to format any files.
Adding this: ``${PODS_ROOT}/SwiftFormat/CommandLineTool/swiftformat" “$SRCROOT” `
Works fine all the times.
version:
- SwiftFormat/CLI (0.44.6)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 23 (16 by maintainers)
I’ve taken steps to solve these issues in 0.44.11, in particular by removing the “Failed to format any files” error and only failing for more specific error cases. Let me know if this doesn’t solve the issue(s).
Perfect, I will give this a try.
Brilliant! I never would have found this otherwise… and not much we can do about Carthage.
@turtlemaster19 the issue with your project is fixed on the develop branch.
@brunofgs and @PompeiaPaetenari your issues are unrelated and I still don’t have a way to reproduce them, but you can try the develop branch and see if it solves them.
@turtlemaster19 What you posted was the verbose log of the
swift runcommand, not theswiftformatcommand. I assume if you add--verbosein your build script you should see that output as well, but I was just doing it in terminal.