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 'split' for nil:NilClass #57

Open
ClockVapor opened this issue Jan 21, 2015 · 1 comment
Open

undefined method 'split' for nil:NilClass #57

ClockVapor opened this issue Jan 21, 2015 · 1 comment

Comments

@ClockVapor
Copy link

Every time I try bundle exec rake build windows:wrapped on Linux with Releasy 0.2.2 and Ruby 1.9.3, I always get this error (even on a barebones project with only one Ruby file):

undefined method `split' for nil:NilClass
/home/nick/.rvm/gems/ruby-1.9.3-p551/gems/releasy-0.2.2/lib/releasy/builders/windows_wrapped.rb:142:in `block in install_binary_gems'
/home/nick/.rvm/gems/ruby-1.9.3-p551/gems/releasy-0.2.2/lib/releasy/builders/windows_wrapped.rb:136:in `each'
/home/nick/.rvm/gems/ruby-1.9.3-p551/gems/releasy-0.2.2/lib/releasy/builders/windows_wrapped.rb:136:in `install_binary_gems'
/home/nick/.rvm/gems/ruby-1.9.3-p551/gems/releasy-0.2.2/lib/releasy/builders/windows_wrapped.rb:87:in `build'
/home/nick/.rvm/gems/ruby-1.9.3-p551/gems/releasy-0.2.2/lib/releasy/builders/windows_wrapped.rb:64:in `block in generate_tasks'

I did some puts debugging and found that this error occurs when it's trying to install the binary gem for Bundler. Strangely, if I run the command again, it passes with no errors. This cycle repeats consistently whenever I remove the pkg folder. Even though it passes on the second run, running the Windows executable still fails -- it claims it can't load Gosu (which I'm using in my project).

Here is my Rakefile.

require 'bundler/setup'
require 'releasy'

Releasy::Project.new do
  name 'blah'
  version '0.0.0'

  executable 'src/entry.rb'
  files ['src/**/*.rb', 'images/**/*.png', 'sounds/**/*.ogg']
  exposed_files ['README']

  add_build :windows_wrapped do
    wrapper "wrappers/ruby-1.9.3-p551-i386-mingw32.7z"
    exclude_tcl_tk
    add_package :zip
  end
end  

Any ideas?

@tille
Copy link

tille commented Jan 30, 2015

same here, I tried with a couple of 7z wrappers with not success.
my Rakefile looks just like that: https://github.com/tille/ruby-snake/blob/master/Rakefile
It's my error trace: http://pastie.org/9873049

@ClockVapor can you please go ahead and set a bug label for this Issue.

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

2 participants