-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
gql.tada turbo Maximum call stack size exceeded #347
Comments
The discord link works just fine for me 😅 from what I can tell we are stuck in one of these checker calls mind putting a console log there and printing the document in question? You can do that with |
That's odd, we see 12 logs of a document and 12 logs of a documentType 😅 Depending on where you logged that it should be a different amount, was trying to lock down where this happens. That being said, I would love a reproduction instead then as remote debugging like this won't work The only thing I can think of is you have a circular fragment |
Closing due to lack of reproduction. |
@JoviDeCroock @kitten I'm facing the same issue after updating from an older version of gql.tada. I'm not using the turbo command but it breaks very similarly on the check command. Here's a reproduction repo with the problem: https://github.com/raphael-yapla/gql-tada-vue-issue/tree/nested-fragment-composition I couldn't pinpoint exactly which package/subpackage version breaks the command but you can have a look at this lockfile commit to get a better idea: raphael-yapla/gql-tada-vue-issue@2883b60 This bug is completely breaking gql.tada for us so it would be really appreciated if you give it another look, let me know if I can do anything else to help with this! |
@raphael-yapla hi friend, thank you so much for making a reproduction! I think you should make a new issue since this one is closed so they might miss your comment |
@raphael-yapla: Cheers! I'll take a look tomorrow. Shouldn't take too long with the reproduction ❤️ @arjunyel: Nah, no worries. Notifications are ongoing without mentions/re-opening being needed, since all participants are subscribed, unless they unsubscribe. Just to narrow this down. Were you using Vue or Svelte as well by any chance? |
I'm using tada in both a Remix and Nodejs project in an NX monorepo. Thank you for taking a look friend! |
@raphael-yapla: Your issue is quite straightforward. We didn't have a log message for this, but your version of @arjunyel: If you're not using Vue, your issue is likely unrelated. I've got a WIP change to handle this without a crash (0no-co/GraphQLSP#347) but fundamentally, I don't know what's causing this issue in your case. My suspicion is that an import/definition of a fragment cannot be resolved, but without a reproduction (assuming since you're using Remix, you're not using Vue), I can't tell you for sure what's causing this. Hence, I'll tag this issue with "needs more info" again, since only one of the two reports here will be resolved by the linked PR (#353) |
@kitten Thank you so much, always very impressed by your turnaround on things like this! |
No worries! Reproductions always matter and help a lot ❤️ There's a prerelease for this change, since we've just merged this to I might hold off on releasing it for a bit until I've got some clarity on what's causing @arjunyel's issue, and which changes we'd like to make to GraphQLSP to let the CLI bail out gracefully in these cases |
@kitten yall are amazing! Ill try to work on a reproduction but it might be a while as Im in the middle of a big work project. Does your WIP PR add logging that might help figure out why its mad? If so I'm happy to try out a test version and see what it logs out |
@arjunyel: Not really. I've basically bumped the stack limit (I've just decided to open a PR to also add a small utility for that to do that by default: #355) and then looked at the issue and worked backwards a little. |
@kitten would you be open to me adding you to my private repo? Then you'll just delete your clone when you're done debugging :) I run |
If you're fine with that, I'm not opposed to that at all |
Thank you friend, added. I am using Node 20.16.0
|
Happy to say that the pre-release completely resolves my issue! Thanks again! |
@arjunyel: Took a little to track this down, but this comes down to an invalid Basically, your root Changing this to I'm thinking, for now, we might force override In the TSServer (i.e. the language server) different
I can probably add an override, since it seems in theory quite safe, but it's probably worth saying that our assumption was (which we may partially address) that the |
@kitten You are one of the best people in human history, for real. Changing NodeNext to Bundler also fixed a bunch of eslint typescript issues I was having. Thank you so much! I am sorry this ended up being user error. |
Nice! 🙌 I'm hoping we can also fix the crash in GraphQLSP, but that may take me a little longer and a couple more internal chats, so we can make sure it'll end up in a place where we don't break the LSP features while fixing the CLI bugs 😄 |
Describe the bug
I've been using the turbo command for a while now. Today I added some new queries and now I am getting a
Maximum call stack size exceeded
error and I am not even sure how to begin debugging it. I was going to ask in discord but the link https://urql.dev/discord is broken. Thank you for the help!Reproduction
No response
gql.tada version
"gql.tada": "^1.8.2",
"typescript": "5.5.4"
Validations
The text was updated successfully, but these errors were encountered: