Sencha Cmd build - 创建后台进程失败

vad*_*hen 13 extjs sencha-cmd extjs5

我正在尝试使用Cmd v5.0.0.160构建extjs5应用程序.

我在我的PATH var上安装了ruby2.0和sencha cmd.

以下是运行时出现的错误sencha app build:

...
[INF] Capturing theme image
[ERR] 
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: Failed creating background process
[ERR]   at com.sencha.command.plugin.PluginManager.executeRe
[ERR] verseFirst(PluginManager.java:134)
[ERR] 
[ERR] Total time: 9 seconds
[ERR] The following error occurred while executing this line:
/local/dev/PROJECTS2/loc-ext/loc-ext/.sencha/app/build-impl.xml:326: The following error occurred while executing this line:
/local/dev/PROJECTS2/loc-ext/loc-ext/.sencha/app/slice-impl.xml:239: The following error occurred while executing this line:
/local/dev/PROJECTS2/loc-ext/loc-ext/.sencha/app/slice-impl.xml:240: The following error occurred while executing this line:
/local/dev/PROJECTS2/loc-ext/loc-ext/.sencha/app/slice-impl.xml:111: com.sencha.exceptions.ExProcess: Failed creating background process
Run Code Online (Sandbox Code Playgroud)

应用程序在开发模式下工作正常(sencha app watch).

因为它看起来像是关于主题,所以我不使用自定义主题,而是使用ext-theme-neptune.

有没有人知道它是什么?我会感激任何想法!

解:

调试模式显示问题出在缺少目录中Cmd/5.0.0.160/bin/linux-x64.然而,有Cmd/5.0.0.160/bin/linuxdir,因此软链接linuxlinux-x64解决问题.

小智 21

与EXT5.0 + EXT CMD Vers相同的问题.5.1.2.52

(导致EXT CMD无法启动RUBY)

它挂起错误:

[ERR] com.sencha.exceptions.ExProcess: Failed creating background process
Run Code Online (Sandbox Code Playgroud)

我在Windows上的解决方案(这里是Win7,64位):

1)安装Ruby(在我的案例1.9.3中)

2)将系统设置中的%PATH%设置为Ruby的EXE.(在我的例子中是c:\ ruby​​193\bin)

3)重启CMD窗口

4)再试一次

这解决了我的问题.


Rob*_*ins 14

这是Sencha CMD 5中一个非常烦人的错误 - 他们吞下了他们发布的任何进程的输出.

或者,更准确地说,它们将输出路由到调试日志.因此,如果您打开调试日志,您可以看到发生了什么.尝试sencha -d app build- 只需准备好浏览大量输出.


小智 8

Sencha cmd需要ruby,这可能是为什么它无法创建某种(ruby)背景构建器的问题.