nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.63k stars 623 forks source link

Staged file deletions result in "<unknown>: error: Unable to open /Some/FilePath/File.swift: file is not readable or does not exist" #1668

Closed Pispa339 closed 2 months ago

Pispa339 commented 2 months ago

With the latest update, staged file deletions are being incorrectly caught by the formatter, resulting in an error <unknown>: error: Unable to open /Some/FilePath/File.swift: file is not readable or does not exist

To reproduce: