Results 1 to 4 of 4

Thread: Problem with JSBuilder

  1. #1

    Default Problem with JSBuilder

    Hello

    I have a project built with Extjs and using jsbuilder to to build one js file containing extjs as well as our project's code. This has been working fine for a long time now.
    I tried today our build script, and the jsbuilder is producing the following error:

    Code:
     [java] Loading the 'Pronto' Project
         [java] Loaded 43 Packages
         [java] Compressing output files...
         [java] [ERROR] 207:3:syntax error
         [java] [ERROR] 208:24:missing ; before statement
         [java] [ERROR] 210:3:syntax error
         [java] [ERROR] 211:3:unterminated regular expression literal
         [java] [ERROR] 212:5:syntax error
         [java] [ERROR] 1:0:Compilation produced 5 syntax errors.
         [java] org.mozilla.javascript.EvaluatorException: Compilation produced 5 syntax errors.
         [java]     at com.extjs.JSBuilder2$2.runtimeError(JSBuilder2.java:325)
         [java]     at org.mozilla.javascript.Parser.parse(Parser.java:410)
         [java]     at org.mozilla.javascript.Parser.parse(Parser.java:355)
         [java]     at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:312)
         [java]     at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:533)
         [java]     at com.extjs.JSBuilder2.compressOutputFiles(JSBuilder2.java:302)
         [java]     at com.extjs.JSBuilder2.main(JSBuilder2.java:45)
         [java] Java Result: 2
    I did minor changes to the jsb file lately and I don't think that that's the problem. Although I updated my ubuntu packages lately, and as far as I know jsbuilder uses some mozilla packages, right?

    one sees from the error message, that the single package are generated and the single debug js file is also generated. The problem happens while creating the compressed final js file.

    Ubuntu 9.10
    JSbuilder2
    Extjs 3.1.1

    Best regards

  2. #2

    Default

    Found the problem.
    In a js file, there were the following lines:
    Code:
    /**
     * @requires OpenLayers/Projection.js
     * @requires OpenLayers/BaseTypes/LonLat.js
     * 
     * @requires Ext/util/MixedCollection.js
     */
    Which were used by jsmin of OpenLayers. After removing them it worked out fine.The thing is the the debug and compressed version of the single files have been generated successfully, as well as the debug version of the complete js file. The error appeared while generating the final compressed js.
    Still have no idea, why these lines caused an error. Too bad that the error message is not clearer

    Thnx anyway

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    1

    Default

    Do you remember which js file you modified? I'm coming up with the exact same error. Would greatly appreciate a solution for this problem.
    Thank you

    Quote Originally Posted by zaza1851983 View Post
    Found the problem.
    In a js file, there were the following lines:
    Code:
    /**
     * @requires OpenLayers/Projection.js
     * @requires OpenLayers/BaseTypes/LonLat.js
     * 
     * @requires Ext/util/MixedCollection.js
     */
    Which were used by jsmin of OpenLayers. After removing them it worked out fine.The thing is the the debug and compressed version of the single files have been generated successfully, as well as the debug version of the complete js file. The error appeared while generating the final compressed js.
    Still have no idea, why these lines caused an error. Too bad that the error message is not clearer

    Thnx anyway

  4. #4

    Default

    No sorry. I don't even have access to that source code anymore.
    But my advice is, start simple with only importing the standard js files (i.e. from Extjs and openlayers) then start inclduing your own js files one by one and compile each time and make sure that a final compressed js file is generated successfully. This is a very tricky error that jsbuilder won't point you out to. so be careful when adding js files. and remove any inclusion that's not really being used

    Good luck

Similar Threads

  1. JSBuilder
    By raven77m in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 27 Jul 2010, 2:24 PM
  2. .NET JSBuilder - problem with readonly jsb files
    By Max Ishchenko in forum Sencha Cmd
    Replies: 0
    Last Post: 13 Aug 2008, 12:12 AM
  3. Where is JSBuilder
    By hkatz in forum Sencha Cmd
    Replies: 3
    Last Post: 25 Mar 2008, 8:31 PM
  4. JSBuilder and .NET 3.0
    By feanor73 in forum Community Discussion
    Replies: 2
    Last Post: 17 May 2007, 8:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •