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

undefined method `type' for :syncer:Symbol (NoMethodError) #39

Closed
clozach opened this issue Feb 14, 2014 · 3 comments
Closed

undefined method `type' for :syncer:Symbol (NoMethodError) #39

clozach opened this issue Feb 14, 2014 · 3 comments
Labels

Comments

@clozach
Copy link

clozach commented Feb 14, 2014

Any idea how to get past this?

~/.rvm/gems/ruby-1.9.3-p484@applauze/gems/transpec-1.9.0/lib/transpec/util.rb:88:in `block in each_forward_chained_node': undefined method `type' for :syncer:Symbol (NoMethodError)

My Gemfile has:

group :development, :test do
    gem 'rspec-rails', '~> 2.14'
    ...
end

I did:
> gem install transpec
> transpec

Here's the full backtrace, with the paths slightly shortened for readability:

Copying the project for dynamic analysis...
Running dynamic analysis with command "bundle exec rspec"...
...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/util.rb:88:in `block in each_forward_chained_node': undefined method `type' for :syncer:Symbol (NoMethodError)
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/util.rb:84:in `loop'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/util.rb:84:in `each_forward_chained_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/syntax/mixin/expect_base.rb:41:in `each'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/syntax/mixin/expect_base.rb:41:in `select'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/syntax/mixin/expect_base.rb:41:in `matcher_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/syntax/mixin/have_matcher_owner.rb:14:in `block (2 levels) in <module:HaveMatcherOwner>'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/syntax.rb:79:in `instance_exec'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/syntax.rb:79:in `block in register_request_for_dynamic_analysis'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/syntax.rb:78:in `each'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/syntax.rb:78:in `register_request_for_dynamic_analysis'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer/rewriter.rb:50:in `block (2 levels) in collect_requests'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer/rewriter.rb:47:in `each'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer/rewriter.rb:47:in `block in collect_requests'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:113:in `block in each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:99:in `block in each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:112:in `each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:114:in `block in each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:99:in `block in each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:112:in `each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:114:in `block in each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:99:in `block in each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:112:in `each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:114:in `block in each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:99:in `block in each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:112:in `each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:114:in `block in each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:99:in `block in each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:112:in `each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:114:in `block in each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:99:in `block in each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:112:in `each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:114:in `block in each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:99:in `block in each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:97:in `each_child_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:112:in `each_descendent_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/ast/node.rb:125:in `each_node'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer/rewriter.rb:46:in `collect_requests'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer/rewriter.rb:20:in `process'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/base_rewriter.rb:26:in `rewrite'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/base_rewriter.rb:10:in `rewrite_file!'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer.rb:109:in `block (2 levels) in analyze'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer.rb:107:in `each'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer.rb:107:in `block in analyze'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer.rb:126:in `in_copied_project'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer.rb:104:in `analyze'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/cli.rb:53:in `block in process'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer.rb:90:in `block in initialize'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer.rb:134:in `block (2 levels) in in_copied_project'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer.rb:133:in `chdir'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer.rb:133:in `block in in_copied_project'
  from ~/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/tmpdir.rb:83:in `mktmpdir'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer.rb:130:in `in_copied_project'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/dynamic_analyzer.rb:89:in `initialize'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/cli.rb:51:in `new'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/cli.rb:51:in `process'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/cli.rb:37:in `run'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/lib/transpec/cli.rb:19:in `run'
  from ...ruby-1.9.3-p484@myproject/gems/transpec-1.9.0/bin/transpec:7:in `<top (required)>'
  from ~/.rvm/gems/ruby-1.9.3-p484@applauze/bin/transpec:23:in `load'
  from ~/.rvm/gems/ruby-1.9.3-p484@applauze/bin/transpec:23:in `<main>'
  from ~/.rvm/gems/ruby-1.9.3-p484@applauze/bin/ruby_executable_hooks:15:in `eval'
  from ~/.rvm/gems/ruby-1.9.3-p484@applauze/bin/ruby_executable_hooks:15:in `<main>'
@yujinakayama
Copy link
Owner

Thanks for the report. I'll take a look later.

@yujinakayama
Copy link
Owner

I think the crash is fixed in the new version 1.9.1. Please try out.

@clozach
Copy link
Author

clozach commented Mar 14, 2014

Looks like it. Thanks, @yujinakayama!

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

No branches or pull requests

2 participants