0

当我使用 sencha cmd 构建我的 sencha touch 项目时,我的计算机崩溃了,现在我无法再构建它而不会出现错误。我希望有人可能有一些见解 - 我重新安装了 sencha cmd 认为它可能是一个损坏的文件,但没有运气。这是打开调试标志的构建的输出:

sencha -d app build native > dbg.txt

Sencha Cmd v4.0.0.203
[DBG] Loading configuration from E:\SkyDrive\Projects\PersonalTraining\Development\offlinemobile
[DBG] Scanning for extensions in C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions
[DBG] Loaded extension: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\cmd-cordova-packager
[DBG] Loaded extension: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\cmd-phonegap-packager
[DBG] Loaded extension: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-compass
[DBG] Loaded extension: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io
[DBG] Framework dependency detected
[DBG] Loading framework touch from E:\SkyDrive\Projects\PersonalTraining\Development\offlinemobile\touch
[DBG] Detecting framework plugin
[DBG] Resolving framework config overrides for 'touch'
[DBG] Detected framework version 2.3.0
[DBG] Detected framework override at 'C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\plugins\touch\2.3'
[DBG] using framework plugin located at 'C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\plugins\touch\2.3'
[DBG] Loaded framework from E:\SkyDrive\Projects\PersonalTraining\Development\offlinemobile\touch
[DBG] Loading CommandProviders
[DBG] Scanning extensions directory C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\cmd-cordova-packager for extensions
[DBG] Scanning extensions directory C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\cmd-phonegap-packager for extensions
[DBG] Scanning extensions directory C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-compass for extensions
[DBG] Located C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-compass\sencha-compass.jar
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-compass\sencha-compass.jar
[DBG] get value lib/slf4j-api-1.6.6.jar lib/ant-1.8.4.jar lib/ant-launcher-1.8.4.jar for manifest class path
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-compass\lib\slf4j-api-1.6.6.jar
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-compass\lib\ant-1.8.4.jar
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-compass\lib\ant-launcher-1.8.4.jar
[DBG] Add extension classpath entry 'sencha-compass' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-compass/sencha-compass.jar!/
[DBG] Add extension classpath entry 'sencha-compass' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-compass/lib/slf4j-api-1.6.6.jar!/
[DBG] Add extension classpath entry 'sencha-compass' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-compass/lib/ant-1.8.4.jar!/
[DBG] Add extension classpath entry 'sencha-compass' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-compass/lib/ant-launcher-1.8.4.jar!/
[DBG] Scanning extensions directory C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io for extensions
[DBG] Located C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io\sencha-io.jar
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io\sencha-io.jar
[DBG] get value lib/httpclient-4.2.1.jar lib/commons-logging-1.1.1.jar lib/commons-codec-1.6.jar lib/httpclient-cache-4.2.1.jar lib/httpcore-4.2.1.jar lib/httpmime-4.2.1.jar lib/slf4j-api-1.6.6.jar lib/gson-2.2.1.jar for manifest class path
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io\lib\httpclient-4.2.1.jar
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io\lib\commons-logging-1.1.1.jar
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io\lib\commons-codec-1.6.jar
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io\lib\httpclient-cache-4.2.1.jar
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io\lib\httpcore-4.2.1.jar
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io\lib\httpmime-4.2.1.jar
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io\lib\slf4j-api-1.6.6.jar
[DBG] loading manifest for jar C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io\lib\gson-2.2.1.jar
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-io/sencha-io.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-io/lib/httpclient-4.2.1.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-io/lib/commons-logging-1.1.1.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-io/lib/commons-codec-1.6.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-io/lib/httpclient-cache-4.2.1.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-io/lib/httpcore-4.2.1.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-io/lib/httpmime-4.2.1.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-io/lib/slf4j-api-1.6.6.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/Stephen/bin/Sencha/Cmd/4.0.0.203/extensions/sencha-io/lib/gson-2.2.1.jar!/
[DBG] Scanning for plugins in folder: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\cmd-cordova-packager
[DBG] Loading plugin: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\cmd-cordova-packager\cmd-cordova-packager.plugin.xml
[DBG] Resolving packages for : App
[DBG] scanning directory E:\SkyDrive\Projects\PersonalTraining\Development\offlinemobile/touch for packages
[DBG] scanning directory E:\SkyDrive\Projects\PersonalTraining\Development\offlinemobile/packages for packages
[DBG] Resolving packages for : App
[DBG] Scanning for plugins in folder: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\cmd-phonegap-packager
[DBG] Loading plugin: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\cmd-phonegap-packager\cmd-phonegap-packager.plugin.xml
[DBG] Scanning for plugins in folder: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-compass
[DBG] Scanning for plugins in folder: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io
[DBG] Scanning for plugins in folder: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\cmd-cordova-packager
[DBG] Loading plugin: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\cmd-cordova-packager\cmd-cordova-packager.plugin.xml
[DBG] Scanning for plugins in folder: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\cmd-phonegap-packager
[DBG] Loading plugin: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\cmd-phonegap-packager\cmd-phonegap-packager.plugin.xml
[DBG] Scanning for plugins in folder: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-compass
[DBG] Scanning for plugins in folder: C:\Users\Stephen\bin\Sencha\Cmd\4.0.0.203\extensions\sencha-io
[ERR] com.sencha.exceptions.BasicException
     at com.sencha.command.environment.BuildEnvironment$Failure.check(BuildEnvironment.java:754)
     at com.sencha.command.environment.BuildEnvironment.checkState(BuildEnvironment.java:329)
     at com.sencha.command.environment.BuildEnvironment.mustGetAppEnvironment(BuildEnvironment.java:558)
     at com.sencha.command.BaseSenchaCommand.mustGetAppEnvironment(BaseSenchaCommand.java:32)
     at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:116)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
     at com.sencha.cli.Command.dispatch(Command.java:42)
     at com.sencha.cli.Commands.dispatch(Commands.java:68)
     at com.sencha.cli.Commands.dispatch(Commands.java:68)
     at com.sencha.command.Sencha.dispatch(Sencha.java:81)
     at com.sencha.command.Sencha.main(Sencha.java:149)
   Caused by: null
     at com.sencha.exceptions.BasicException.wrap(BasicException.java:51)
     at com.sencha.command.environment.BuildEnvironment$Failure.<init>(BuildEnvironment.java:749)
     at com.sencha.command.environment.BuildEnvironment$3.call(BuildEnvironment.java:733)
     at com.sencha.util.Configuration.get(Configuration.java:61)
     at com.sencha.util.Configuration.each(Configuration.java:180)
     at com.sencha.util.Configuration.each(Configuration.java:223)
     at com.sencha.ant.AntScript.apply(AntScript.java:80)
     at com.sencha.command.plugin.PluginManager.loadPlugin(PluginManager.java:188)
     at com.sencha.command.plugin.PluginManager.load(PluginManager.java:138)
     at com.sencha.command.plugin.PluginManager.scan(PluginManager.java:167)
     at com.sencha.command.ant.AntCommandScanner.getCommandTargets(AntCommandScanner.java:37)
     at com.sencha.command.ant.AntExtensionScanner.getExtensionTargets(AntExtensionScanner.java:31)
     at com.sencha.command.ant.AntExtensionScanner.getExtensionTargets(AntExtensionScanner.java:20)
     at com.sencha.command.ant.AntExtensionScanner.getExtensionCommands(AntExtensionScanner.java:35)
     at com.sencha.command.Sencha.extendCommands(Sencha.java:443)
     at com.sencha.cli.Commands.extendCommands(Commands.java:103)
     at com.sencha.cli.Commands.commands(Commands.java:44)
     at com.sencha.cli.Commands.findCommand(Commands.java:83)
     at com.sencha.cli.Commands.dispatch(Commands.java:65)
     at com.sencha.command.Sencha.dispatch(Sencha.java:81)
     at com.sencha.command.Sencha.main(Sencha.java:149)
   Caused by: null
     at com.sencha.tools.pkg.HttpRepository.fixUrl(HttpRepository.java:151)
     at com.sencha.tools.pkg.HttpRepository.<init>(HttpRepository.java:36)
     at com.sencha.tools.pkg.RemoteRepository$Type$1.create(RemoteRepository.java:33)
     at com.sencha.tools.pkg.RemoteRepository.<init>(RemoteRepository.java:74)
     at com.sencha.tools.pkg.RemoteRepository.<init>(RemoteRepository.java:102)
     at com.sencha.tools.pkg.RemoteRepository.<init>(RemoteRepository.java:106)
     at com.sencha.tools.pkg.RepositoryRemoteManagerImpl$1.accept(RepositoryRemoteManagerImpl.java:28)
     at java.io.File.listFiles(Unknown Source)
     at com.sencha.tools.pkg.RepositoryRemoteManagerImpl.<init>(RepositoryRemoteManagerImpl.java:26)
     at com.sencha.tools.pkg.LocalRepository.loadConfig(LocalRepository.java:916)
     at com.sencha.tools.pkg.LocalRepository.<init>(LocalRepository.java:97)
     at com.sencha.command.environment.WorkspaceRepository.getLocalRepository(WorkspaceRepository.java:262)
     at com.sencha.command.environment.WorkspaceRepository.getCatalog(WorkspaceRepository.java:241)
     at com.sencha.command.environment.WorkspaceRepository.resolvePackageModels(WorkspaceRepository.java:117)
     at com.sencha.command.environment.WorkspaceRepository.resolvePackageEnvironments(WorkspaceRepository.java:97)
     at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackageEnvironments(AppOrPackageEnvironment.java:187)
     at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackagesNoThemes(AppOrPackageEnvironment.java:248)
     at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackageNamesNoThemes(AppOrPackageEnvironment.java:239)
     at com.sencha.command.environment.AppEnvironment$3.call(AppEnvironment.java:80)
     at com.sencha.command.environment.AppEnvironment$3.call(AppEnvironment.java:78)
     at com.sencha.command.environment.BuildEnvironment$3.call(BuildEnvironment.java:731)
     at com.sencha.util.Configuration.get(Configuration.java:61)
     at com.sencha.util.Configuration.each(Configuration.java:180)
     at com.sencha.util.Configuration.each(Configuration.java:223)
     at com.sencha.ant.AntScript.apply(AntScript.java:80)
     at com.sencha.command.plugin.PluginManager.loadPlugin(PluginManager.java:188)
     at com.sencha.command.plugin.PluginManager.load(PluginManager.java:138)
     at com.sencha.command.plugin.PluginManager.scan(PluginManager.java:167)
     at com.sencha.command.ant.AntCommandScanner.getCommandTargets(AntCommandScanner.java:37)
     at com.sencha.command.ant.AntExtensionScanner.getExtensionTargets(AntExtensionScanner.java:31)
     at com.sencha.command.ant.AntExtensionScanner.getExtensionTargets(AntExtensionScanner.java:20)
     at com.sencha.command.ant.AntExtensionScanner.getExtensionCommands(AntExtensionScanner.java:35)
     at com.sencha.command.Sencha.extendCommands(Sencha.java:443)
     at com.sencha.cli.Commands.extendCommands(Commands.java:103)
     at com.sencha.cli.Commands.commands(Commands.java:44)
     at com.sencha.cli.Commands.findCommand(Commands.java:83)
     at com.sencha.cli.Commands.dispatch(Commands.java:65)
     at com.sencha.command.Sencha.dispatch(Sencha.java:81)
     at com.sencha.command.Sencha.main(Sencha.java:149)




    Process finished with exit code 321 at 14:47:48.
    Execution time: 2,311 ms.

然后,我尝试构建一个新项目,将所有文件复制到其中,但也失败了。非常令人沮丧,我不知道如何在这一点上前进,任何帮助将不胜感激。让我知道您还需要什么其他信息。

4

2 回答 2

1

我今天遇到了完全相同的问题。电脑死机后也是如此。

什么对我有用

  • 卸载 Sencha cmd
  • 删除 Sencha Cmd 的 bin 文件夹(Windows 上默认为 %userprofile\bin)
  • 安装 Sencha Cmd

什么没用

删除我的整个项目文件夹(带有 .sencha 文件夹)并从存储库中再次检出它并没有帮助,所以它不是项目中的文件。该项目在其他机器上构建良好。

重新安装 Sencha Cmd 没有帮助。构建生产而不是测试会产生相同的错误。

于 2014-02-26T12:31:40.070 回答
0

当涉及到不常见的错误/错误时,有时 CMD 可能有点难以使用,您最终会被困在试图通过这些巨大的错误堆栈追踪根目录。根据丰富的经验,我们几乎可以打赌这个问题与 CMD 使用的其他包/程序有关(这是相当数量的)。我不确定您正在运行什么样的系统,或者您所说的“计算机崩溃”究竟是什么意思 - 但我建议您这样做:

  • 更新所有包和 CMD,尝试暂时杀死非重要服务等。
  • 尝试编译所有不同的构建类型(测试、生产等),看看它是否总是在同一个地方出错。
  • 进入 .sencha/app 文件夹,查找 .properties 文件。这些包含您的默认和环境构建规则。开始慢慢评论/禁用条目,看看您是否可以追踪导致错误的特定步骤。

当您尝试复制文件时,您究竟构建了哪些新文件与复制文件?只需尝试生成(通过 CMD 命令)一个空的启动应用程序并构建 - 看看是否可行。

于 2013-12-21T04:03:34.057 回答