Eclipse .min.js Files Multiple Syntax Errors

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    4 posts
    Member since:
    Aug 2012

    Posted 29 Aug 2012 Link to this post

    Hi,

    I'm looking to use Kendo UI with PhoneGap to create a mobile app. I have PhoneGap working fine but when I copy and paste KendoUI's "styles" and "js" folders into the assets folder of the Eclipse project several .min.js files throw syntax errors! I downloaded and used: "kendoui.trial.2012.2.710"

    "Syntax error on token ",", ; expected kendo.all.min.js /KendoUI_BaseTemplate/assets/js line 8 JavaScript Problem"
    "Syntax error on token "}", ; expected kendo.dataviz.min.js /KendoUI_BaseTemplate/assets/js line 8 JavaScript Problem"
    etc...

    In total there are 462 syntax errors where Eclipse expects a different symbol instead of the given symbol. Does this mean the files are corrupt or Eclipse is just being funny as usual? Is there a way to suppress the errors as the application won't compile until the errors are dealt with?

    Any help would be great,
    Tom
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 31 Aug 2012 Link to this post

    Hello Thomas,

    The kendo scripts distributed are minified and compressed in order to reduce their size. The minification also clears any new lines present in the scripts. This results in roughly 100 000 symbols on a single line. I am certain that this confuses Eclipse. 

    I am not an Eclipse expert, but it seems that a similar problem occurs with jQuery itself. You can check this Stack Overflow thread for suggestions on how to resolve it. 

    All the best,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
Back to Top