1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Vote Rating
    0
    da_b0uncer is an unknown quantity at this point

      0  

    Default com.sencha.exceptions.ExParse: Failed parsing

    com.sencha.exceptions.ExParse: Failed parsing


    I got a few errors with a description, but ended up with this one:

    Code:
    # sencha compile --classpath=src,lib/extjs page -in=index.html -out=build/index.html
    Sencha Cmd v3.0.0.141
    [INFO ]        Compiling page null
    [INFO ]        Processing classPath entry : /home/devel/kpl/projects/tree-gui/sencha-compile-temp-dir
    [INFO ]        Processing classPath entry : src
    [INFO ]        Processing classPath entry : lib/extjs
    [ERROR]        Error executing page compilation Failed parsing /home/devel/kpl/projects/tree-gui/src/plugins/report/controller/Main.js
    [ERROR]        com.sencha.exceptions.ExParse: Failed parsing /home/devel/kpl/projects/tree-gui/src/plugins/report/controller/Main.js
    But the mentioned file looks fine to me :\

    --- EDIT ---

    Btw. I'm using an object to get all class name strings to the top of every file.

    Code:
    var oClasses = {
      myController: 'My.plugins.report.controller.Main',
      myFactory: 'My.plugins.report.helper.Factory'
    };
    
    Ext.define( oClasses.myController, {
    ...
    uses: [ oClasses.myFactory ],
    ...
    });

  2. #2
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Vote Rating
    0
    da_b0uncer is an unknown quantity at this point

      0  

    Default


    Somehow it's because of my class string object.

    Does Sencha Cmd use "requires" only or also "uses" for determining the needed classes?

    Using "uses" is probably useless, since alle class files get loaded at once later...

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Vote Rating
    0
    da_b0uncer is an unknown quantity at this point

      0  

    Default


    lol okay, Sencha Cmd could not work with my variable class names.
    I used them for easy refactoring and minimizing string creation.

    Anyhow...

    I changed every "uses" to "requires" and removed all the variable class names from defines and requires.

    Then I increased the heap space in sencha.cfg, since 512 somehow blasted the system.

    Now I don't get errors anymore, but Sencha Cmd does nothing usefull...

    I end up with a all-classes.js (which has one class in it) and a index.html. Which is kinda strange since it threw a few errors about classes it couldn't find, so I had to change the define of them, but now they aren't even in the file?!

    Has this anything todo with the fact, that I don't use Ext.controller.Application for my app?