2013-05-01 45 views
0

我按照http://docs.sencha.com/extjs/4.2.0/#!/guide/theming 中的步骤操作,但在我想通过sencha app build命令构建应用程序时出现以下错误。自定义主题生成中的一个问题

(注意:我的操作系统是赢得7 x64和我ruby​​installer-2.0.0-P0-64安装程序安装的几度夕阳红然后SenchaCmd-3.1.1.274-windows.exe后安装程序安装煎茶命令我还通过定期两者的命令提示符窗口中运行指令作为与“以几度夕阳红启动命令提示符”,但错误是一样的。)

[INF] executing compass using system installed ruby runtime 
    NoMethodError on line ["23"] of D: undefined method `empty?' for nil:NilClass 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/sass-3.1.7/lib/sass/engine.rb:293:in `_render' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/sass-3.1.7/lib/sass/engine.rb:240:in `render' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/compiler.rb:140:in `block (2 levels) in compile' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/compiler.rb:126:in `timed' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/compiler.rb:139:in `block in compile' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/logger.rb:45:in `red' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/compiler.rb:138:in `compile' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/compiler.rb:118:in `compile_if_required' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/compiler.rb:103:in `block (2 levels) in run' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/compiler.rb:101:in `each' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/compiler.rb:101:in `block in run' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/compiler.rb:126:in `timed' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/compiler.rb:100:in `run' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/commands/update_project.rb:45:in `perform' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/commands/base.rb:18:in `execute' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/commands/project_base.rb:19:in `execute' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:43:in `perform!' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:in `run!' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/bin/compass:30:in `block in <top (required)>' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/bin/compass:44:in `call' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/ge 
    ms/compass-0.12.2/bin/compass:44:in `<top (required)>' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/bi 
    n/compass:23:in `load' 
     D:/Program Files/sencha/Sencha/Cmd/3.1.1.274/extensions/sencha-compass/gems/bi 
    n/compass:23:in `<main>' 
    [ERR] 
    [ERR] BUILD FAILED 
    [ERR] com.sencha.exceptions.ExProcess: compass process exited with non-zero code 
    : 1 
    [ERR] 
    [ERR] Total time: 1 minute 20 seconds 
    [ERR] 
    [ERR] BUILD FAILED 
    [ERR] com.sencha.exceptions.BasicException: The following error occurred while e 
    xecuting this line: 
    [ERR] D:\temp\my-workspace\theme-demo-app\.sencha\app\build-impl.xml:248: com.se 
    ncha.exceptions.ExProcess: compass process exited with non-zero code : 1 

[ERR] 
[ERR] Total time: 1 minute 21 seconds 
[ERR] com.sencha.exceptions.BasicException: The following error occurred while e 
xecuting this line: 
D:\temp\my-workspace\theme-demo-app\.sencha\app\build-impl.xml:248: com.sencha.e 
xceptions.ExProcess: compass process exited with non-zero code : 1 

此我通过gem install sass命令安装SASS后,它安装SASS 3.2.8 (尽管Sencha Command称自己安装SASS时不需要安装它: Introduction to Sencha Cmd)...但同样的错误。

我还通过gem install compass安装指南针(版本:0.12.2),并再次执行Sencha app build命令并收到了同样的错误......

任何帮助?

回答

1

我有同样的问题。 看来extjs与ruby version 2.x不兼容我读过一些用户遇到同样的问题。

解除安装ruby 2并安装1.9.3后,它应该可以工作。

PS 当我从文档了解你不需要安装青菜和指南针,因为它已经煎茶CMD

+0

真的感谢彼得的一部分!你救了我几个小时! – 2013-05-01 12:51:04