realm / SwiftLint

A tool to enforce Swift style and conventions.

Home Page:https://realm.github.io/SwiftLint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmentation fault when using macro on SwiftUI Preview

frankois1234 opened this issue · comments

New Issue Checklist

Describe the bug

With a SwiftUI preview :

  • Using the macro way to declare the SwiftUI preview code block
  • Add @available on the preview (for new API reason)
  • Launch swiftlint lint --fix --format
  • Get a Segmentation fault
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint lint --fix --format
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
zsh: segmentation fault  swiftlint lint --fix --format

Environment

  • SwiftLint version (run swiftlint version to be sure)?
    0.54.0
  • Installation method used (Homebrew, CocoaPods, building from source, etc)?
    package or CocoaPods
  • Paste your configuration file:
No yml
  • Which Xcode version are you using (check xcodebuild -version)?
    15.2
@available(iOS 17, *) // making the crash
#Preview("Dummy", traits: .defaultLayout) {
    ContentView()
}

testMacroSwiftlint.zip