Comments (6)
I'm using Xcode 13
Could you share where to download Xcode 13? 😮
from graphiti.
The most recent Xcode version is 11.3.1 and available on the AppStore.
from graphiti.
I created a fork that gets rid of the function builders as long as they are in a "beta" and private state. I think the long term solution should be function builders but until then you can try this fork: https://github.com/alexsteinerde/Graphiti
from graphiti.
This is fixed in the last release. Unfortunately we had to go back to more verbose conventional builders. We could also provide the array solution @alexsteinerde used in parallel, I reckon. Let people choose what they prefer. I'm still not sure which I prefer myself, to be honest.
from graphiti.
I'm running into this myself after updating to the latest Graphiti—you can reproduce it in this file, taken mostly from the example in the README (plus a few Codable
conformances): https://github.com/SwiftGraphQLExample/Server-Vapor/blob/master/Sources/App/Data/Schema.swift
This feels like a Swift @functionBuilder
type-checking bug (I'm using Xcode 13), but you can build it successfully if you comment everything out except, say, the Episode
enum and one of its values.
In case it means anything to you, here's the stack dump I get after running swift build
:
0 swift 0x0000000107756a63 PrintStackTraceSignalHandler(void*) + 51
1 swift 0x0000000107756236 SignalHandler(int) + 358
2 libsystem_platform.dylib 0x00007fff66eadb1d _sigtramp + 29
3 libsystem_platform.dylib 000000000000000000 _sigtramp + 2568299776
4 swift 0x00000001037f1aab swift::Lowering::SILGenFunction::emitInitializationForVarDecl(swift::VarDecl*, bool) + 1755
5 swift 0x00000001037f3d7b swift::Lowering::SILGenFunction::emitPatternBinding(swift::PatternBindingDecl*, unsigned int) + 91
6 swift 0x0000000103830e31 swift::Lowering::SILGenModule::emitGlobalInitialization(swift::PatternBindingDecl*, unsigned int) + 2417
7 swift 0x000000010379d370 swift::ASTVisitor<swift::Lowering::SILGenModule, void, void, void, void, void, void>::visit(swift::Decl*) + 752
8 swift 0x000000010379c316 swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*) + 1238
9 swift 0x000000010379dd76 swift::SILModule::constructSIL(swift::ModuleDecl*, swift::SILOptions&, swift::FileUnit*) + 1238
10 swift 0x000000010339f974 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 28340
11 swift 0x00000001033952b4 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 6820
12 swift 0x00000001033227b3 main + 1219
13 libdyld.dylib 0x00007fff66cac405 start + 1
14 libdyld.dylib 0x0000000000000064 start + 2570402912
Edit: Looks like there are a couple of open related-ish bugs over at the Swift bug tracker https://bugs.swift.org/browse/SR-11888?jql=text%20~%20%22functionbuilder%22. The TLDR is that this may be a regression, with a fix on master
, so maybe we'll see it in the next Xcode/Swift release?
from graphiti.
Update: Looks like this is still a problem as of the January 7th master
and 5.2 nightlies.
from graphiti.
Related Issues (20)
- PartialSchema with coders HOT 1
- Federation N+1 query problem HOT 2
- Schema Introspection Failure HOT 2
- How to access the selectionSet from the Resolver ? HOT 3
- Renaming ConnectionTypes isn't working HOT 6
- Feature: Create better support for custom connections HOT 2
- PartialSchema error with argument in type field HOT 5
- Federation reference resolver with filtering
- Potential Bug with Input types HOT 2
- 'Identifiable' is only available in iOS 13.0 or newer HOT 2
- Decimal and NSDecimal HOT 3
- Bearer and basic authorization HOT 1
- Would it make sense to make NoArguments init public? HOT 2
- Is there a way to override the name of a Value in an Enum? HOT 2
- Coders with Date as Double in schema
- Improvements to SchemaBuilder and allowing sub schemas HOT 13
- Some types don't resolve anymore after updating to 1.2.1 HOT 8
- PartialSchema Type extensions HOT 9
- How do you include a ConnectionType in a PartialSchema? HOT 2
- The order of PartialSchemas matters for Interfaces, Unions, and ConnectionTypes - is this intentional? HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphiti.