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
Improve errors output from codegen cli #5064
Comments
@xenoterracide the error should be visible. Are you running this as a script from a package manager? (seems like Yarn 2?) can you please share a reproduction of that issue in a sandbox? thanks! |
yes, yarn2, nodelinking, I'll see what I can do sometime this week |
Got it, thanks. Can you please share a reproduction with the complete set of tooling you are using? |
@dotansimha I am also getting this error. Here is a reproduction: https://github.com/TheAschr/graphql-codegen-errors-reproduction |
As a local & temporary workaround, I added a print of the document errors, here is the kind of helpful output I got this way :
I put
I'd be happy to fill a PR if given some insight on logging strategy of codegen ! |
In fact, since version 8.2.0 (see commit), the error message are much nicely built:
@dotansimha Issue should be closed as on graphql-tools side & resolved. |
I found that |
* Display detailed errors from CLI * feat(codegen): better Listr error handling at `executeCodegen()` level * fix(codegen): remove useless comment * fix(codegen): use AggregateError to keep references of original errors * Create famous-bikes-punch.md Co-authored-by: Charly POLY <cpoly55@gmail.com> Co-authored-by: Charly POLY <1252066+charlypoly@users.noreply.github.com>
Hi all! CLI errors output has been improved in Thank you @jlmessenger for your contribution ⚡ |
this is what I'm running
but what is it failing on? what was it looking at? please improve the failure outputs to include what was being processed at the time. Here's the schema I've been working on
DEBUG is a decent solution, but I need this #4946, also I think it could be just reduced to
The text was updated successfully, but these errors were encountered: