我当前的ExtJs应用程序是使用6.2.1版本构建的。
我安装了新的Sencha Cmd 6.5 还有ExtJS 6.5框架,在这个目录中:" D:\ TOOLS \ Sencha \ ext-6.5.0"。
但是当我启动升级命令时:
sencha app upgrade -ext -path "D:\TOOLS\Sencha\ext-6.5.0"
首先,我发出以下警告:
[WRN]禁用框架:当前版本6.5.0.775与所需版本6.2.1.167不兼容
然后构建因此错误而失败
com.sencha.exceptions.ExNotFound:必需属性文件D:\ AllAtrium \ trunk \ Web \ src \ trunk \ FrontExtJs.sencha \ app \ $' {' framework.name'} ' .properties不存在
然而,这个缺失的变量被声明到文件" MyApp \ ext \ cmd \ sencha.cfg"。
如何解决这个问题?
还有另一种方法可以将应用从v6.2迁移到v6.5吗?
完整日志:
Sencha Cmd v6.5.0.180
[WRN] D:\Web\src\trunk\FrontExtJs\.sencha\app contained customized file Microloader_orig.js
[WRN] D:\Web\src\trunk\FrontExtJs\.sencha\app contained customized file sencha.cfg.bak
[WRN] Directory D:\Web\src\trunk\FrontExtJs\.sencha\app could not be removed
[INF] Loading configuration for framework directory: D:\TOOLS\Sencha\ext-6.5.0
[INF] Copying framework to D:\Web\src\trunk\FrontExtJs\ext
[INF] Upgrading to Ext JS 6.x
[INF] Upgrading to sdk at D:\TOOLS\Sencha\ext-6.5.0
[INF] Updating application and workspace from Ext JS 6.2.1.167 / Cmd 6.2.1.29
[WRN] Disabling framework : current version 6.5.0.775 is incompatible with required version 6.2.1.167
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Required property file D:\Web\src\trunk\FrontExtJs\.sencha\app\$'{'framework.name'}'.properties does not exist
[ERR]
[ERR] Total time: 0 seconds
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: com.sencha.exceptions.ExNotFound: Required property file D:\Web\src\trunk\FrontExtJs\.sencha\app\$'{'framework.name'}'.properties does not exist
[ERR]
[ERR] Total time: 1 second
[ERR] com.sencha.exceptions.BasicException: com.sencha.exceptions.ExNotFound: Required property file D:\Web\src\trunk\FrontExtJs\.sencha\app\${framework.name}.properties does not exist
[ERR]
[ERR] The application was last modified by an older version of Sencha Cmd (6.2.1.29).
[ERR] Running "sencha app upgrade" may resolve the error described above.
[ERR]
答案 0 :(得分:2)
我的回答可能来得太晚,但至少可能会对其他人有所帮助:
到目前为止,我已经升级了相当数量的应用程序(主要和未成年人,包括夜间版本),我很少能够使用Sencha Guide在没有错误的情况下升级应用程序。
我发现它更容易,更省时:
/app
除了 Application.js ,/overrides, /resources, /sass
等。)注1:升级到最新的Sencha Cmd版本(为简化起见)。
注意2:sencha upgrade
如果存在则安装较新版本但不安装较旧版本。确保您使用的是最新版本。
答案 1 :(得分:0)
我必须运行sencha app install
,这将重新填充丢失的文件。运行后,sencha app upgrade
顺利运行。运行sencha help app install
了解更多信息。