Sproutcore sc-server undefined method ‘empty?’ (NoMethodError)

Over the weekend, I took the latest copy of Sproutcore Abbot build tools following the instructions provided in http://wiki.sproutcore.com/Abbot-Setting+Up.

Upon starting sc-server, I get the error


./sc-server:9:in `': undefined method `empty?' for nil:NilClass (NoMethodError)

I checked the ruby code inside sc-server:

#!/usr/bin/env ruby
# ===========================================================================
# Project:   Abbot - SproutCore Build Tools
# Copyright: ©2009 Apple Inc.
#            portions copyright @2006-2009 Sprout Systems, Inc.
#            and contributors
# ===========================================================================

if caller.empty?
  puts "FATAL: You need to invoke sc-server from an installed gem or through bundler. For more information, please visit http://github.com/sproutit/sproutcore-abbot/wiki/Using-Abbot-1.4-From-Source"
  exit
end

require "sproutcore"

SC::Tools.invoke 'server'

# EOF

I think Abbot 1.4 has changed so that it can only be run from a gem or bundler.

See instructions at http://github.com/sproutit/sproutcore-abbot/wiki/Using-Abbot-1.4-From-Source on how to use it.

Leave a comment

0 Comments.

Leave a Reply


[ Ctrl + Enter ]