Giter Club home page Giter Club logo

Comments (6)

MihaelIsaev avatar MihaelIsaev commented on May 21, 2024 1

@noahemmet

I'm using Xcode 13

Could you share where to download Xcode 13? 😮

from graphiti.

eX-innovation avatar eX-innovation commented on May 21, 2024 1

The most recent Xcode version is 11.3.1 and available on the AppStore.

from graphiti.

alexsteinerde avatar alexsteinerde commented on May 21, 2024 1

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.

paulofaria avatar paulofaria commented on May 21, 2024 1

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.

noahemmet avatar noahemmet commented on May 21, 2024

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.

noahemmet avatar noahemmet commented on May 21, 2024

Update: Looks like this is still a problem as of the January 7th master and 5.2 nightlies.

from graphiti.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.