1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    175
    Vote Rating
    9
    huberte will become famous soon enough

      0  

    Default Solved :NoMethodError on line ["23"] of C: undefined method `empty?' for nil:NilClass

    Solved :NoMethodError on line ["23"] of C: undefined method `empty?' for nil:NilClass


    Sencha Cmd version(s) tested:
    • Sencha Cmd 3.1.0.256
    Operating System:
    • Win7
    Framework used:
    • Sencha Touch 2.1.1
    Description:
    • Get error with "sencha app build". Just get the latest ruby and compass on win 7.
    Steps to reproduce the problem:

    Code:
    sencha -d app build


    Code:
    (...)
    [INF] -before-sass:
    [INF]
    [INF] -sass:
    Usage: ruby [switches] [--] [programfile] [arguments]
      -0[octal]       specify record separator (\0, if no argument)
      -a              autosplit mode with -n or -p (splits $_ into $F)
      -c              check syntax only
      -Cdirectory     cd to directory before executing your script
      -d              set debugging flags (set $DEBUG to true)
      -e 'command'    one line of script. Several -e's allowed. Omit [programfile]
      -Eex[:in]       specify the default external and internal character encodings
      -Fpattern       split() pattern for autosplit (-a)
      -i[extension]   edit ARGV files in place (make backup if extension supplied)
      -Idirectory     specify $LOAD_PATH directory (may be used more than once)
      -l              enable line ending processing
      -n              assume 'while gets(); ... end' loop around your script
      -p              assume loop like -n but print line also like sed
      -rlibrary       require the library before executing your script
      -s              enable some switch parsing for switches after script name
      -S              look for the script using PATH environment variable
      -T[level=1]     turn on tainting checks
      -v              print version number, then turn on verbose mode
      -w              turn warnings on for your script
      -W[level=2]     set warning level; 0=silence, 1=medium, 2=verbose
      -x[directory]   strip off text before #!ruby line and perhaps cd to directory
      -h              show this message, --help for more info
    [DBG] exit code was : 0
    [DBG] exit code was : 0
    [DBG] setting GEM_HOME to C:\apps\Sencha\Sencha\Cmd\3.1.0.256\extensions\sencha-
    compass\gems
    [INF] executing compass using system installed ruby runtime
    [DBG] executing compass : ruby C:\apps\Sencha\Sencha\Cmd\3.1.0.256\extensions\se
    ncha-compass\gems\bin\compass compile --force --boring --trace
    [C:/apps/Sencha/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/specificatio
    ns/chunky_png-1.2.7.gemspec] isn't a Gem::Specification (NilClass instead).
    [C:/apps/Sencha/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/specificatio
    ns/sass-3.1.7.gemspec] isn't a Gem::Specification (NilClass instead).
    C:/apps/Ruby/Ruby200-x64/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:296:in
    `to_specs': Could not find 'sass' (~> 3.1) among 10 total gem(s) (Gem::LoadError
    )
            from C:/apps/Ruby/Ruby200-x64/lib/ruby/site_ruby/2.0.0/rubygems/specific
    ation.rb:1196:in `block in activate_dependencies'
            from C:/apps/Ruby/Ruby200-x64/lib/ruby/site_ruby/2.0.0/rubygems/specific
    ation.rb:1185:in `each'
            from C:/apps/Ruby/Ruby200-x64/lib/ruby/site_ruby/2.0.0/rubygems/specific
    ation.rb:1185:in `activate_dependencies'
            from C:/apps/Ruby/Ruby200-x64/lib/ruby/site_ruby/2.0.0/rubygems/specific
    ation.rb:1167:in `activate'
            from C:/apps/Ruby/Ruby200-x64/lib/ruby/site_ruby/2.0.0/rubygems/core_ext
    /kernel_gem.rb:48:in `gem'
            from C:/apps/Sencha/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/
    bin/compass:22:in `<main>'
    [DBG] exit code was : 1
    [DBG] exit code was : 1
    The result that was expected:
    • compiling like always
    The result that occurs instead:
    • error

  2. #2
    Sencha User
    Join Date
    Jul 2012
    Posts
    175
    Vote Rating
    9
    huberte will become famous soon enough

      0  

    Default


    Uninstaled Ruby and sencha.

    INstalled Sencha, then Ruby, error changed :

    Code:
    [INF] -sass:Usage: ruby [switches] [--] [programfile] [arguments]
      -0[octal]       specify record separator (\0, if no argument)
      -a              autosplit mode with -n or -p (splits $_ into $F)
      -c              check syntax only
      -Cdirectory     cd to directory before executing your script
      -d              set debugging flags (set $DEBUG to true)
      -e 'command'    one line of script. Several -e's allowed. Omit [programfile]
      -Eex[:in]       specify the default external and internal character encodings
      -Fpattern       split() pattern for autosplit (-a)
      -i[extension]   edit ARGV files in place (make backup if extension supplied)
      -Idirectory     specify $LOAD_PATH directory (may be used more than once)
      -l              enable line ending processing
      -n              assume 'while gets(); ... end' loop around your script
      -p              assume loop like -n but print line also like sed
      -rlibrary       require the library before executing your script
      -s              enable some switch parsing for switches after script name
      -S              look for the script using PATH environment variable
      -T[level=1]     turn on tainting checks
      -v              print version number, then turn on verbose mode
      -w              turn warnings on for your script
      -W[level=2]     set warning level; 0=silence, 1=medium, 2=verbose
      -x[directory]   strip off text before #!ruby line and perhaps cd to directory
      -h              show this message, --help for more info
    [DBG] exit code was : 0
    [DBG] exit code was : 0
    [DBG] setting GEM_HOME to C:\apps\Sencha\Cmd\3.1.0.256\extensions\sencha-compass\gems
    [INF] executing compass using system installed ruby runtime
    [DBG] executing compass : ruby C:\apps\Sencha\Cmd\3.1.0.256\extensions\sencha-compass\gems\bin\compass compile --force --boring --trace
    NoMethodError on line ["23"] of C: undefined method `empty?' for nil:NilClass
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/engine.rb:293:in `_render'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/engine.rb:240:in `render'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:140:in `block (2 levels) in compile'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:126:in `timed'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:139:in `block in compile'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/logger.rb:45:in `red'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:138:in `compile'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:118:in `compile_if_required'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:103:in `block (2 levels) in run'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:101:in `each'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:101:in `block in run'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:126:in `timed'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:100:in `run'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/commands/update_project.rb:45:in `perform'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/commands/base.rb:18:in `execute'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/commands/project_base.rb:19:in `execute'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:43:in `perform!'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:in `run!'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/bin/compass:30:in `block in <top (required)>'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/bin/compass:44:in `call'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/bin/compass:44:in `<top (required)>'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/bin/compass:23:in `load'
      C:/apps/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/bin/compass:23:in `<main>'
    [DBG] exit code was : 1
    [DBG] exit code was : 1
    [ERR]
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExProcess: compass process exited with non-zero code : 1
    [ERR]   at com.sencha.command.compass.BaseRubyCommands.runRubyCommand(BaseRubyCommands.java:119)
    [ERR]   at com.sencha.command.compass.CompassCommands$CompileCommand.execute(CompassCommands.java:117)
    [ERR]   at com.sencha.command.compass.ant.CompassTask.doExecute(CompassTask.java:98)
    [ERR]   at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]   at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    [ERR]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    175
    Vote Rating
    9
    huberte will become famous soon enough

      0  

    Default


    Why don't you update your sticky post to the latest cmd ?????

    http://www.sencha.com/forum/announcement.php?f=90&a=36



    Error seems the same (with sencha touch 2.2. RC and Sencha CMD 3.1.1.270) and a fresh new generated app....

    Code:
    [DBG] exit code was : 0
    [DBG] exit code was : 0
    [DBG] setting GEM_HOME to C:\apps\Sencha\Cmd\3.1.1.270\extensions\sencha-compass\gems
    [INF] executing compass using system installed ruby runtime
    [DBG] executing compass : ruby C:\apps\Sencha\Cmd\3.1.1.270\extensions\sencha-compass\gems\bin\compass compile --force --boring --trace
    NoMethodError on line ["23"] of C: undefined method `empty?' for nil:NilClass
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/engine.rb:293:in `_render'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/engine.rb:240:in `render'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:140:in `block (2 levels) in compile
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:126:in `timed'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:139:in `block in compile'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/logger.rb:45:in `red'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:138:in `compile'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:118:in `compile_if_required'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:103:in `block (2 levels) in run'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:101:in `each'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:101:in `block in run'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:126:in `timed'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:100:in `run'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/commands/update_project.rb:45:in `perform'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/commands/base.rb:18:in `execute'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/commands/project_base.rb:19:in `execute'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:43:in `perform!'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:in `run!'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/bin/compass:30:in `block in <top (required)>'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/bin/compass:44:in `call'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/gems/compass-0.12.2/bin/compass:44:in `<top (required)>'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/bin/compass:23:in `load'
      C:/apps/Sencha/Cmd/3.1.1.270/extensions/sencha-compass/gems/bin/compass:23:in `<main>'
    [DBG] exit code was : 1
    [DBG] exit code was : 1
    [ERR]
    [ERR] BUILD FAILED

  4. #4
    Sencha User
    Join Date
    Jul 2012
    Posts
    175
    Vote Rating
    9
    huberte will become famous soon enough

      0  

    Default


    Thanks to http://www.sencha.com/forum/showthread.php?259904

    y
    ou have to rollback to ruby 1.9.3p392

    But please update your sticky for cmd !!!!

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar