swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
66.97k stars 10.31k forks source link

Assertion failed: (LocalDiscriminator == InvalidDiscriminator && "LocalDiscriminator is set multiple times") when building a package with TCA as a dependency #71217

Open kuglee opened 5 months ago

kuglee commented 5 months ago

Description

I've got a compiler crash using swift build on macOS 14.2.1 with a brand new package without any code after adding TCA as a dependency with the swift-DEVELOPMENT-SNAPSHOT-2024-01-22-a toolchain.

Reproduction

  1. Install the swift-DEVELOPMENT-SNAPSHOT-2024-01-22-a toolchain
  2. Set the toolchain in Xcode
  3. command line: 3.1. git clone https://github.com/kuglee/SwiftCompilerCrash 3.2. cd SwiftCompilerCrash 3.3. export TOOLCHAINS=swift 3.4. swift build

Stack dump

Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetching https://github.com/pointfreeco/swift-composable-architecture from cache
Fetching https://github.com/apple/swift-collections from cache
Fetching https://github.com/pointfreeco/swift-concurrency-extras from cache
Fetching https://github.com/pointfreeco/swift-clocks from cache
Fetching https://github.com/pointfreeco/swiftui-navigation from cache
Fetched https://github.com/apple/swift-collections from cache (0.56s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.56s)
Fetching https://github.com/pointfreeco/combine-schedulers from cache
Fetching https://github.com/pointfreeco/swift-dependencies from cache
Fetched https://github.com/pointfreeco/swiftui-navigation from cache (0.56s)
Fetching https://github.com/apple/swift-syntax from cache
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.56s)
Fetching https://github.com/pointfreeco/swift-case-paths from cache
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.67s)
Fetching https://github.com/pointfreeco/swift-identified-collections from cache
Fetched https://github.com/pointfreeco/swift-composable-architecture from cache (0.67s)
Fetching https://github.com/pointfreeco/swift-custom-dump from cache
Computing version for https://github.com/pointfreeco/swift-composable-architecture
Fetched https://github.com/pointfreeco/swift-case-paths from cache (0.48s)
Fetching https://github.com/pointfreeco/swift-perception from cache
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.51s)
Fetched https://github.com/pointfreeco/swift-dependencies from cache (0.51s)
Fetched https://github.com/pointfreeco/swift-identified-collections from cache (0.47s)
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.47s)
Computed https://github.com/pointfreeco/swift-composable-architecture at 1.7.0 (0.61s)
Fetched https://github.com/apple/swift-syntax from cache (0.75s)
Fetched https://github.com/pointfreeco/swift-perception from cache (0.48s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.1.0 (10.46s)
Computing version for https://github.com/pointfreeco/swiftui-navigation
Computed https://github.com/pointfreeco/swiftui-navigation at 1.2.0 (0.73s)
Computing version for https://github.com/pointfreeco/swift-perception
Computed https://github.com/pointfreeco/swift-perception at 1.1.1 (0.60s)
Computing version for https://github.com/pointfreeco/swift-identified-collections
Computed https://github.com/pointfreeco/swift-identified-collections at 1.0.0 (0.76s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 1.2.0 (0.70s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.1.2 (0.74s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 1.1.0 (0.82s)
Computing version for https://github.com/pointfreeco/swift-case-paths
Computed https://github.com/pointfreeco/swift-case-paths at 1.2.1 (0.71s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 1.0.0 (0.71s)
Computing version for https://github.com/apple/swift-syntax
Computed https://github.com/apple/swift-syntax at 509.1.1 (0.82s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.0.6 (0.72s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 1.0.2 (0.71s)
Creating working copy for https://github.com/pointfreeco/swift-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 1.1.0
Creating working copy for https://github.com/apple/swift-syntax
Working copy of https://github.com/apple/swift-syntax resolved at 509.1.1
Creating working copy for https://github.com/pointfreeco/swift-composable-architecture
Working copy of https://github.com/pointfreeco/swift-composable-architecture resolved at 1.7.0
Creating working copy for https://github.com/pointfreeco/swift-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 1.2.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.1.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.1.2
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.0.6
Creating working copy for https://github.com/pointfreeco/swift-case-paths
Working copy of https://github.com/pointfreeco/swift-case-paths resolved at 1.2.1
Creating working copy for https://github.com/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 1.0.2
Creating working copy for https://github.com/pointfreeco/swift-perception
Working copy of https://github.com/pointfreeco/swift-perception resolved at 1.1.1
Creating working copy for https://github.com/pointfreeco/swiftui-navigation
Working copy of https://github.com/pointfreeco/swiftui-navigation resolved at 1.2.0
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 1.0.0
Creating working copy for https://github.com/pointfreeco/swift-identified-collections
Working copy of https://github.com/pointfreeco/swift-identified-collections resolved at 1.0.0
Building for debugging...
error: compile command failed due to signal 6 (use -v to see invocation)
error: compile command failed due to signal 6 (use -v to see invocation)
Assertion failed: (LocalDiscriminator == InvalidDiscriminator && "LocalDiscriminator is set multiple times"), function setLocalDiscriminator, file Decl.cpp, line 3195.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.  Program arguments: /Users/kuglee/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2024-01-22-a.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Dependencies/Dismiss.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Dependencies/IsPresented.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effect.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Animation.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Cancellation.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Debounce.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/EffectActions.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Publisher.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/TaskResult.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Throttle.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/AreOrderedSetsDuplicates.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Binding+IsPresent.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Box.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Create.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/CurrentValueRelay.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Debug.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Deprecations.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/EphemeralState.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Exports.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Locking.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Logger.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/NavigationID.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/OpenExistential.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/PresentationID.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/ReturningLastNonNilValue.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/RuntimeWarnings.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/StackIDGenerator.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/TypeName.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Macros.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/Alert+Observation.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/Binding+Observation.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/IdentifiedArray+Observation.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/NavigationStack+Observation.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/ObservableState.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/ObservationStateRegistrar.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/Store+Observation.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/ViewAction.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/ReducerBuilder.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/BindingReducer.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/CombineReducers.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/DebugReducer.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/DependencyKeyWritingReducer.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/EmptyReducer.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/ForEachReducer.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/IfCaseLetReducer.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/IfLetReducer.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/OnChange.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Optional.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/PresentationReducer.swift -primary-file /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Reduce.swift -primary-file /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Scope.swift -primary-file /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/SignpostReducer.swift -primary-file /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/StackReducer.swift -primary-file /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/RootStore.swift -primary-file /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Store.swift -primary-file /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Alert.swift -primary-file /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Binding.swift -primary-file /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ConfirmationDialog.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/ActionSheet.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/LegacyAlert.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/NavigationLinkStore.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/FullScreenCover.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/IfLetStore.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/NavigationDestination.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Popover.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/PresentationModifier.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Sheet.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/SwitchStore.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/WithViewStore.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/TestStore.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/AlertStateUIKit.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/IfLetUIKit.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/NSObject+Observation.swift /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/ViewStore.swift -supplementary-output-file-map /var/folders/wy/grbq1c2s1578nqnhmgr6pyhh0000gn/T/TemporaryDirectory.aDOEds/supplementaryOutputs-6 -target arm64-apple-macosx10.15 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -I /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/Modules -I /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/ModuleCache -suppress-warnings -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -load-plugin-executable /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/PerceptionMacros#PerceptionMacros -load-plugin-executable /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/DependenciesMacrosPlugin#DependenciesMacrosPlugin -load-plugin-executable /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/CasePathsMacros#CasePathsMacros -load-plugin-executable /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/ComposableArchitectureMacros#ComposableArchitectureMacros -external-plugin-path /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins#/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins#/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -empty-abi-descriptor -resource-dir /Users/kuglee/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2024-01-22-a.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -isysroot -Xcc /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -Xcc -F -Xcc /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name ComposableArchitecture -package-name swift_composable_architecture -target-sdk-version 14.4 -target-sdk-name macosx14.4 -external-plugin-path /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib/swift/host/plugins#/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/local/lib/swift/host/plugins#/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Users/kuglee/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2024-01-22-a.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Users/kuglee/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2024-01-22-a.xctoolchain/usr/local/lib/swift/host/plugins -parse-as-library -o /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/Reduce.swift.o -o /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/Scope.swift.o -o /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/SignpostReducer.swift.o -o /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/StackReducer.swift.o -o /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/RootStore.swift.o -o /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/Store.swift.o -o /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/Alert.swift.o -o /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/Binding.swift.o -o /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/ConfirmationDialog.swift.o -index-store-path /Users/kuglee/Downloads/SwiftCompilerCrash/.build/arm64-apple-macosx/debug/index/store -index-system-modules
1.  Apple Swift version 5.11-dev (LLVM 79aab1b6aed58d0, Swift fd9726839309a33)
2.  Compiling with the current language version
3.  While walking into body of '_alert(store:state:action:)' (at /Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Alert.swift:54:11)
4.  While verifying closure expression at [/Users/kuglee/Downloads/SwiftCompilerCrash/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Alert.swift:61:7 - line:89:5] RangeText="{ `self`, $isPresented, destination in
      let alertState = store.withState { $0.wrappedValue.flatMap(toDestinationState) }
      self.alert(
        (alertState?.title).map(Text.init) ?? Text(verbatim: ""),
        isPresented: $isPresented,
        presenting: alertState,
        actions: { alertState in
          ForEach(alertState.buttons) { button in
            Button(role: button.role.map(ButtonRole.init)) {
              switch button.action.type {
              case let .send(action):
                if let action = action {
                  store.send(.presented(fromDestinationAction(action)))
                }
              case let .animatedSend(action, animation):
                if let action = action {
                  store.send(.presented(fromDestinationAction(action)), animation: animation)
                }
              }
            } label: {
              Text(button.label)
            }
          }
        },
        message: {
          $0.message.map(Text.init)
        }
      )
    "
