Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The initializer is not created. #33

Open
gevorgyanvahagn opened this issue Feb 21, 2021 · 3 comments
Open

The initializer is not created. #33

gevorgyanvahagn opened this issue Feb 21, 2021 · 3 comments

Comments

@gevorgyanvahagn
Copy link

Hi! Thank you for creating this great library.
As I saw int the documentation, with this code there should be autogenerated initializer similar to this CourseCell(course: PandaEntry.Course), but the initializer is missing. Can you please help me to understand what is the problem?

struct CourseCell: View {
    
    @GraphQL(PandaEntry.Course.title)
    var title: String?
    
    var body: some View {
        Text(title ?? "unknown")
    }
}
@nerdsupremacist
Copy link
Owner

nerdsupremacist commented Feb 22, 2021

Hi! Thanks for reporting this.

My best guess so far is that this is due to either:

  • Caching problem: we're not invalidating the cache
  • Project set up problem: maybe the build phase isn't running correctly

Can you please check if clearing the cache helps? In the directory that contains your Xcode project run this command:

graphaello clearCache

Maybe that fixes it and it turns out it was a caching issue.
If it doesn't fix it, I will need more steps to reproduce this issue.
Are you able to share your Xcode project with me?

@gevorgyanvahagn
Copy link
Author

Thanks!
Yes cleaning the cache fixed the issue.

@nerdsupremacist
Copy link
Owner

I'm reopening since, the cache invalidation bug isn't resolved yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants