-
Notifications
You must be signed in to change notification settings - Fork 94
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
SDL output from rover graph output
has inconsistent leading whitespace on multiline comments
#884
Comments
Some additional context - this whitespace inconsistency may not seem like a huge deal, but it's generating a bunch of unexpected schema diffs when checking a schema that was produced via |
Ahhh yea that definitely seems like a bug @chrskrchr ! Thanks for the report. This time around it will take me a bit longer to get to it. I'll aim to get you a fix early next week. |
Thanks for the heads up! Is there a way for us to consume the fix prior to the official 0.4.0 release? (short of downloading and compiling our own binary) |
@lrlna - do you have an ETA on a fix for this issue? |
@chrskrchr so sorry for the delay on this! I had a family emergency and was not able to attend to any of the github issues for a few weeks. We've now merged the fix into To answer your earlier question, the easiest way to run rover as it is currently on |
Thanks for the update! Hope that all is well on the home front. I pulled the |
@lrlna - do you have an ETA for the https://github.com/apollographql/rover/milestone/24?closed=1 I tried cross-compiling the Rover CLI for the architecture where we plan to run it ( |
@EverlastingBugstopper would be the best person to ask about release dates. Avery, is there a release planned some time soon? |
Planning on cutting a release this week 😊 |
There is a |
The |
Description
When using
rover graph introspect
to introspect and print the schema SDL to stdout, multiline comments on nested fields are printed with inconsistent leading whitespace. The first line of the multiline comment has two leading spaces as expected, but the subsequent lines are printed with no leading whitespace. e.g.,:Steps to reproduce
npm install
node printSchema.js
to print the schema using thegraphql
package'sprintSchema()
function, which will produce output like the following (which includes the expected leading whitespace on multiline comments):node server.js
to start the localApolloServer
npx -p @apollo/[email protected] rover graph introspect http://localhost:4000
to print the schema using the Rover CLI, which will produce output like the following:Note the inconsistent leading whitespace in the multiline comment on the
Book.dummy
field.Expected result
All lines in a multiline comment should be printed with the same amount of leading whitespace.
Actual result
The first line of a multiline comment is printed with the expected whitespace, but all subsequent lines are printed with no leading whitespace.
Environment
The text was updated successfully, but these errors were encountered: