pointfreeco/swift-parsing

Failed with non-zero exit code

nashysolutions opened this issue · 1 comments

Cannot compile.

SwiftEmitModule normal arm64 Emitting\ module\ for\ URLRouting (in target 'URLRouting' from project 'swift-url-routing')

Cannot build interface type for term τ_0_0.[Parser:Input]
Prefix term does not not have a nested type named Input: τ_0_0
Property map entry: τ_0_0 => { concrete_type: [concrete: Parsers.MapConversion<Parsers.ReplaceError<Rest<Data>>, τ_1_0>] }

Property map: {
  [Conversion] => { conforms_to: [Conversion] }
  τ_0_0 => { concrete_type: [concrete: Parsers.MapConversion<Parsers.ReplaceError<Rest<Data>>, τ_1_0>] }
  τ_1_0 => { conforms_to: [Conversion] }
  τ_0_0.[Parser:Input] => { concrete_type: [concrete: Data] }
  τ_1_0.[Conversion:Input] => { concrete_type: [concrete: Data] }
}
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace.
Stack dump:
0.	Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Body.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Builders/Variadics.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Client/Client.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Cookies.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Exports.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Field.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/FormData.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Fragment.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Headers.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Host.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Internal/AnyEquatable.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Internal/Breakpoint.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Internal/Deprecations.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Method.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Parsing/Parse.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Parsing/ParserPrinter.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Path.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/PathBuilder.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Printing.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Query.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Route.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/RoutingError.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Scheme.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/URLRequestData+Foundation.swift /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/URLRequestData.swift -target arm64-apple-macos10.15 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -I /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Products/Debug -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Products/Debug/PackageFrameworks -F /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Products/Debug/PackageFrameworks -F /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Products/Debug/PackageFrameworks -F /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Products/Debug -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -no-color-diagnostics -enable-testing -g -module-cache-path /Users/robertnash/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -empty-abi-descriptor -Xcc -working-directory -Xcc /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Intermediates.noindex/swift-url-routing.build/Debug/URLRouting.build/swift-overrides.hmap -Xcc -I/Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Products/Debug/include -Xcc -I/Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Intermediates.noindex/swift-url-routing.build/Debug/URLRouting.build/DerivedSources-normal/arm64 -Xcc -I/Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Intermediates.noindex/swift-url-routing.build/Debug/URLRouting.build/DerivedSources/arm64 -Xcc -I/Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Intermediates.noindex/swift-url-routing.build/Debug/URLRouting.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG=1 -module-name URLRouting -disable-clang-spi -target-sdk-version 13.0 -emit-module-doc-path /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Intermediates.noindex/swift-url-routing.build/Debug/URLRouting.build/Objects-normal/arm64/URLRouting.swiftdoc -emit-module-source-info-path /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Intermediates.noindex/swift-url-routing.build/Debug/URLRouting.build/Objects-normal/arm64/URLRouting.swiftsourceinfo -emit-objc-header-path /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Intermediates.noindex/swift-url-routing.build/Debug/URLRouting.build/Objects-normal/arm64/URLRouting-Swift.h -serialize-diagnostics-path /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Intermediates.noindex/swift-url-routing.build/Debug/URLRouting.build/Objects-normal/arm64/URLRouting-master-emit-module.dia -emit-dependencies-path /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Intermediates.noindex/swift-url-routing.build/Debug/URLRouting.build/Objects-normal/arm64/URLRouting-master-emit-module.d -o /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Intermediates.noindex/swift-url-routing.build/Debug/URLRouting.build/Objects-normal/arm64/URLRouting.swiftmodule -emit-abi-descriptor-path /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/Build/Intermediates.noindex/swift-url-routing.build/Debug/URLRouting.build/Objects-normal/arm64/URLRouting.abi.json
1.	Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
2.	Compiling with the current language version
3.	While evaluating request TypeCheckSourceFileRequest(source_file "/Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Body.swift")
4.	While type-checking 'Body' (at /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Body.swift:4:8)
5.	While type-checking 'init(_:)' (at /Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Body.swift:28:10)
6.	While evaluating request InterfaceTypeRequest(URLRouting.(file).Body.init(_:)@/Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Body.swift:28:10)
7.	While evaluating request GenericSignatureRequest(URLRouting.(file).Body.init(_:)@/Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Body.swift:28:10)
8.	While evaluating request InferredGenericSignatureRequest(URLRouting, <Bytes where Bytes : Parser, Bytes.Input == Data>, <C>, URLRouting.(file).Body.init(_:)@/Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Body.swift:28:10, {}, {(C, C)}, 0)
9.	While evaluating request InferredGenericSignatureRequestRQM(<Bytes where Bytes : Parser, Bytes.Input == Data>, <C>, URLRouting.(file).Body.init(_:)@/Users/robertnash/Library/Developer/Xcode/DerivedData/mock-server-fnnmifldeoetaodjzhbpeadypzab/SourcePackages/checkouts/swift-url-routing/Sources/URLRouting/Body.swift:28:10, {}, {(C, C)}, 0)
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           0x0000000109abb5b0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x0000000109aba5b4 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x0000000109abbc34 SignalHandler(int) + 344
3  libsystem_platform.dylib 0x000000019f4982a4 _sigtramp + 56
4  libsystem_pthread.dylib  0x000000019f469cec pthread_kill + 288
5  libsystem_c.dylib        0x000000019f3a32c8 abort + 180
6  swift-frontend           0x00000001064502a8 swift::rewriting::RewriteContext::getRelativeTermForType(swift::CanType, llvm::ArrayRef<swift::rewriting::Term>) + 0
7  swift-frontend           0x0000000106462d7c swift::rewriting::RequirementMachine::buildRequirementsFromRules(llvm::ArrayRef<unsigned int>, llvm::ArrayRef<unsigned int>, swift::ArrayRefView<swift::Type, swift::GenericTypeParamType*, swift::GenericTypeParamType* swift::staticCastHelper<swift::GenericTypeParamType>(swift::Type const&), true>, bool, std::__1::vector<swift::Requirement, std::__1::allocator<swift::Requirement> >&, std::__1::vector<swift::ProtocolTypeAlias, std::__1::allocator<swift::ProtocolTypeAlias> >&) const + 548
8  swift-frontend           0x0000000106470fe0 swift::rewriting::RequirementMachine::computeMinimalGenericSignature(bool) + 220
9  swift-frontend           0x00000001064733a4 swift::InferredGenericSignatureRequestRQM::evaluate(swift::Evaluator&, swift::GenericSignatureImpl const*, swift::GenericParamList*, swift::WhereClauseOwner, llvm::SmallVector<swift::Requirement, 2u>, llvm::SmallVector<swift::TypeLoc, 2u>, bool) const + 2740
10 swift-frontend           0x0000000105f18e80 swift::SimpleRequest<swift::InferredGenericSignatureRequestRQM, llvm::PointerIntPair<swift::GenericSignature, 3u, swift::OptionSet<swift::GenericSignatureErrorFlags, unsigned int>, llvm::PointerLikeTypeTraits<swift::GenericSignature>, llvm::PointerIntPairInfo<swift::GenericSignature, 3u, llvm::PointerLikeTypeTraits<swift::GenericSignature> > > (swift::GenericSignatureImpl const*, swift::GenericParamList*, swift::WhereClauseOwner, llvm::SmallVector<swift::Requirement, 2u>, llvm::SmallVector<swift::TypeLoc, 2u>, bool), (swift::RequestFlags)2>::evaluateRequest(swift::InferredGenericSignatureRequestRQM const&, swift::Evaluator&) + 316
11 swift-frontend           0x00000001063afdf8 llvm::Expected<swift::InferredGenericSignatureRequestRQM::OutputType> swift::Evaluator::getResultCached<swift::InferredGenericSignatureRequestRQM, (void*)0>(swift::InferredGenericSignatureRequestRQM const&) + 1900
12 swift-frontend           0x00000001063a1f50 swift::InferredGenericSignatureRequest::evaluate(swift::Evaluator&, swift::ModuleDecl*, swift::GenericSignatureImpl const*, swift::GenericParamList*, swift::WhereClauseOwner, llvm::SmallVector<swift::Requirement, 2u>, llvm::SmallVector<swift::TypeLoc, 2u>, bool) const + 388
13 swift-frontend           0x0000000105f18cf8 swift::SimpleRequest<swift::InferredGenericSignatureRequest, llvm::PointerIntPair<swift::GenericSignature, 3u, swift::OptionSet<swift::GenericSignatureErrorFlags, unsigned int>, llvm::PointerLikeTypeTraits<swift::GenericSignature>, llvm::PointerIntPairInfo<swift::GenericSignature, 3u, llvm::PointerLikeTypeTraits<swift::GenericSignature> > > (swift::ModuleDecl*, swift::GenericSignatureImpl const*, swift::GenericParamList*, swift::WhereClauseOwner, llvm::SmallVector<swift::Requirement, 2u>, llvm::SmallVector<swift::TypeLoc, 2u>, bool), (swift::RequestFlags)2>::evaluateRequest(swift::InferredGenericSignatureRequest const&, swift::Evaluator&) + 368
14 swift-frontend           0x0000000105e00280 llvm::Expected<swift::InferredGenericSignatureRequest::OutputType> swift::Evaluator::getResultUncached<swift::InferredGenericSignatureRequest>(swift::InferredGenericSignatureRequest const&) + 680
15 swift-frontend           0x0000000105dffee0 llvm::Expected<swift::InferredGenericSignatureRequest::OutputType> swift::Evaluator::getResultCached<swift::InferredGenericSignatureRequest, (void*)0>(swift::InferredGenericSignatureRequest const&) + 620
16 swift-frontend           0x0000000105ebac68 swift::GenericSignatureRequest::evaluate(swift::Evaluator&, swift::GenericContext*) const + 2336
17 swift-frontend           0x000000010627f25c swift::GenericContext::getGenericSignature() const + 1640
18 swift-frontend           0x0000000105e58648 swift::InterfaceTypeRequest::evaluate(swift::Evaluator&, swift::ValueDecl*) const + 296
19 swift-frontend           0x0000000106289bcc swift::InterfaceTypeRequest::OutputType swift::evaluateOrDefault<swift::InterfaceTypeRequest>(swift::Evaluator&, swift::InterfaceTypeRequest, swift::InterfaceTypeRequest::OutputType) + 948
20 swift-frontend           0x0000000105e930f8 swift::ASTVisitor<(anonymous namespace)::DeclChecker, void, void, void, void, void, void>::visit(swift::Decl*) + 308
21 swift-frontend           0x0000000105e8ff50 (anonymous namespace)::DeclChecker::visit(swift::Decl*) + 400
22 swift-frontend           0x0000000105e93bd8 swift::ASTVisitor<(anonymous namespace)::DeclChecker, void, void, void, void, void, void>::visit(swift::Decl*) + 3092
23 swift-frontend           0x0000000105e8ff50 (anonymous namespace)::DeclChecker::visit(swift::Decl*) + 400
24 swift-frontend           0x0000000105e8fdb4 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 204
25 swift-frontend           0x0000000105f59cb4 swift::TypeCheckSourceFileRequest::evaluate(swift::Evaluator&, swift::SourceFile*) const + 540
26 swift-frontend           0x0000000105f5c960 llvm::Expected<swift::TypeCheckSourceFileRequest::OutputType> swift::Evaluator::getResultUncached<swift::TypeCheckSourceFileRequest>(swift::TypeCheckSourceFileRequest const&) + 576
27 swift-frontend           0x0000000105f59a44 swift::performTypeChecking(swift::SourceFile&) + 120
28 swift-frontend           0x000000010517ab8c bool llvm::function_ref<bool (swift::SourceFile&)>::callback_fn<swift::CompilerInstance::performSema()::$_6>(long, swift::SourceFile&) + 16
29 swift-frontend           0x0000000105175300 swift::CompilerInstance::forEachFileToTypeCheck(llvm::function_ref<bool (swift::SourceFile&)>) + 288
30 swift-frontend           0x00000001051751a4 swift::CompilerInstance::performSema() + 148
31 swift-frontend           0x00000001051082ac swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 4364
32 swift-frontend           0x00000001050a93c0 swift::mainEntry(int, char const**) + 3940
33 dyld                     0x000000019f13fe50 start + 2544
Command SwiftEmitModule failed with a nonzero exit code

Hi @nashysolutions, can you share more information about how you got this error? I just pulled the newest swift-url-routing and it compiled just fine in Xcode 14.1 / Swift 5.7.

Also I'm going to convert this to a discussion since I don't think this is a bug in the library.