Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    411
    Vote Rating
    17
    jweber will become famous soon enough

      0  

    Default Build error with custom app path

    Build error with custom app path


    REQUIRED INFORMATION


    Ext version tested:
    • Sencha Touch 2.1rc1

    Browser versions tested against:
    • N/A

    DOCTYPE tested against:
    • html

    Description:
    • If you create an app using Sencha Command, the app's classes are stored in an "app" folder. In previous versions of the command, you could customize this folder. Now I get an error when I try to build an app with a custom folder.

    Steps to reproduce the problem:
    • Run "sencha generate app ..." to create an app.
    • In app.js, change the "Ext.Loader.setPath" command. Instead of 'default': 'app', use 'default': 'customfolder'.
    • Rename the "app" folder to "customfolder".
    • Run "sencha app build production".

    The result that was expected:
    • Builds correctly.

    The result that occurs instead:
    • Shows the following output:
      Code:
      Sencha Cmd v3.0.0.188
      [INFO ]		init-properties:
      [INFO ]		init-sencha-command:
      [INFO ]		init:
      [INFO ]		-before-app-build:
      [INFO ]		app-build-impl:
      [INFO ]		building application
      [INFO ]		Deploying your application to /Users/myuser/test/build/default/production
      [INFO ]		Copied app.js
      [INFO ]		Copied resources/css/app.css
      [INFO ]		Copied /Users/myuser/test/resources/icons
      [INFO ]		Copied /Users/myuser/test/resources/startup
      [INFO ]		Resolving your application dependencies (file:////Users/myuser/test/index.html)
      [INFO ]		Compiling app.js and dependencies
      [INFO ]		Processing classPath entry : /Users/myuser/test/sencha-compile-temp-dir
      [INFO ]		Processing classPath entry : /Users/myuser/test/touch/src
      [INFO ]		Processing classPath entry : /Users/myuser/test/app.js
      [INFO ]		Processing classPath entry : /Users/myuser/test/app
      [WARN ]		[ [1000] : Yui Compressor Warning <> Trailing comma is not legal in an ECMA-262 object initializer => }, function() { ] :: ( /Users/myuser/test/touch/src/app/Controller.js => 625 : 1 )
      [ERROR]		def was null
      [ERROR]		failed to find meta class definition for name default.view.Main
      [ERROR]		Exception running app build : JavaException: com.sencha.exceptions.BasicException: null
      [ERROR]		javax.script.ScriptException: sun.org.mozilla.javascript.internal.JavaScriptException: [object Error] (<Unknown source>#709) in <Unknown source> at line number 709
    • Also note the warning from YUI compressor.

    Test Case:

    See above.



    HELPFUL INFORMATION


    Screenshot or Video:
    • N/A

    See this URL for live test case: N/A


    Debugging already done:
    • Also tried adding "appFolder": "customfolder" to the app config, but got the same result.

    Possible fix:
    • not provided

    Additional CSS used:
    • only default ext-all.css

    Operating System:
    • Mac OS 10.8.2

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    411
    Vote Rating
    17
    jweber will become famous soon enough

      0  

    Default


    Actually, I'm getting a similar error when I include any classes with a custom directory. Makes me think I must be doing something wrong, but I'm not sure what. For example, in app.js, I added the following to the template app:

    Code:
    //<debug>
    Ext.Loader.setPath({
        'Ext': 'touch/src',
        'dummy': 'dummy',
        'default': 'app'
    });
    //</debug>
    
    Ext.application({
        name: 'default',
    
        requires: [
        	'dummy.Sample',
            'Ext.MessageBox'
        ],
    Then I added a file dummy/Sample.js, containing a definition of dummy.Sample. When I try to build it, I get:

    Code:
    [INFO ]		Processing source dependencies
    [ERROR]		Failed to find file for dummy.Sample
     required by /Users/myuser/test/app.js
    [ERROR]		Exception running app build : JavaException: com.sencha.exceptions.ExBuild: Failed to find any files for dummy.Sample
    [ERROR]		javax.script.ScriptException: sun.org.mozilla.javascript.internal.JavaScriptException: [object Error] (<Unknown source>#709) in <Unknown source> at line number 709
    All of this works when I'm debugging in a browser, but fails when I try to build.

  3. #3
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      1  

    Default


    Using v3.0.0.190 with ST 2.1.0 RC1 I can change the app dir to something else and get it to build properly. Here is how I did it:

    > cd /path/to/sencha-touch-2.1.0-rc1
    > sencha generate app MyApp /path/to/MyApp
    > cd /path/to/MyApp
    > mv app foo

    -- edit app.js to have MyApp path resolve to the foo directory

    --edit .sencha/app/sencha.cfg and change this line:

    Code:
    app.classpath=${app.dir}/app.js,${app.dir}/app
    to

    Code:
    app.classpath=${app.dir}/app.js,${app.dir}/foo
    > sencha app build production

    This should build fine and you can launch your app in a browser just fine.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Posts
    411
    Vote Rating
    17
    jweber will become famous soon enough

      0  

    Default


    Thanks. That works, but this is an area where the documentation really needs improvement.

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi