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

Getting 'NoMethodError' when try to run on our project #43

Closed
Mark2xv opened this issue Aug 19, 2014 · 8 comments
Closed

Getting 'NoMethodError' when try to run on our project #43

Mark2xv opened this issue Aug 19, 2014 · 8 comments
Labels

Comments

@Mark2xv
Copy link

Mark2xv commented Aug 19, 2014

I'm getting this error:

/Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.52/lib/synx/abstract_object.rb:18:in `work_pathname': undefined method `[]' for nil:NilClass (NoMethodError)
    from /Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.52/lib/synx/pbx_variant_group.rb:18:in `sync'
    from /Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.52/lib/synx/project.rb:20:in `block in sync'
    from /Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.52/lib/synx/project.rb:20:in `each'
    from /Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.52/lib/synx/project.rb:20:in `sync'
    from /Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.52/bin/synx:16:in `execute'
    from /Users/mark/.rvm/gems/ruby-2.1.2@global/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
    from /Users/mark/.rvm/gems/ruby-2.1.2@global/gems/clamp-0.6.3/lib/clamp/command.rb:125:in `run'
    from /Users/mark/.rvm/gems/ruby-2.1.2@global/gems/clamp-0.6.3/lib/clamp.rb:6:in `Clamp'
    from /Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.52/bin/synx:6:in `<top (required)>'
    from /Users/mark/.rvm/gems/ruby-2.1.2/bin/synx:23:in `load'
    from /Users/mark/.rvm/gems/ruby-2.1.2/bin/synx:23:in `<main>'
    from /Users/mark/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
    from /Users/mark/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'

I get this whenever I try to run synx on our project.

The end result is not good either - it seems that it simply removes all the files it would try to move and leaves it at that.

I am completely unfamiliar with ruby or what not, so if I'm doing something wrong with my setup please tell me. :)

@marklarr marklarr mentioned this issue Oct 1, 2014
@marklarr marklarr added the bug label Jan 1, 2015
@marklarr
Copy link
Member

marklarr commented Jan 2, 2015

This should be fixed now that localized files are correctly handled, thanks to #63. Can you try again and let me know?

@marklarr
Copy link
Member

marklarr commented Jan 6, 2015

I'm going to say it's safe to assume that this is fixed now.

@marklarr marklarr closed this as completed Jan 6, 2015
@Mark2xv
Copy link
Author

Mark2xv commented Jan 13, 2015

I'm afraid this has not been fixed yet.
Not much has changed in our projects' file structure in the meanwhile.

/Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.54/lib/synx/xcodeproj_ext/project/object/abstract_object.rb:16:in `work_pathname': undefined method `[]' for nil:NilClass (NoMethodError)
    from /Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.54/lib/synx/xcodeproj_ext/project/object/pbx_variant_group.rb:16:in `sync'
    from /Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.54/lib/synx/project.rb:20:in `block in sync'
    from /Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.54/lib/synx/project.rb:20:in `each'
    from /Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.54/lib/synx/project.rb:20:in `sync'
    from /Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.54/bin/synx:17:in `execute'
    from /Users/mark/.rvm/gems/ruby-2.1.2@global/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
    from /Users/mark/.rvm/gems/ruby-2.1.2@global/gems/clamp-0.6.3/lib/clamp/command.rb:125:in `run'
    from /Users/mark/.rvm/gems/ruby-2.1.2@global/gems/clamp-0.6.3/lib/clamp.rb:6:in `Clamp'
    from /Users/mark/.rvm/gems/ruby-2.1.2/gems/synx-0.0.54/bin/synx:6:in `<top (required)>'
    from /Users/mark/.rvm/gems/ruby-2.1.2/bin/synx:23:in `load'
    from /Users/mark/.rvm/gems/ruby-2.1.2/bin/synx:23:in `<main>'
    from /Users/mark/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
    from /Users/mark/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'

Could you reopen this issue? The error message and pretty much all surrounding circumstances seem to be same, except the version of your tool of course.

@marklarr
Copy link
Member

You need to update synx -- you're still on 0.0.54, and the new version is 0.0.60. The pbx_variant_group.rb file in your stack trace doesn't exist anymore.

@Mark2xv
Copy link
Author

Mark2xv commented Jan 14, 2015

Eh.. I might be missing something then.
The current master release is 0.0.54, the gem version badge linked in README.md states the same thing.
There is a tagged version 0.0.6, do you mean that?

Also, installing it via 'gem install synx' installs 0.0.54 again.

@marklarr
Copy link
Member

Ah, it looks like I failed to push the new gem to RubyGems. I'll push it tomorrow when I get to my computer; in the mean time you can tell rubygems to install from git

@Mark2xv
Copy link
Author

Mark2xv commented Jan 14, 2015

Thanks, I got it working.. somewhat. It completely destroys my repo.
But I'll open a new issue for this.

@marklarr
Copy link
Member

@Mark2xv RubyGems was in a weird state apparently where gem push seems to think that I've already pushed 0.0.6 to RubyGems

$ gem push synx-0.0.6.gem
Pushing gem to https://rubygems.org...
Repushing of gem versions is not allowed.
Please use `gem yank` to remove bad gem releases.

but RubyGems site doesn't show that version ever being pushed. So, I cut a new version 0.0.61 and pushed that to RubyGems. Everything should be good now.

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