releasy icon indicating copy to clipboard operation
releasy copied to clipboard

undefined method 'split' for nil:NilClass

Open ClockVapor opened this issue 10 years ago • 1 comments

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?

ClockVapor avatar Jan 21 '15 02:01 ClockVapor

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.

tille avatar Jan 30 '15 04:01 tille