Swiftformat: Inconsistent whitespace in multi-line, error: Failed to format any files on 2nd run.

Created on 2 Jan 2020  路  5Comments  路  Source: nicklockwood/SwiftFormat

I get a warning about inconsistent whitespace in multi-line string literals which will cause an error if I run swiftformat a 2nd time.

Version 0.43.3

Config file:

# Format Options
--swiftversion 5.1

# Excluded Directories
--exclude Carthage,Configs,tools

# Rules
--rules redundantBackticks,redundantBreak,redundantExtensionACL,redundantFileprivate,redundantGet,redundantInit,redundantLet,redundantLetError,redundantNilInit,redundantObjc,redundantParens,redundantPattern,redundantRawValues,redundantReturn,redundantSelf,redundantVoidReturnType

I've excluded the file for now which resolves this problem but figured I'd report it.
Oddly enough if I run without my config file I get more of these warnings but no error.

Most helpful comment

@Deco354 fixed in 0.43.4.

All 5 comments

@Deco354 thanks, I'll take a look.

@Deco354 fixed in 0.43.4.

@nicklockwood Is this bug back in v0.43.5 馃

@omaralbeik as far as I can tell there are no warnings or errors when formatting the example file with the specified settings. If you are seeing something similar it may be a different bug with similar symptoms. Please post a sample file demonstrating the problem (preferably in a new issue).

@omaralbeik as far as I can tell there are no warnings or errors when formatting the example file with the specified settings. If you are seeing something similar it may be a different bug with similar symptoms. Please post a sample file demonstrating the problem (preferably in a new issue).

Sorry, it was a problem from our side, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaxDesiatov picture MaxDesiatov  路  4Comments

PompeiaPaetenari picture PompeiaPaetenari  路  4Comments

Cyberbeni picture Cyberbeni  路  4Comments

igorkulman picture igorkulman  路  3Comments

shripada picture shripada  路  3Comments