Sencha cmd returning 'Fashion build exited with code : 2' error while running 'sencha app watch' – what should I do?

huangapple go评论39阅读模式
英文:

Sencha cmd returning 'Fashion build exited with code : 2' error while running 'sencha app watch' - what should I do?

问题

Sencha cmd,extJs 7:Fashion 构建退出,退出代码:2

我对 ExtJS 还很陌生,我尝试使用 sencha cmd 在 在 Mac OS 上托管的 vagrant linux vm(M2 芯片) 中创建项目。但在执行 sencha app watch 时出现错误。

我的步骤:

  1. 完全安装 sencha cmd 和所有扩展。
    ./SenchaCmd-7.6.0.87-linux-amd64.sh -Dall=true -q
  2. 初始化项目
    sencha app init --ext@7.6.0 --classic MyApp
  3. 编译开发版本
    sencha app watch
......
[INF] 将内容写入 /opt/bip/release/development/MyApp/build/development/MyApp/app.json
/root/bin/Sencha/Cmd/7.6.0.87/bin/linux-x64/node/node: 2: 语法错误: 未终止的引用字符串
[ERR] 
[ERR] 构建失败
[ERR] com.sencha.exceptions.ExBuild: Fashion 构建退出,退出代码:2
.....
.....
[ERR] /root/bin/Sencha/Cmd/7.6.0.87/plugin.xml:378: 执行此行时发生以下错误:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/build-impl.xml:253: 执行此行时发生以下错误:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/watch-impl.xml:87: 执行此行时发生以下错误:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/build-impl.xml:292: 执行此行时发生以下错误:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/sass-impl.xml:205: 执行此行时发生以下错误:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/sass-impl.xml:240: com.sencha.exceptions.ExBuild: Fashion 构建退出,退出代码:2

我的环境:

Ubuntu 22.04.1 LTS

node:v14.19.0

npm:6.14.16

java:openjdk 版本 "11.0.19" 2023-04-18 LTS

ruby:ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [aarch64-linux-gnu]

我也尝试在本地机器上安装 macOS 版本,一切正常。错误只出现在虚拟机环境中。非常感谢!

英文:

Sencha cmd, extJs 7: Fashion build exited with code : 2

I'm new to ExtJS, I was trying to use sencha cmd to create a project in a vagrant linux vm hosted on mac os (m2 chip). But I got errors while doing sencha app watch

My steps:

  1. fully install sencha cmd + all extensions.
    ./SenchaCmd-7.6.0.87-linux-amd64.sh -Dall=true -q
  2. initial project
    sencha app init --ext@7.6.0 --classic MyApp
  3. compile development
    sencha app watch
......
[INF] Writing content to /opt/bip/release/development/MyApp/build/development/MyApp/app.json
/root/bin/Sencha/Cmd/7.6.0.87/bin/linux-x64/node/node: 2: Syntax error: Unterminated quoted string
[ERR] 
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Fashion build exited with code : 2
.....
.....
[ERR] /root/bin/Sencha/Cmd/7.6.0.87/plugin.xml:378: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/build-impl.xml:253: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/watch-impl.xml:87: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/build-impl.xml:292: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/sass-impl.xml:205: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/sass-impl.xml:240: com.sencha.exceptions.ExBuild: Fashion build exited with code : 2

My env:

Ubuntu 22.04.1 LTS

node : v14.19.0

npm : 6.14.16

java :openjdk version "11.0.19" 2023-04-18 LTS

ruby: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [aarch64-linux-gnu]

I've also tried installed a macOS version on my local machine and everything's working fine. The error only appeared in the vm env. Thanks a lot in advance!

答案1

得分: 1

替换 Sencha cmd 中捆绑的节点,用在我的虚拟机中安装的节点解决了我的问题:

cp /usr/bin/node /root/bin/Sencha/Cmd/7.6.0.87/bin/linux-x64/node
英文:

Replace the node that the Sencha cmd bundled with the node that installed in my vm solves my issue:

cp /usr/bin/node /root/bin/Sencha/Cmd/7.6.0.87/bin/linux-x64/node

答案2

得分: 0

Yanguo!

你可以运行sencha app build命令,这样它可以显示更多关于错误的详细信息;

如果错误仍然存在,你可能需要再次仔细检查代码,因为我看到你的App.json文件有引号字符串错误。

它说:语法错误:未终止的引号字符串。如果你打开文件,可能会在你的编辑器或集成开发环境中显示错误。

希望对你有所帮助!

英文:

Yanguo!

You can run sencha app build too, so it can show you more details about the error;

If the error persists you may have to make a double check in the code, this error. As i'm seeing. Your App.json file is with a quoted string error.

It says: Syntax error: Unterminated quoted string. If you open the file it may show you an error in your editor or IDE.

Hope it helps!

huangapple
  • 本文由 发表于 2023年6月1日 18:03:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76380776.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定