5.  While evaluating request LocalDiscriminatorsRequest(0x1488335d8 AbstractClosureExpr line=61 : (Self, Binding<Bool>, DestinationContent<AlertState<ButtonAction>, ButtonAction>) -> some View)
6.  While evaluating request LocalDiscriminatorsRequest(0x136545cb8 AbstractFunctionDecl name=_alert(store:state:action:) : <Self, State, Action, ButtonAction where Self : View> (Self) -> (Store<PresentationState<State>, PresentationAction<Action>>, @escaping (State) -> AlertState<ButtonAction>?, @escaping (ButtonAction) -> Action) -> some View)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x000000010567b88c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x000000010567a058 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x000000010567bed4 SignalHandler(int) + 304
3  libsystem_platform.dylib 0x0000000183b79a24 _sigtramp + 56
4  libsystem_pthread.dylib  0x0000000183b49cc0 pthread_kill + 288
5  libsystem_c.dylib        0x0000000183a55a40 abort + 180
6  libsystem_c.dylib        0x0000000183a54d30 err + 0
7  swift-frontend           0x0000000105b4d4b0 swift::ValueDecl::setLocalDiscriminator(unsigned int) (.cold.2) + 0
8  swift-frontend           0x00000001018abd44 swift::ValueDecl::getOverriddenDecl() const + 0
9  swift-frontend           0x0000000101511128 (anonymous namespace)::SetLocalDiscriminators::setLocalDiscriminator(swift::ValueDecl*) + 784
10 swift-frontend           0x0000000101516634 (anonymous namespace)::SetLocalDiscriminators::walkToExprPre(swift::Expr*) + 360
11 swift-frontend           0x0000000101846208 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 44
12 swift-frontend           0x000000010184825c (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) + 40
13 swift-frontend           0x00000001018462a0 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 196
14 swift-frontend           0x00000001018486ac swift::Stmt* llvm::function_ref<swift::Stmt* (swift::Stmt*)>::callback_fn<(anonymous namespace)::Traversal::doIt(swift::Stmt*)::'lambda'(swift::Stmt*)>(long, swift::Stmt*) + 496
15 swift-frontend           0x000000010184845c swift::Stmt* (anonymous namespace)::Traversal::traverse<swift::Stmt>(swift::ASTWalker::PreWalkResult<swift::Stmt*>, llvm::function_ref<swift::Stmt* (swift::Stmt*)>, llvm::function_ref<swift::ASTWalker::PostWalkResult<swift::Stmt*> (swift::Stmt*)>) + 72
16 swift-frontend           0x000000010184867c swift::Stmt* llvm::function_ref<swift::Stmt* (swift::Stmt*)>::callback_fn<(anonymous namespace)::Traversal::doIt(swift::Stmt*)::'lambda'(swift::Stmt*)>(long, swift::Stmt*) + 448
17 swift-frontend           0x000000010184845c swift::Stmt* (anonymous namespace)::Traversal::traverse<swift::Stmt>(swift::ASTWalker::PreWalkResult<swift::Stmt*>, llvm::function_ref<swift::Stmt* (swift::Stmt*)>, llvm::function_ref<swift::ASTWalker::PostWalkResult<swift::Stmt*> (swift::Stmt*)>) + 72
18 swift-frontend           0x0000000101846658 swift::Stmt::walk(swift::ASTWalker&) + 84
19 swift-frontend           0x000000010151656c (anonymous namespace)::SetLocalDiscriminators::walkToExprPre(swift::Expr*) + 160
20 swift-frontend           0x0000000101846208 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 44
21 swift-frontend           0x000000010184a790 swift::ArgumentList* llvm::function_ref<swift::ArgumentList* (swift::ArgumentList*)>::callback_fn<(anonymous namespace)::Traversal::doIt(swift::ArgumentList*)::'lambda'(swift::ArgumentList*)>(long, swift::ArgumentList*) + 228
22 swift-frontend           0x000000010184a64c swift::ArgumentList* (anonymous namespace)::Traversal::traverse<swift::ArgumentList>(swift::ASTWalker::PreWalkResult<swift::ArgumentList*>, llvm::function_ref<swift::ArgumentList* (swift::ArgumentList*)>, llvm::function_ref<swift::ASTWalker::PostWalkResult<swift::ArgumentList*> (swift::ArgumentList*)>) + 72
23 swift-frontend           0x00000001018482a0 (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) + 108
24 swift-frontend           0x00000001018462a0 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 196
25 swift-frontend           0x0000000101846280 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 164
26 swift-frontend           0x00000001018486ac swift::Stmt* llvm::function_ref<swift::Stmt* (swift::Stmt*)>::callback_fn<(anonymous namespace)::Traversal::doIt(swift::Stmt*)::'lambda'(swift::Stmt*)>(long, swift::Stmt*) + 496
27 swift-frontend           0x000000010184845c swift::Stmt* (anonymous namespace)::Traversal::traverse<swift::Stmt>(swift::ASTWalker::PreWalkResult<swift::Stmt*>, llvm::function_ref<swift::Stmt* (swift::Stmt*)>, llvm::function_ref<swift::ASTWalker::PostWalkResult<swift::Stmt*> (swift::Stmt*)>) + 72
28 swift-frontend           0x000000010184867c swift::Stmt* llvm::function_ref<swift::Stmt* (swift::Stmt*)>::callback_fn<(anonymous namespace)::Traversal::doIt(swift::Stmt*)::'lambda'(swift::Stmt*)>(long, swift::Stmt*) + 448
29 swift-frontend           0x000000010184845c swift::Stmt* (anonymous namespace)::Traversal::traverse<swift::Stmt>(swift::ASTWalker::PreWalkResult<swift::Stmt*>, llvm::function_ref<swift::Stmt* (swift::Stmt*)>, llvm::function_ref<swift::ASTWalker::PostWalkResult<swift::Stmt*> (swift::Stmt*)>) + 72
30 swift-frontend           0x0000000101846658 swift::Stmt::walk(swift::ASTWalker&) + 84
31 swift-frontend           0x00000001015109f0 swift::LocalDiscriminatorsRequest::evaluate(swift::Evaluator&, swift::DeclContext*) const + 884
32 swift-frontend           0x000000010151addc llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultUncached<swift::LocalDiscriminatorsRequest>(swift::LocalDiscriminatorsRequest const&) + 284
33 swift-frontend           0x000000010151abb8 llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultCached<swift::LocalDiscriminatorsRequest, (void*)0>(swift::LocalDiscriminatorsRequest const&) + 384
34 swift-frontend           0x0000000101510c0c swift::LocalDiscriminatorsRequest::OutputType swift::evaluateOrDefault<swift::LocalDiscriminatorsRequest>(swift::Evaluator&, swift::LocalDiscriminatorsRequest, swift::LocalDiscriminatorsRequest::OutputType) + 52
35 swift-frontend           0x000000010151addc llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultUncached<swift::LocalDiscriminatorsRequest>(swift::LocalDiscriminatorsRequest const&) + 284
36 swift-frontend           0x000000010151abb8 llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultCached<swift::LocalDiscriminatorsRequest, (void*)0>(swift::LocalDiscriminatorsRequest const&) + 384
37 swift-frontend           0x0000000101510c0c swift::LocalDiscriminatorsRequest::OutputType swift::evaluateOrDefault<swift::LocalDiscriminatorsRequest>(swift::Evaluator&, swift::LocalDiscriminatorsRequest, swift::LocalDiscriminatorsRequest::OutputType) + 52
38 swift-frontend           0x00000001019de58c swift::AbstractClosureExpr::getDiscriminator() const + 72
39 swift-frontend           0x000000010184242c (anonymous namespace)::Verifier::verifyChecked(swift::AbstractClosureExpr*) + 272
40 swift-frontend           0x0000000101839fcc swift::ASTWalker::PostWalkResult<swift::ClosureExpr*> (anonymous namespace)::Verifier::dispatchVisitPost<swift::ClosureExpr*>(swift::ClosureExpr*) + 192
41 swift-frontend           0x0000000101831e98 (anonymous namespace)::Verifier::walkToExprPost(swift::Expr*) + 1176
42 swift-frontend           0x000000010184659c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 960
43 swift-frontend           0x000000010184825c (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) + 40
44 swift-frontend           0x00000001018462a0 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 196
45 swift-frontend           0x0000000101847598 (anonymous namespace)::Traversal::visitAutoClosureExpr(swift::AutoClosureExpr*) + 40
46 swift-frontend           0x0000000101846454 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 632
47 swift-frontend           0x000000010184a790 swift::ArgumentList* llvm::function_ref<swift::ArgumentList* (swift::ArgumentList*)>::callback_fn<(anonymous namespace)::Traversal::doIt(swift::ArgumentList*)::'lambda'(swift::ArgumentList*)>(long, swift::ArgumentList*) + 228
48 swift-frontend           0x000000010184a64c swift::ArgumentList* (anonymous namespace)::Traversal::traverse<swift::ArgumentList>(swift::ASTWalker::PreWalkResult<swift::ArgumentList*>, llvm::function_ref<swift::ArgumentList* (swift::ArgumentList*)>, llvm::function_ref<swift::ASTWalker::PostWalkResult<swift::ArgumentList*> (swift::ArgumentList*)>) + 72
49 swift-frontend           0x00000001018482a0 (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) + 108
50 swift-frontend           0x00000001018462a0 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 196
51 swift-frontend           0x0000000101846280 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 164
52 swift-frontend           0x00000001018486ac swift::Stmt* llvm::function_ref<swift::Stmt* (swift::Stmt*)>::callback_fn<(anonymous namespace)::Traversal::doIt(swift::Stmt*)::'lambda'(swift::Stmt*)>(long, swift::Stmt*) + 496
53 swift-frontend           0x000000010184845c swift::Stmt* (anonymous namespace)::Traversal::traverse<swift::Stmt>(swift::ASTWalker::PreWalkResult<swift::Stmt*>, llvm::function_ref<swift::Stmt* (swift::Stmt*)>, llvm::function_ref<swift::ASTWalker::PostWalkResult<swift::Stmt*> (swift::Stmt*)>) + 72
54 swift-frontend           0x000000010184867c swift::Stmt* llvm::function_ref<swift::Stmt* (swift::Stmt*)>::callback_fn<(anonymous namespace)::Traversal::doIt(swift::Stmt*)::'lambda'(swift::Stmt*)>(long, swift::Stmt*) + 448
55 swift-frontend           0x000000010184845c swift::Stmt* (anonymous namespace)::Traversal::traverse<swift::Stmt>(swift::ASTWalker::PreWalkResult<swift::Stmt*>, llvm::function_ref<swift::Stmt* (swift::Stmt*)>, llvm::function_ref<swift::ASTWalker::PostWalkResult<swift::Stmt*> (swift::Stmt*)>) + 72
56 swift-frontend           0x000000010184a478 (anonymous namespace)::Traversal::visitAbstractFunctionDecl(swift::AbstractFunctionDecl*) + 652
57 swift-frontend           0x000000010184927c (anonymous namespace)::Traversal::visit(swift::Decl*) + 156
58 swift-frontend           0x0000000101846d18 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 284
59 swift-frontend           0x0000000101849b48 (anonymous namespace)::Traversal::visit(swift::Decl*) + 2408
60 swift-frontend           0x0000000101846d18 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 284
61 swift-frontend           0x0000000101846bf0 swift::Decl::walk(swift::ASTWalker&) + 32
62 swift-frontend           0x0000000101a18960 swift::SourceFile::walk(swift::ASTWalker&) + 248
63 swift-frontend           0x0000000101831170 swift::verify(swift::SourceFile&) + 96
64 swift-frontend           0x0000000101b4393c swift::TypeCheckSourceFileRequest::cacheResult(std::__1::tuple<>) const + 76
65 swift-frontend           0x0000000101551b4c swift::TypeCheckSourceFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckSourceFileRequest>(swift::Evaluator&, swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType) + 44
66 swift-frontend           0x00000001004afbd8 bool llvm::function_ref<bool (swift::SourceFile&)>::callback_fn<swift::CompilerInstance::performSema()::$_7>(long, swift::SourceFile&) + 16
67 swift-frontend           0x00000001004a9a1c swift::CompilerInstance::forEachFileToTypeCheck(llvm::function_ref<bool (swift::SourceFile&)>) + 76
68 swift-frontend           0x00000001004a99b0 swift::CompilerInstance::performSema() + 76
69 swift-frontend           0x000000010028653c withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 60
70 swift-frontend           0x0000000100277fe4 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 708
71 swift-frontend           0x0000000100277018 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2280
72 swift-frontend           0x00000001000e9054 swift::mainEntry(int, char const**) + 3108
73 dyld                     0x00000001837c90e0 start + 2360

Expected behavior

The package compiles successfully.

Environment

Apple Swift version 5.11-dev (LLVM 79aab1b6aed58d0, Swift fd9726839309a33) Target: arm64-apple-macosx14.0

Additional information

The package builds fine with the following toolchain: swift-driver version: 1.90.8 Apple Swift version 5.10 (swiftlang-5.10.0.10.5 clang-1500.3.7.4) Target: arm64-apple-macosx14.0

xedin commented 5 months ago

cc @DougGregor

danthorpe commented 4 months ago

I have bumped into this issue too.

With this environment

Run swift --version Apple Swift version 5.10-dev (LLVM 57d4e30156f5d21, Swift c05dd0b9c7ce6bc) Target: arm64-apple-macosx14.0

And this console output,

[548/615] Compiling ComposableArchitecture ReducerBuilder.swift
error: compile command failed due to signal 6 (use -v to see invocation)
Assertion failed: (LocalDiscriminator == InvalidDiscriminator && "LocalDiscriminator is set multiple times"), function setLocalDiscriminator, file Decl.cpp, line 3039.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.  Program arguments: /Users/runner/hostedtoolcache/swift-5.10-DEVELOPMENT-SNAPSHOT-2023-12-10-a-xcode/5.10.0/aarch64/usr/bin/swift-frontend -frontend -c /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/CaseReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Dependencies/Dismiss.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Dependencies/IsPresented.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effect.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Animation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Cancellation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Debounce.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/EffectActions.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Publisher.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/TaskResult.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Throttle.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/AreOrderedSetsDuplicates.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Binding+IsPresent.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Box.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Create.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/CurrentValueRelay.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Debug.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Deprecations.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/EphemeralState.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Exports.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Locking.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Logger.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/NavigationID.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/OpenExistential.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/PresentationID.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/ReturningLastNonNilValue.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/RuntimeWarnings.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/StackIDGenerator.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/TypeName.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Macros.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/Alert+Observation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/Binding+Observation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/IdentifiedArray+Observation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/NavigationStack+Observation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/ObservableState.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/ObservationStateRegistrar.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/Store+Observation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/ViewAction.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/ReducerBuilder.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/BindingReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/CombineReducers.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/DebugReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/DependencyKeyWritingReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/EmptyReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/ForEachReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/IfCaseLetReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/IfLetReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/OnChange.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Optional.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/PresentationReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Reduce.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Scope.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/SignpostReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/StackReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/RootStore.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Store.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Alert.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Binding.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ConfirmationDialog.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/ActionSheet.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/LegacyAlert.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/NavigationLinkStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/FullScreenCover.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/IfLetStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/NavigationDestination.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Popover.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/PresentationModifier.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Sheet.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/SwitchStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/WithViewStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/TestStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/AlertStateUIKit.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/IfLetUIKit.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/NSObject+Observation.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/ViewStore.swift -supplementary-output-file-map /var/folders/c3/yyzr8vp96lg9ycnj632jvpnw0000gn/T/TemporaryDirectory.fiiGJn/supplementaryOutputs-4 -target arm64-apple-macosx10.15 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -I /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug -I /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -module-cache-path /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ModuleCache -suppress-warnings -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /Users/runner/hostedtoolcache/swift-5.10-DEVELOPMENT-SNAPSHOT-2023-12-10-a-xcode/5.10.0/aarch64/usr/bin/swift-driver -load-plugin-executable /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/PerceptionMacros#PerceptionMacros -load-plugin-executable /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/DependenciesMacrosPlugin#DependenciesMacrosPlugin -load-plugin-executable /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/CasePathsMacros#CasePathsMacros -load-plugin-executable /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitectureMacros#ComposableArchitectureMacros -external-plugin-path /Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins#/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins#/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -empty-abi-descriptor -resource-dir /Users/runner/hostedtoolcache/swift-5.10-DEVELOPMENT-SNAPSHOT-2023-12-10-a-xcode/5.10.0/aarch64/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -isysroot -Xcc /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -Xcc -F -Xcc /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name ComposableArchitecture -package-name swift_composable_architecture -target-sdk-version 14.0 -target-sdk-name macosx14.0 -external-plugin-path /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/lib/swift/host/plugins#/Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/local/lib/swift/host/plugins#/Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Users/runner/hostedtoolcache/swift-5.10-DEVELOPMENT-SNAPSHOT-2023-12-10-a-xcode/5.10.0/aarch64/usr/lib/swift/host/plugins -plugin-path /Users/runner/hostedtoolcache/swift-5.10-DEVELOPMENT-SNAPSHOT-2023-12-10-a-xcode/5.10.0/aarch64/usr/local/lib/swift/host/plugins -parse-as-library -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/ConfirmationDialog.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/ActionSheet.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/LegacyAlert.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/NavigationLinkStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/ForEachStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/FullScreenCover.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/IfLetStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/NavigationDestination.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/NavigationStackStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/Popover.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/PresentationModifier.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/Sheet.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/SwitchStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/WithViewStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/TestStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/AlertStateUIKit.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/IfLetUIKit.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/NSObject+Observation.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/ViewStore.swift.o -index-store-path /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/index/store -index-system-modules
1.  Apple Swift version 5.10-dev (LLVM 57d4e30156f5d21, Swift c05dd0b9c7ce6bc)
2.  Compiling with the current language version
3.  While walking into body of '_confirmationDialog(store:state:action:)' (at /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ConfirmationDialog.swift:57:11)
4.  While verifying closure expression at [/Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ConfirmationDialog.swift:64:7 - line:94:5] RangeText="{ `self`, $isPresented, destination in
      let confirmationDialogState = store.withState { $0.wrappedValue.flatMap(toDestinationState) }
      self.confirmationDialog(
        (confirmationDialogState?.title).map(Text.init) ?? Text(verbatim: ""),
        isPresented: $isPresented,
        titleVisibility: (confirmationDialogState?.titleVisibility).map(Visibility.init)
          ?? .automatic,
        presenting: confirmationDialogState,
        actions: { confirmationDialogState in
          ForEach(confirmationDialogState.buttons) { button in
            Button(role: button.role.map(ButtonRole.init)) {
              switch button.action.type {
              case let .send(action):
                if let action {
                  store.send(.presented(fromDestinationAction(action)))
                }
              case let .animatedSend(action, animation):
                if let action {
                  store.send(.presented(fromDestinationAction(action)), animation: animation)
                }
              }
            } label: {
              Text(button.label)
            }
          }
        },
        message: {
          $0.message.map(Text.init)
        }
      )
    "
