Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3466 in a recent build.
  1. #1
    Sencha User rkraus's Avatar
    Join Date
    Dec 2011
    Location
    Bonn / Germany
    Posts
    68
    Vote Rating
    0
    rkraus is an unknown quantity at this point

      0  

    Default [2.1.0-b3] Ext.Loader path problem

    [2.1.0-b3] Ext.Loader path problem


    Hi,

    after upgrading from beta2 to beta3 I have to set the SDK path (now in touch/src and not as beta2 in sdk/src) like this:

    Code:
    Ext.Loader.setPath({
    	'Ext': 'touch/src'
    });
    Why is that?
    Greetings -Ralf Kraus-

  2. #2
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    770
    Vote Rating
    28
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      0  

    Default


    I noticed the touch folder in the "myapp" example in the sdk.

    So I'm not sure now what to do for a manual upgrade since the automatic upgrade didn't work for me.
    Did you do anything fancy for the upgrade?
    I installed the sencha cmd 3.0, went to the sdk folder and ran sencha app upgrade ~/myproject and got an error:
    http://www.sencha.com/forum/showthre...b2-gt-2.1.0-b3

  3. #3
    Sencha User rkraus's Avatar
    Join Date
    Dec 2011
    Location
    Bonn / Germany
    Posts
    68
    Vote Rating
    0
    rkraus is an unknown quantity at this point

      0  

    Default


    "Fancy" YES

    I did a complete new project with the new "Sencha CMD" and then copied the files (like the touch folder) into my "old" project. Everything fine so far expect I ran into this Ext.Loader problem and my "Production" Build got an ugly error when I try to start it.
    Greetings -Ralf Kraus-

  4. #4
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    714
    Vote Rating
    42
    ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about

      0  

    Default


    So I'm not the only one having problems to upgrade...?

    As b3 contains a few things that are important to me, I decided to upgrade 'manually'. I renamed my project folder and created a new project with the 'old' name (that works with the new sencha cmd). Then I copied all my files from the renamed project to the new project. After adding the missing Ext.Loader path I was able to run and then to compile the thing into a native android app.

  5. #5
    Sencha User rkraus's Avatar
    Join Date
    Dec 2011
    Location
    Bonn / Germany
    Posts
    68
    Vote Rating
    0
    rkraus is an unknown quantity at this point

      0  

    Default


    Same way as I did it...

    But I can´t run my PRODUCTION build as I am getting this nasty error:

    Greetings -Ralf Kraus-

  6. #6
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    714
    Vote Rating
    42
    ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about

      0  

    Default


    Quote Originally Posted by rkraus View Post
    Same way as I did it...

    But I can´t run my PRODUCTION build as I am getting this nasty error:

    Code:
    From what I understand you have done it the other way round. When I noticed that names and folders have changed I decided to copy my OLD stuff (mainly the APP folder) into the new project. This way the new project structure should remain intact.

  7. #7
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    770
    Vote Rating
    28
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      0  

    Default


    Thanks for the tip!

    Trying to do the same now, but getting this: :-s

    Code:
    sencha-touch-2.1.0-beta3 $ sencha app create Project ~/Work/project
    Sencha Cmd v3.0.0.122
    [ERROR]		UNHANDLED EXCEPTION : No such property : 'create'
    Uhmm..

  8. #8
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    714
    Vote Rating
    42
    ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about

      1  

    Default


    They have changed the syntax! Try 'sencha generate app ...'

  9. #9
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    770
    Vote Rating
    28
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      1  

    Default


    Quote Originally Posted by ingo.hefti View Post
    They have changed the syntax! Try 'sencha generate app ...'
    Oh ha awesome, thanks!
    (They don't seem to have updated the sencha command guide yet.)

  10. #10
    Sencha User
    Join Date
    Mar 2012
    Posts
    28
    Vote Rating
    0
    snam is on a distinguished road

      0  

    Default


    Try this
    $ sencha generate app APP_NAME APP_PATH

    But you'll still have to update your app.js to contain the correct path to the sdk:
    Code:
    Ext.Loader.setPath({
    	'Ext': 'touch/src',
    });