vendredi 28 mars 2014

Build Fails. Unhelpful BasicException thrown

Hi, I've recently worked on an update to an existing sencha app. But for some reason or another it fails to build now. I've searched around for about 10 hours and I just can't get to the bottom of it. I've tried removing regexes, removing all new ajax requests, running parses over everything to find missing semicolons and the likes. But no luck.



Below is the output during the build process. There's no point in outputting a debug, because there are thousands upon thousands of lines there.



=========================================================================

Building the site and native apps

Sencha Cmd v3.1.2.342

[INF]

[INF] init-plugin:

[INF]

[INF] cmd-root-plugin.init-properties:

[INF]

[INF] init-properties:

[INF]

[INF] init-sencha-command:

[INF]

[INF] init:

[INF]

[INF] app-build-impl:

[INF]

[INF] -before-init-local:

[INF]

[INF] -init-local:

[INF]

[INF] -after-init-local:

[INF]

[INF] init-local:

[INF]

[INF] find-cmd:

[INF]

[INF] -before-init:

[INF]

[INF] -init:

[INF] Initializing Sencha Cmd ant environment

[INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml

[INF] [x-load-properties] Loading optional properties file /Library/WebServer/Documents/LeapfrogMobile3/build/.sencha/app/production.properties

[INF] [x-load-properties] Loading required properties file /Library/WebServer/Documents/LeapfrogMobile3/build/.sencha/app/build.properties

[INF]

[INF] -after-init:

[INF]

[INF] -before-init-default:

[INF]

[INF] -init-default:

[INF]

[INF] -after-init-default:

[INF]

[INF] init:

[INF]

[INF] -before-build:

[INF]

[INF] sass:

[INF]

[INF] page:

[INF]

[INF] -before-page:

[INF]

[INF] -page:

[INF] building application

[INF] Deploying your application to /Library/WebServer/Documents/LeapfrogMobile3/build/../envs/production

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/js/jquery-1.7.1.js to /Library/WebServer/Documents/LeapfrogMobile3/build/../envs/production/resources/js/jquery-1.7.1.js

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/js/jquery.cookie.js to /Library/WebServer/Documents/LeapfrogMobile3/build/../envs/production/resources/js/jquery.cookie.js

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/js/jquery.dateformat.js to /Library/WebServer/Documents/LeapfrogMobile3/build/../envs/production/resources/js/jquery.dateformat.js

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/js/pubsub.js to /Library/WebServer/Documents/LeapfrogMobile3/build/../envs/production/resources/js/pubsub.js

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/js/delegator.js to /Library/WebServer/Documents/LeapfrogMobile3/build/../envs/production/resources/js/delegator.js

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/js/main.js to /Library/WebServer/Documents/LeapfrogMobile3/build/../envs/production/resources/js/main.js

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/js/fpr.js to /Library/WebServer/Documents/LeapfrogMobile3/build/../envs/production/resources/js/fpr.js

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/app.js to /Library/WebServer/Documents/LeapfrogMobile3/build/../envs/production/app.js

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/js/add2home.js to /Library/WebServer/Documents/LeapfrogMobile3/build/../envs/production/resources/js/add2home.js

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/css/app.css to /Library/WebServer/Documents/LeapfrogMobile3/build/../envs/production/resources/css/app.css

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/css/add2home.css to /Library/WebServer/Documents/LeapfrogMobile3/build/../envs/production/resources/css/add2home.css

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/index.php

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/icons

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/startup

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/fonts

[INF] Copied /Library/WebServer/Documents/LeapfrogMobile3/build/resources/templates

[INF] Resolving your application dependencies (file:////Library/WebServer/Documents/LeapfrogMobile3/build/index.html)

[INF] Compiling app.js and dependencies

[INF] Loading classpath entry /Library/WebServer/Documents/LeapfrogMobile3/build/touch/src

[INF] Loading classpath entry /Library/WebServer/Documents/LeapfrogMobile3/build/app.js

[INF] Loading classpath entry /Library/WebServer/Documents/LeapfrogMobile3/build/app

[INF] Loading classpath entry /Library/WebServer/Documents/LeapfrogMobile3/build/overides.js

[ERR] The following error occurred while executing this line:

/Library/WebServer/Documents/LeapfrogMobile3/build/.sencha/app/build-impl.xml:173: The following error occurred while executing this line:

/Library/WebServer/Documents/LeapfrogMobile3/build/.sencha/app/build-impl.xml:166: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.BasicException (x-app-build#290)

runAppBuild (x-app-build:290)

[anonymous] (x-app-build:566)

x_app_build (x-app-build:564)

<script> (anonymous:1)

rm: ../envs/package/index.php: No such file or directory

=========================================================================



I've tried updating the framework to 4.0.2.67 but got a different response.

=========================================================================

Building the site and native apps

Sencha Cmd v4.0.2.67

[INF]

[INF] init-plugin:

[INF]

[INF] cmd-root-plugin.init-properties:

[INF]

[INF] init-properties:

[INF]

[INF] init-sencha-command:

[INF]

[INF] init:

[INF]

[INF] app-build-impl:

[INF]

[INF] -before-init-local:

[INF]

[INF] -init-local:

[INF]

[INF] -after-init-local:

[INF]

[INF] init-local:

[INF]

[INF] find-cmd-in-path:

[INF]

[INF] find-cmd-in-environment:

[INF]

[INF] find-cmd-in-shell:

[INF]

[INF] init-cmd:

[INF] [echo] Using Sencha Cmd from /Users/blaketaylor/bin/Sencha/Cmd/4.0.2.67 for /Library/WebServer/Documents/LeapfrogMobile3/build/build.xml

[INF]

[INF] -before-init:

[INF]

[INF] -init:

[INF] Initializing Sencha Cmd ant environment

[INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml

[INF]

[INF] -after-init:

[INF]

[INF] -before-init-defaults:

[INF]

[INF] -init-defaults:

[INF]

[INF] -after-init-defaults:

[INF]

[INF] -init-compiler:

[INF]

[INF] init:

[INF]

[INF] -before-build:

[INF]

[INF] refresh:

[INF]

[INF] -before-refresh:

[INF]

[INF] -init:

[INF]

[INF] -init-compiler:

[INF]

[INF] -detect-app-build-properties:

[INF] Loading app json manifest...

[INF] Loading classpath entry /Library/WebServer/Documents/LeapfrogMobile3/build/touch/src

[INF] Loading classpath entry /Library/WebServer/Documents/LeapfrogMobile3/build/app.js

[INF] Loading classpath entry /Library/WebServer/Documents/LeapfrogMobile3/build/app

[INF] Loading classpath entry /Library/WebServer/Documents/LeapfrogMobile3/build/overides.js

[INF] Loading classpath entry /Library/WebServer/Documents/LeapfrogMobile3/envs/temp/production/Ladbrokes/sencha-compiler/app

[ERR]

[ERR] BUILD FAILED

[ERR] com.sencha.exceptions.BasicException

[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferenceProcessor.processInstanceConfigForClass(InstanceConfig

[ERR] ReferenceProcessor.java:179)

[ERR] at c

[ERR] om.sencha.tools.compiler.sources.ReferenceVisitor.visit(ReferenceVisitor.java:148)

[ERR] at com.sencha.tools.compiler.a

[ERR] st.AstTranslator.visit(AstTranslator.java:513)

[ERR] at org.mozilla.javascript.ast.ExpressionStatement.visit(ExpressionStatement.j

[ERR] ava:120)

[ERR] at com.senc

[ERR] ha.tools.compiler.sources.InstanceConfigReferenceProcessor.processAutoDependencies(InstanceConfigReferenceProcessor.java:211)

[ERR] at com.senc

[ERR] ha.tools.compiler.sources.InstanceConfigReferenceProcessor.processInstanceConfig(InstanceConfigReferenceProcessor.java:128)

[ERR] at com.sencha.tools.compiler.sources.Referenc

[ERR] eVisitor.visit(ReferenceVisitor.java:148)

[ERR] at com.sencha.tools.compiler.ast.AstTranslator.visit(AstTranslator.java

[ERR] :513)

[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferenceProcessor.processAutoDependencies(InstanceConfigReferenceProcessor.

[ERR] java:211)

[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferenceProcessor.processInstanceConfig(InstanceConfigReferenceProcessor.ja

[ERR] va:128)

[ERR] at com.sencha.tools.compiler.sources.ReferenceVisitor.visit(ReferenceVisi

[ERR] tor.java:16)

[ERR]

[ERR] Total time: 5 seconds

[ERR] The following error occurred while executing this line:

/Library/WebServer/Documents/LeapfrogMobile3/build/.sencha/app/build-impl.xml:366: The following error occurred while executing this line:

/Library/WebServer/Documents/LeapfrogMobile3/build/.sencha/app/js-impl.xml:11: com.sencha.exceptions.BasicException

rm: ../envs/package/index.php: No such file or directory

=========================================================================



Any help is greatly appreciated :)




Aucun commentaire:

Enregistrer un commentaire