5.  While evaluating request LocalDiscriminatorsRequest(0x141cbe458 AbstractClosureExpr line=64 : (Self, Binding<Bool>, DestinationContent<ConfirmationDialogState<ButtonAction>, ButtonAction>) -> some View)
6.  While evaluating request LocalDiscriminatorsRequest(0x1228493f8 AbstractFunctionDecl name=_confirmationDialog(store:state:action:) : <Self, State, Action, ButtonAction where Self : View> (Self) -> (Store<PresentationState<State>, PresentationAction<Action>>, @escaping (State) -> ConfirmationDialogState<ButtonAction>?, @escaping (ButtonAction) -> Action) -> some View)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x0000000105de4928 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x0000000105de3ccc llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x0000000105de4f68 SignalHandler(int) + 304
3  libsystem_platform.dylib 0x000000018d265a24 _sigtramp + 56
4  libsystem_pthread.dylib  0x000000018d235cc0 pthread_kill + 288
5  libsystem_c.dylib        0x000000018d141a40 abort + 180
6  libsystem_c.dylib        0x000000018d140d30 err + 0
7  swift-frontend           0x000000010628dd48 swift::ValueDecl::setLocalDiscriminator(unsigned int) (.cold.2) + 0
8  swift-frontend           0x00000001023d0118 swift::ValueDecl::getOverriddenDecl() const + 0
9  swift-frontend           0x0000000102065598 (anonymous namespace)::SetLocalDiscriminators::setLocalDiscriminator(swift::ValueDecl*) + 776
10 swift-frontend           0x000000010206a1fc (anonymous namespace)::SetLocalDiscriminators::walkToExprPre(swift::Expr*) + 360
11 swift-frontend           0x0000000102372d38 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 40
12 swift-frontend           0x0000000102373740 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 144
13 swift-frontend           0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
14 swift-frontend           0x00000001023746ac swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 408
15 swift-frontend           0x0000000102372eb8 (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
16 swift-frontend           0x000000010237467c swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 360
17 swift-frontend           0x0000000102372eb8 (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
18 swift-frontend           0x0000000102372e30 swift::Stmt::walk(swift::ASTWalker&) + 32
19 swift-frontend           0x000000010206a134 (anonymous namespace)::SetLocalDiscriminators::walkToExprPre(swift::Expr*) + 160
20 swift-frontend           0x0000000102372d38 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 40
21 swift-frontend           0x000000010237704c (anonymous namespace)::Traversal::visit(swift::ArgumentList*) + 220
22 swift-frontend           0x000000010237362c (anonymous namespace)::Traversal::doIt(swift::ArgumentList*) + 100
23 swift-frontend           0x0000000102373754 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 164
24 swift-frontend           0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
25 swift-frontend           0x000000010237370c swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 92
26 swift-frontend           0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
27 swift-frontend           0x00000001023746ac swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 408
28 swift-frontend           0x0000000102372eb8 (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
29 swift-frontend           0x000000010237467c swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 360
30 swift-frontend           0x0000000102372eb8 (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
31 swift-frontend           0x0000000102372e30 swift::Stmt::walk(swift::ASTWalker&) + 32
32 swift-frontend           0x00000001020650a0 swift::LocalDiscriminatorsRequest::evaluate(swift::Evaluator&, swift::DeclContext*) const + 1004
33 swift-frontend           0x0000000102418ac0 llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultUncached<swift::LocalDiscriminatorsRequest>(swift::LocalDiscriminatorsRequest const&) + 376
34 swift-frontend           0x00000001024187c8 llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultCached<swift::LocalDiscriminatorsRequest, (void*)0>(swift::LocalDiscriminatorsRequest const&) + 384
35 swift-frontend           0x00000001023cffe0 swift::LocalDiscriminatorsRequest::OutputType swift::evaluateOrDefault<swift::LocalDiscriminatorsRequest>(swift::Evaluator&, swift::LocalDiscriminatorsRequest, swift::LocalDiscriminatorsRequest::OutputType) + 52
36 swift-frontend           0x0000000102418ac0 llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultUncached<swift::LocalDiscriminatorsRequest>(swift::LocalDiscriminatorsRequest const&) + 376
37 swift-frontend           0x00000001024187c8 llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultCached<swift::LocalDiscriminatorsRequest, (void*)0>(swift::LocalDiscriminatorsRequest const&) + 384
38 swift-frontend           0x00000001023cffe0 swift::LocalDiscriminatorsRequest::OutputType swift::evaluateOrDefault<swift::LocalDiscriminatorsRequest>(swift::Evaluator&, swift::LocalDiscriminatorsRequest, swift::LocalDiscriminatorsRequest::OutputType) + 52
39 swift-frontend           0x0000000102503c54 swift::AbstractClosureExpr::getDiscriminator() const + 72
40 swift-frontend           0x000000010236ef58 (anonymous namespace)::Verifier::verifyChecked(swift::AbstractClosureExpr*) + 412
41 swift-frontend           0x0000000102366934 (anonymous namespace)::Verifier::walkToExprPost(swift::Expr*) + 20960
42 swift-frontend           0x0000000102372db0 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 160
43 swift-frontend           0x0000000102373740 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 144
44 swift-frontend           0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
45 swift-frontend           0x0000000102373838 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 392
46 swift-frontend           0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
47 swift-frontend           0x000000010237704c (anonymous namespace)::Traversal::visit(swift::ArgumentList*) + 220
48 swift-frontend           0x000000010237362c (anonymous namespace)::Traversal::doIt(swift::ArgumentList*) + 100
49 swift-frontend           0x0000000102373754 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 164
50 swift-frontend           0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
51 swift-frontend           0x000000010237370c swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 92
52 swift-frontend           0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
53 swift-frontend           0x00000001023746ac swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 408
54 swift-frontend           0x0000000102372eb8 (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
55 swift-frontend           0x000000010237467c swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 360
56 swift-frontend           0x0000000102372eb8 (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
57 swift-frontend           0x0000000102376ddc (anonymous namespace)::Traversal::visitAbstractFunctionDecl(swift::AbstractFunctionDecl*) + 628
58 swift-frontend           0x0000000102373484 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 320
59 swift-frontend           0x0000000102375ea8 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Decl*) + 2500
60 swift-frontend           0x0000000102373484 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 320
61 swift-frontend           0x0000000102373338 swift::Decl::walk(swift::ASTWalker&) + 32
62 swift-frontend           0x00000001025446ac swift::SourceFile::walk(swift::ASTWalker&) + 248
63 swift-frontend           0x00000001023604f0 swift::verify(swift::SourceFile&) + 96
64 swift-frontend           0x00000001026634c8 swift::TypeCheckSourceFileRequest::cacheResult(std::__1::tuple<>) const + 76
65 swift-frontend           0x00000001020a361c llvm::Expected<swift::TypeCheckSourceFileRequest::OutputType> swift::Evaluator::getResultCached<swift::TypeCheckSourceFileRequest, (void*)0>(swift::TypeCheckSourceFileRequest const&) + 120
66 swift-frontend           0x00000001020a1360 swift::TypeCheckSourceFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckSourceFileRequest>(swift::Evaluator&, swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType) + 44
67 swift-frontend           0x0000000101107de0 bool llvm::function_ref<bool (swift::SourceFile&)>::callback_fn<swift::CompilerInstance::performSema()::$_7>(long, swift::SourceFile&) + 16
68 swift-frontend           0x00000001011035fc swift::CompilerInstance::forEachFileToTypeCheck(llvm::function_ref<bool (swift::SourceFile&)>) + 76
69 swift-frontend           0x0000000101103590 swift::CompilerInstance::performSema() + 92
70 swift-frontend           0x0000000100f588b4 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 60
71 swift-frontend           0x0000000100f4c258 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 740
72 swift-frontend           0x0000000100f4b1dc swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2496
73 swift-frontend           0x0000000100e12290 swift::mainEntry(int, char const**) + 2152
74 dyld                     0x000000018ceb50e0 start + 2360
error: fatalError
Error: Process completed with exit code 1.
twof commented 3 months ago

I'm running into this as well. The project compiles fine and tests pass on my local machine, but I'm seeing this error thrown from a github action.

https://github.com/twof/EverythingButTheBagel/actions/runs/8496687181/job/23274349662

twof commented 3 months ago

I think there may be something wrong with the release being used by swift-actions/setup-swift@v2. I switched from

 - uses: swift-actions/setup-swift@v2
      with:
        swift-version: "5.10"

to

- name: Select Xcode 15.3
        run: sudo xcode-select -s /Applications/Xcode_15.3.app/Contents/Developer

And that resolved the issue.

danthorpe commented 3 months ago

Nice - thanks @twof,

Another option/method is to the env,

env:
  DEVELOPER_DIR: /Applications/Xcode_15.3.app/Contents/Developer

Adding a step to report the version,

      - name: Report Swift Version
        run: xcrun swift --version

Run xcrun swift --version Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) Target: arm64-apple-macosx14.0 swift-driver version: 1.90.11.1