Sencha 架构师 "Unable to open your app.json file"

Sencha Architect "Unable to open your app.json file"

我一直在尝试遵循 Sencha's basic tutorial on Sencha Architect with the Sencha Architect trial version, but I've been stuck on the step of the tutorial titled, "Save Your Project”。每次保存我的新项目时,我都在 Sencha Architect 日志中遇到这个错误:

如错误所示,Sencha Architect 没有生成“app.json”:

“CMD 输出选项卡”在保存 Sencha Architect 项目时也会产生此输出:

[INF] Initializing empty workspace at C:\Users\marco\source\sencha-sandbox\Test2
[INF] Copying framework to C:\Users\marco\source\sencha-sandbox\Test2\ext
[INF] Added framework ext to workspace.json
[ERR] The specified string cannot be converted into a valid namespace identifier
Exception in thread "Thread-13"
com.sencha.exceptions.BasicException: com.sencha.exceptions.ExState: Invalid namespace : Test2
at com.sencha.tools.server.service.tasks.DispatchTask.execute(DispatchTask.java:55)
....

如果有任何区别,我使用的是 Java JDK (17.0.1) 和 Ruby (3.0.2p107) 的最新版本。

以下是我尝试解决此问题的部分选择,none 其中有效:

我能够成功地创建和 运行 一个项目,通过 Sencha CMD 遵循 Sencha CMD 教程,所以我觉得有趣的是 Sencha CMD 生成的项目工作得很好,但是我的 Sencha Architect 试用版无法创建功能项目。

今天联系到一位Sencha的工程师,他帮我解决了这个问题:

当 Sencha Architect (v4.2.9) 与 CMD 一起安装时,与 Sencha Architect 一起自动安装的 CMD 版本 (v7.3.0.19) 导致此错误。

要解决此版本问题,在 Sencha Architect 中,我必须转到编辑 > 首选项 > 依赖项的菜单,并将默认的“自定义 Cmd 基本路径”从

更改为
C:\Users\marco\bin\Sencha\Architect\Cmd

到独立的 Sencha CMD 的安装位置

C:\Users\marco\bin\Sencha\Cmd

之后,您重新启动 Sencha Architect,Sencha Architect 将要求您更新 Sencha CMD,您可以继续进行。从那里开始,您未来的所有项目似乎都应该顺利进行。