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

Install/Use CLI #8

Closed
arquio opened this issue Nov 9, 2017 · 5 comments
Closed

Install/Use CLI #8

arquio opened this issue Nov 9, 2017 · 5 comments

Comments

@arquio
Copy link

arquio commented Nov 9, 2017

Hello @ xuorig,

I try to use CLI but I am very new to RoR and I am very lost in what I can be doing wrong

My Log.
/home/dcalle/.gem/ruby/2.4.0/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:34:in block in print_changes': undefined method breaking' for #<GraphQL::SchemaComparator::Changes::FieldRemoved:0x005638d348d4d0> (NoMethodError) Did you mean? breaking? from /home/dcalle/.gem/ruby/2.4.0/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:33:in each'
from /home/dcalle/.gem/ruby/2.4.0/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:33:in print_changes' from /home/dcalle/.gem/ruby/2.4.0/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:23:in compare'
from /home/dcalle/.gem/ruby/2.4.0/gems/thor-0.20.0/lib/thor/command.rb:27:in run' from /home/dcalle/.gem/ruby/2.4.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in invoke_command'
from /home/dcalle/.gem/ruby/2.4.0/gems/thor-0.20.0/lib/thor.rb:387:in dispatch' from /home/dcalle/.gem/ruby/2.4.0/gems/thor-0.20.0/lib/thor/base.rb:466:in start'
from /home/dcalle/.gem/ruby/2.4.0/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:53:in <top (required)>' from /home/dcalle/bin/graphql-schema:23:in load'
from /home/dcalle/bin/graphql-schema:23:in <main>'

Can you guide me?

Thanks a lot!!!

@rmosolgo
Copy link
Contributor

rmosolgo commented Nov 9, 2017

Can you please share the command you ran which gave you this error?

@arquio
Copy link
Author

arquio commented Nov 9, 2017

schemaB.graphql.txt
schemaA.graphql.txt

$ graphql-schema compare schemaA.graphql schemaB.graphql

Output:
🤖  Checking for changes...
🎉  Done! Result:

Detected the following changes between schemas:

/home/dcalle/.gem/ruby/2.4.0/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:34:in `block in print_changes': undefined method `breaking' for #<GraphQL::SchemaComparator::Changes::FieldRemoved:0x0055dcfdf09ee0> (NoMethodError)
Did you mean?  breaking?
	from /home/dcalle/.gem/ruby/2.4.0/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:33:in `each'
	from /home/dcalle/.gem/ruby/2.4.0/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:33:in `print_changes'
	from /home/dcalle/.gem/ruby/2.4.0/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:23:in `compare'
	from /home/dcalle/.gem/ruby/2.4.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
	from /home/dcalle/.gem/ruby/2.4.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
	from /home/dcalle/.gem/ruby/2.4.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
	from /home/dcalle/.gem/ruby/2.4.0/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
	from /home/dcalle/.gem/ruby/2.4.0/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:53:in `<top (required)>'
	from /usr/local/bin/graphql-schema:23:in `load'
	from /usr/local/bin/graphql-schema:23:in `<main>'

I installed it in a clean heroku container with same result:

~ $ gem install graphql-schema_comparator
Fetching: graphql-1.7.5.gem (100%)
Successfully installed graphql-1.7.5
Fetching: thor-0.20.0.gem (100%)
Successfully installed thor-0.20.0
Fetching: graphql-schema_comparator-0.3.0.gem (100%)
Successfully installed graphql-schema_comparator-0.3.0
Parsing documentation for graphql-1.7.5
Installing ri documentation for graphql-1.7.5
Parsing documentation for thor-0.20.0
Installing ri documentation for thor-0.20.0
Parsing documentation for graphql-schema_comparator-0.3.0
Installing ri documentation for graphql-schema_comparator-0.3.0
Done installing documentation for graphql, thor, graphql-schema_comparator after 7 seconds
3 gems installed
Detected the following changes between schemas:

/tmp/gemtest/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:34:in `block in print_changes': undefined method `breaking' for #<GraphQL::SchemaComparator::Changes::FieldRemoved:0x0000000155ca70> (NoMethodError)
Did you mean?  breaking?
        from /tmp/gemtest/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:33:in `each'
        from /tmp/gemtest/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:33:in `print_changes'
        from /tmp/gemtest/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:23:in `compare'
        from /tmp/gemtest/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
        from /tmp/gemtest/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
        from /tmp/gemtest/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
        from /tmp/gemtest/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
        from /tmp/gemtest/gems/graphql-schema_comparator-0.3.0/bin/graphql-schema:53:in `<top (required)>'
        from /tmp/gemtest/bin/graphql-schema:23:in `load'
        from /tmp/gemtest/bin/graphql-schema:23:in `<main>'

@arquio arquio changed the title Use CLI Install/Use CLI Nov 9, 2017
@xuorig
Copy link
Owner

xuorig commented Nov 13, 2017

Thanks @arquio will fix this asap 👍

@xuorig
Copy link
Owner

xuorig commented Nov 13, 2017

Fixed in 0.3.1 https://github.com/xuorig/graphql-schema_comparator/releases/tag/v0.3.1

@xuorig xuorig closed this as completed Nov 13, 2017
@arquio
Copy link
Author

arquio commented Nov 14, 2017

Perfect for this example

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

3 participants