1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    409
    Vote Rating
    18
    digeridoopoo will become famous soon enough

      0  

    Default Sencha Command build error

    Sencha Command build error


    I used Sencha Command to build the example app, I called it Testbuild. I then tried issuing the command 'sencha app build' and it got so far but then there was an error. In the testbuild's app.json file I put this:
    Code:
    {
        /**
         * The application's namespace, used by Sencha Command to generate classes
         */
        "name": "Testbuild",
    
    
        /**
         * The file path to this application's front HTML document, relative to this app.json file
         */
        "indexHtmlPath": "http://localhost:8888/Testbuild/",
    
    
        /**
         * The absolute URL to this application in development environment, i.e: the URL to run this application
         * on your web browser during development, e.g: "http://localhost/myapp/index.html".
         *
         * This value is needed when build to resolve your application's dependencies if it requires server-side resources
         * that are not accessible via file system protocol.
         */
        "url": "http://localhost:8888/Testbuild/index.html"
    etc.


    It seems to be an error relating to ant. I am running on a Mac, 10.8.2:

    Code:
    Macbook-Pro-3:Testbuild Macintosh$ sencha app build
    Sencha Cmd v3.0.2.288
    [INF]        
    [INF]        init-properties:
    [INF]        
    [INF]        init-sencha-command:
    [INF]        
    [INF]        init:
    [INF]        
    [INF]        -before-app-build:
    [INF]        
    [INF]        app-build-impl:
    [INF]        
    [INF]        production:
    [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]        
    [INF]        -after-init:
    [INF]        
    [INF]        init:
    [INF]        
    [INF]        -before-build:
    [INF]        
    [INF]        sass:
    [INF]        
    [INF]        -before-sass:
    [INF]        
    [INF]        -sass:
    [INF]        [shellscript] identical ../css/app.css 
    [INF]        
    [INF]        -after-sass:
    [INF]        
    [INF]        page:
    [INF]        
    [INF]        -before-page:
    [INF]        
    [INF]        -page:
    [INF]        building application
    [ERR]        
    [ERR]        BUILD FAILED
    [ERR]        com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    [ERR]        /Applications/MAMP/htdocs/Testbuild/.sencha/app/build-impl.xml:137: com.sencha.exceptions.ExScript: SyntaxError: missing '}' after property list (/Users/Macintosh/bin/Sencha/Cmd/3.0.2.288/ant/ant-util.js#373(eval)#41)
    [ERR]           readConfig (/Users/Macintosh/bin/Sencha/Cmd/3.0.2.288/ant/ant-util.js:373)
    [ERR]           runAppBuild (x-app-build:9)
    [ERR]           [anonymous] (x-app-build:545)
    [ERR]           x_app_build (x-app-build:543)
    [ERR]           <script> (anonymous:1)
    [ERR]            at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:104)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]            at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:69)
    [ERR]            at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]            at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:72)
    [ERR]            at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:94)
    [ERR]            at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:98)
    [ERR]            at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:142)
    [ERR]            at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:116)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.command.Sencha.main(Sencha.java:71)
    [ERR]        Caused by: /Applications/MAMP/htdocs/Testbuild/.sencha/app/build-impl.xml:144: The following error occurred while executing this line:
    [ERR]        /Applications/MAMP/htdocs/Testbuild/.sencha/app/build-impl.xml:137: com.sencha.exceptions.ExScript: SyntaxError: missing '}' after property list (/Users/Macintosh/bin/Sencha/Cmd/3.0.2.288/ant/ant-util.js#373(eval)#41)
    [ERR]           readConfig (/Users/Macintosh/bin/Sencha/Cmd/3.0.2.288/ant/ant-util.js:373)
    [ERR]           runAppBuild (x-app-build:9)
    [ERR]           [anonymous] (x-app-build:545)
    [ERR]           x_app_build (x-app-build:543)
    [ERR]           <script> (anonymous:1)
    [ERR]            at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
    [ERR]            at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
    [ERR]            at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]            at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:80)
    [ERR]            at com.sencha.command.ant.AntCommand.execute(AntCommand.java:75)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]            ... 31 more
    [ERR]        Caused by: /Applications/MAMP/htdocs/Testbuild/.sencha/app/build-impl.xml:137: com.sencha.exceptions.ExScript: SyntaxError: missing '}' after property list (/Users/Macintosh/bin/Sencha/Cmd/3.0.2.288/ant/ant-util.js#373(eval)#41)
    [ERR]           readConfig (/Users/Macintosh/bin/Sencha/Cmd/3.0.2.288/ant/ant-util.js:373)
    [ERR]           runAppBuild (x-app-build:9)
    [ERR]           [anonymous] (x-app-build:545)
    [ERR]           x_app_build (x-app-build:543)
    [ERR]           <script> (anonymous:1)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]            at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]            at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [ERR]            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]            at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [ERR]            ... 52 more
    [ERR]        Caused by: com.sencha.exceptions.ExScript: SyntaxError: missing '}' after property list (/Users/Macintosh/bin/Sencha/Cmd/3.0.2.288/ant/ant-util.js#373(eval)#41)
    [ERR]           readConfig (/Users/Macintosh/bin/Sencha/Cmd/3.0.2.288/ant/ant-util.js:373)
    [ERR]           runAppBuild (x-app-build:9)
    [ERR]           [anonymous] (x-app-build:545)
    [ERR]           x_app_build (x-app-build:543)
    [ERR]           <script> (anonymous:1)
    [ERR]            at com.sencha.util.JavaScriptHost.eval(JavaScriptHost.java:74)
    [ERR]            at com.sencha.ant.ScriptTask.executeScript(ScriptTask.java:92)
    [ERR]            at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            ... 59 more
    [ERR]        Caused by: org.mozilla.javascript.EcmaError: SyntaxError: missing '}' after property list (/Users/Macintosh/bin/Sencha/Cmd/3.0.2.288/ant/ant-util.js#373(eval)#41)
    [ERR]            at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
    [ERR]            at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:57)
    [ERR]            at org.mozilla.javascript.Parser.addError(Parser.java:188)
    [ERR]            at org.mozilla.javascript.Parser.addError(Parser.java:166)
    [ERR]            at org.mozilla.javascript.Parser.reportError(Parser.java:223)
    [ERR]            at org.mozilla.javascript.Parser.reportError(Parser.java:217)
    [ERR]            at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:388)
    [ERR]            at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:378)
    [ERR]            at org.mozilla.javascript.Parser.objectLiteral(Parser.java:3246)
    [ERR]            at org.mozilla.javascript.Parser.primaryExpr(Parser.java:2767)
    [ERR]            at org.mozilla.javascript.Parser.memberExpr(Parser.java:2406)
    [ERR]            at org.mozilla.javascript.Parser.unaryExpr(Parser.java:2304)
    [ERR]            at org.mozilla.javascript.Parser.mulExpr(Parser.java:2229)
    [ERR]            at org.mozilla.javascript.Parser.addExpr(Parser.java:2213)
    [ERR]            at org.mozilla.javascript.Parser.shiftExpr(Parser.java:2194)
    [ERR]            at org.mozilla.javascript.Parser.relExpr(Parser.java:2169)
    [ERR]            at org.mozilla.javascript.Parser.eqExpr(Parser.java:2141)
    [ERR]            at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2130)
    [ERR]            at org.
    [ERR]        mozilla.javascript.Parser.bitXorExpr(Parser.java:2119)
    [ERR]            at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2108)
    [ERR]            at org.mozilla.javascript.Parser.andExpr(Parser.java:2097)
    [ERR]            at org.mozilla.javascript.Parser.orExpr(Parser.java:2086)
    [ERR]            at org.mozilla.javascript.Parser.condExpr(Parser.java:2062)
    [ERR]            at org.mozilla.javascript.Parser.assignExpr(Parser.java:2033)
    [ERR]            at org.mozilla.javascript.Parser.expr(Parser.java:2012)
    [ERR]            at org.mozilla.javascript.Parser.parenExpr(Parser.java:2839)
    [ERR]            at org.mozilla.javascript.Parser.primaryExpr(Parser.java:2773)
    [ERR]            at org.mozilla.javascript.Parser.memberExpr(Parser.java:2406)
    [ERR]            at org.mozilla.javascript.Parser.unaryExpr(Parser.java:2304)
    [ERR]            at org.mozilla.javascript.Parser.mulExpr(Parser.java:2229)
    [ERR]            at org.mozilla.javascript.Parser.addExpr(Parser.java:2213)
    [ERR]            at org.mozilla.javascript.Parser.shiftExpr(Parser.java:2194)
    [ERR]            at org.mozilla.javascript.Parser.relExpr(Parser.java:2169)
    [ERR]            at org.mozilla.javascript.Parser.eqExpr(Parser.java:2141)
    [ERR]            at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:2130)
    [ERR]            at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:2119)
    [ERR]            at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:2108)
    [ERR]            at org.mozilla.javascript.Parser.andExpr(Parser.java:2097)
    [ERR]            at org.mozilla.javascript.Parser.orExpr(Parser.java:2086)
    [ERR]            at org.mozilla.javascript.Parser.condExpr(Parser.java:2062)
    [ERR]            at org.mozilla.javascript.Parser.assignExpr(Parser.java:2033)
    [ERR]            at org.mozilla.javascript.Parser.variables(Parser.java:1870)
    [ERR]            at org.mozilla.javascript.Parser.statementHelper(Parser.java:986)
    [ERR]            at org.mozilla.javascript.Parser.statement(Parser.java:901)
    [ERR]            at org.mozilla.javascript.Parser.parse(Parser.java:540)
    [ERR]            at org.mozilla.javascript.Parser.parse(Parser.java:478)
    [ERR]            at org.mozilla.javascript.Context.compileImpl(Context.java:2348)
    [ERR]            at org.mozilla.javascript.Context.compileString(Context.java:1335)
    [ERR]            at org.mozilla.javascript.ScriptRuntime.evalSpecial(ScriptRuntime.java:2504)
    [ERR]            at org.mozilla.javascript.ScriptRuntime.callSpecial(ScriptRuntime.java:2360)
    [ERR]            at org.mozilla.javascript.Interpreter.doCallSpecial(Interpreter.java:2279)
    [ERR]            at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1344)
    [ERR]            at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
    [ERR]            at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
    [ERR]            at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
    [ERR]            at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
    [ERR]            at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
    [ERR]            at org.mozilla.javascript.Context.evaluateString(Context.java:1079)
    [ERR]            at com.sencha.util.JavaScriptHost.eval(JavaScriptHost.java:67)
    [ERR]            ... 66 more
    [ERR]        
    [ERR]        Total time: 14 seconds
    [ERR]        com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    /Applications/MAMP/htdocs/Testbuild/.sencha/app/build-impl.xml:137: com.sencha.exceptions.ExScript: SyntaxError: missing } after property list (/Users/Macintosh/bin/Sencha/Cmd/3.0.2.288/ant/ant-util.js#373(eval)#41)
       readConfig (/Users/Macintosh/bin/Sencha/Cmd/3.0.2.288/ant/ant-util.js:373)
       runAppBuild (x-app-build:9)
       [anonymous] (x-app-build:545)
       x_app_build (x-app-build:543)
       <script> (anonymous:1)
    I also tried:
    Code:
    sencha config -prop v2deps=true then app build
    ...but I get the same error. Anyone know why this might be happening? This is just the test example app so it should build without any problems right?

    Thanks

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,154
    Vote Rating
    475
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Do you receive this error on a new build after a generate? or is this an active project?

    Code:
    sencha -sdk /var/www/extjs4 generate app TEST /var/www/test
    sencha app build production
    Please specify the version of SC that you are using. We recommend the latest version.
    Are you using OpenJDK or Sun Java? Sun is recommended.

    Scott.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    409
    Vote Rating
    18
    digeridoopoo will become famous soon enough

      0  

    Default My system...

    My system...


    Have to do some more testing....the first 2 builds failed (based on a Sencha generate app). Then I just tried it again with this first:


    Code:
    sencha generate app MyApp /Applications/MAMP/htdocs/MyApp

    and then cd-ing into the directory and running
    Code:
    sencha app build
    ....and the third time it works! Weird!


    To get it working at all I did still have to issue this command first though in Terminal:


    Code:
    export PATH=~/bin/Sencha/Cmd/3.0.2.288:$PATH

    I am on Sencha Touch 2.1 and Sencha Command 3.0.2.288, With Mac OS X 10.8.2. I also uninstalled the SDK tools and reinstalled the Sencha Command.


    I did also download and install the latest Sun Java, but not sure that had an effect as I had a failed build after installing that.


    P.S - has anyone thought about compiling a simple application for each build using something like this:

    http://sveinbjorn.org/platypus

    ?? Would make the build process so much easier...

Thread Participants: 1

Tags for this Thread