[英]Sencha cmd “app watch” fails
I'm using Sencha Touch 2.3.1 Sencha Cmd v5.0.0.160 我正在使用Sencha Touch 2.3.1 Sencha Cmd v5.0.0.160
After I generated sencha application using the command: 使用命令生成sencha应用程序后:
sencha generate app -name Stam -path ../StamApp
I tried run sencha app watch using: 我尝试使用以下方法运行sencha应用程序手表:
sencha app watch
And the error I got is: 我得到的错误是:
C:\sencha\StamApp\.sencha\app\build-impl.xml:242: The following error occurred while executing this line:
C:\sencha\StamApp\.sencha\app\watch-impl.xml:60: The following error occurred while executing this line:
C:\sencha\StamApp\.sencha\app\watch-impl.xml:40: Unknown attribute [refname]
Line 40 in watch-impl.xml : watch-impl.xml中的第40 行 :
<x-run-compass-watch directory="${app.sass.dir}" refName="compass-watch"/>
Note that I installed sass and compass, and it still doesn't work. 请注意,我安装了sass和指南针,但仍然无法正常工作。
What am I missing? 我想念什么?
For people like me: 对于像我这样的人:
look at rootdir/.sencha/app/watch-impl.xml 看看rootdir / .sencha / app / watch-impl.xml
here find line with and replace : 在这里找到并替换:
<x-run-compass-watch directory="${app.sass.dir}" refName="compass-watch"/>
with 与
<x-run-compass-watch directory="${app.sass.dir}" /> <!--refName="compass-watch"-->
Start sencha app watch again and it runs. 再次启动sencha app watch,它开始运行。
This is a known bug, quoting an ExtJS Team Leader: 这是一个已知的错误,引用ExtJS团队负责人:
"Thanks all - that is the work around for this issue. We have it fixed for 5.0.1 and that is all it needed (removing "refName" from x-run-compass-watch call)" “非常感谢,这是解决此问题的方法。我们已将其修复为5.0.1,仅此而已(从x-run-compass-watch调用中删除“ refName”)
I have tested it and I get the same error. 我已经测试过了,并且得到了同样的错误。 It seems to be a bug, most likely in Sencha Cmd 5. Report it please on Sencha Forums . 这似乎是一个错误,很可能是在Sencha Cmd 5中引起的。请在Sencha论坛上进行报告。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.