1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    4
    Vote Rating
    0
    Slapshot is on a distinguished road

      0  

    Default Classes required by profile in Sencha Touch are not build into app.js

    REQUIRED INFORMATION

    Sencha Cmd version(s) tested:
    • Sencha Cmd 5.0.0.160
    Operating System:
    • Win7 Pro
    Framework used:
    • Sencha Touch 2.3.1
    Description:
    • When defining a profile in Sencha Touch and defining required classes (e.g. Controllers or Views) in this profile, they will be loaded correctly when opening the app unpackaged in a browser
      However, when running "sencha app build package" on the project, the classes defined in the profile are not integrated into the app.js-file.
      When opening the built app in a browser, it stops loading with an error like "GET file:///C:/Users/bschott/Sencha/profileTest/build/package/ProfileTest/app/controller/phone/Main.js?_dc=1405518891871 net::ERR_FILE_NOT_FOUND"
    Diagnostic Output:
    The output from sencha diag show:
    Code:
     C:\Users\bschott\Sencha\profileTest>sencha diag show
    Sencha Cmd v5.0.0.160
    [INF]                          app.archivePath : archive
    [INF]                            app.build.dir : C:\Users\bschott\Sencha\profileTest/build/ProfileTest
    [INF]                            app.classpath : C:\Users\bschott\Sencha\profileTest/app.js,C:\Users\bschott\Sencha\profileTest/app
    [INF]                          app.cmd.version : 5.0.0.160
    [INF]                           app.config.dir : C:\Users\bschott\Sencha\profileTest\.sencha\app
    [INF]                                  app.dir : C:\Users\bschott\Sencha\profileTest
    [INF]                            app.framework : touch
    [INF]                    app.framework.version : 2.3.1.410
    [INF]                                   app.id : c4cad85c-ee56-4071-8034-379d8e34b299
    [INF]                        app.indexHtmlPath : index.html
    [INF]                                 app.name : ProfileTest
    [INF]                       app.requires.names :
    [INF]                    app.requires.packages :
    [INF]                       app.resource.paths :
    [INF]                     buildenvironment.dir : C:\Users\bschott\Sencha\profileTest
    [INF]                buildenvironment.load.dir : C:\Users\bschott\Sencha\profileTest
    [INF]                           cmd.config.dir : C:\Users\bschott\bin\Sencha\Cmd\5.0.0.160
    [INF]                                  cmd.dir : C:\Users\bschott\bin\Sencha\Cmd\5.0.0.160
    [INF]                     cmd.framework.minver : 2.2.0
    [INF]                    cmd.framework.version : 2.99.99.99999
    [INF]                             cmd.jvm.args : -Xms128m -Xmx1024m -Djava.awt.headless=true
    [INF]               cmd.merge.tool.args.araxis : -wait -merge -3 -a1 {base} {user} {generated} {out}
    [INF]               cmd.merge.tool.args.kdiff3 : {base} {user} {generated} -o {out}
    [INF]              cmd.merge.tool.args.p4merge : {base} {user} {generated} {out}
    [INF]            cmd.merge.tool.args.smartsync : {user} {generated} {base}
    [INF]           cmd.merge.tool.args.sourcegear : --merge --result={out} {user} {base} {generated}
    [INF]             cmd.merge.tool.args.tortoise : -base:{base} -theirs:{generated} -mine:{user} -merged:{out}
    [INF]                               cmd.minver : 3.0.0.0
    [INF]                             cmd.platform : windows
    [INF]                          cmd.server.port : 1841
    [INF]                              cmd.version : 5.0.0.160
    [INF]                             cmd.web.port : 1841
    [INF]                      framework.classpath : C:\Users\bschott\Sencha\profileTest\touch/src
    [INF]                     framework.cmd.minver : 3.1.0.53
    [INF]                    framework.cmd.version : 4.0.2.67
    [INF]                     framework.config.dir : C:\Users\bschott\bin\Sencha\Cmd\5.0.0.160\plugins\touch\2.3
    [INF]                            framework.dir : C:\Users\bschott\Sencha\profileTest\touch
    [INF]                        framework.ignores : src/locale,src/platform,auth2/Auth.js,scroller/Infinite.js
    [INF]                           framework.name : touch
    [INF]                   framework.packages.dir : C:\Users\bschott\Sencha\profileTest\touch/packages
    [INF]              framework.preprocessor.opts : charts:no
    [INF]                        framework.version : 2.3.1.410
    [INF]                           repo.local.dir : C:\Users\bschott\bin\Sencha\Cmd\repo
    [INF]         system.java.net.useSystemProxies : true
    [INF]                                touch.dir : C:\Users\bschott\Sencha\profileTest/touch
    [INF]                      workspace.build.dir : C:\Users\bschott\Sencha\profileTest/build
    [INF]                    workspace.cmd.version : 5.0.0.160
    [INF]                     workspace.config.dir : C:\Users\bschott\Sencha\profileTest\.sencha\workspace
    [INF]                            workspace.dir : C:\Users\bschott\Sencha\profileTest
    [INF]                   workspace.packages.dir : C:\Users\bschott\Sencha\profileTest/packages
    [INF]                      workspace.theme.dir : C:\Users\bschott\Sencha\profileTest/packages/${args.themeName}
    Steps to reproduce the problem:
    Code:
    C:\Users\bschott\Sencha\profileTest>sencha app build package
    Code:
    Sencha Cmd v5.0.0.160
    [INF] Processing Build Descriptor : default
    [INF] Loading app json manifest...
    [INF] Concatenating output to file C:\Users\bschott\Sencha\profileTest/build/temp/package/ProfileTest/sencha-compiler/cmd-packages.js
    [INF] Concatenating output to file C:\Users\bschott\Sencha\profileTest/build/temp/package/ProfileTest/__core.files
    [INF] Concatenating output to file C:\Users\bschott\Sencha\profileTest/build/temp/package/ProfileTest/__manifest
    [INF] Concatenating output to file C:\Users\bschott\Sencha\profileTest/build/temp/package/ProfileTest/__class.metadata
    [INF] Appending concatenated output to file C:\Users\bschott\Sencha\profileTest/build/temp/package/ProfileTest/__class.metadata
    [INF] Appending concatenated output to file C:\Users\bschott\Sencha\profileTest/build/temp/package/ProfileTest/__class.metadata
    [INF] Appending concatenated output to file C:\Users\bschott\Sencha\profileTest/build/temp/package/ProfileTest/__class.metadata
    [INF] Concatenating output to file C:\Users\bschott\Sencha\profileTest/build/temp/package/ProfileTest/__override.files
    [INF] Appending content to C:\Users\bschott\Sencha\profileTest/bootstrap.json
    [INF] Compressing data with YuiJavascriptCompressor
    [INF] Concatenating output to file C:\Users\bschott\Sencha\profileTest/build/package/ProfileTest/app.js
    [INF] merging resources into C:\Users\bschott\Sencha\profileTest\build\package\ProfileTest\resources
    [INF] merged 0 resources into C:\Users\bschott\Sencha\profileTest\build\package\ProfileTest\resources
    [INF] merging resources into C:\Users\bschott\Sencha\profileTest\build\package\ProfileTest
    [INF] merged 14 resources into C:\Users\bschott\Sencha\profileTest\build\package\ProfileTest
    [INF] executing compass using system installed ruby runtime
    [INF] Copying page resources to C:\Users\bschott\Sencha\profileTest\build\package\ProfileTest
    [INF] Writing content to C:\Users\bschott\Sencha\profileTest/build/package/ProfileTest/microloader.js
    [INF] Appending content to C:\Users\bschott\Sencha\profileTest/build/package/ProfileTest/microloader.js
    [INF] Building output markup to C:\Users\bschott\Sencha\profileTest/build/package/ProfileTest/index.html
    Code:
    Just addition of profile, controller and corresponding entries in app.js

    The result that was expected:
    • The controller defined in the profile will be also packaged into the app.js.
    The result that occurs instead:
    • The controller is not part of the app.js after packaging and therefore can't be found in the app.
    HELPFUL INFORMATION
    Sample Project for reproduction:

    https://mega.co.nz/#!hAZhTQDI!TPOfax...5Y4R-xXNzPmzH4

    Debugging already done:

    • None
    Possible fix:
    • a possible workaround is to move all class-definitions from profile to Ext.application. But that would make the documentation of defining profile-specific classes seperately invalid.

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,012
    Vote Rating
    134
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default

    Try downgrading to Sencha Cmd 4.0.5.87 with the following command
    Code:
    sencha upgrade version="4.0.5.87"
    There are some open bugs that prevent the building of apps with Cmd 5.
    You can download apps created with Cmd 5 by issuing the following command from the application's root folder.
    Code:
    sencha app upgrade --noframework
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

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

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

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    2
    Vote Rating
    0
    hameno is on a distinguished road

      0  

    Default

    Quote Originally Posted by fmoseley View Post
    Try downgrading to Sencha Cmd 4.0.5.87 with the following command
    Code:
    sencha upgrade version="4.0.5.87"
    That did not work:
    Code:
    $ sencha upgrade version="4.0.5.87"
    Sencha Cmd v4.0.4.84
    [INF] Downloading SenchaCmd-version=4.0.5.87-windows.exe.zip from http://cdn.sencha.com/cmd/version=4.0.5.87/ to temp folder C:\Users\Philip\AppData\Local\Temp\sencha1406117313546
    [INF] Cleaning up temporary files in C:\Users\Philip\AppData\Local\Temp\sencha1406117313546
    [ERR] Cannot download SenchaCmd-version=4.0.5.87-windows.exe.zip - not found at http://cdn.sencha.com/cmd/version=4.0.5.87/
    Quote Originally Posted by fmoseley View Post
    There are some open bugs that prevent the building of apps with Cmd 5.
    You can download apps created with Cmd 5 by issuing the following command from the application's root folder.
    Code:
    sencha app upgrade --noframework
    This also did not work
    Code:
    $ sencha app upgrade --noframework
    Sencha Cmd v4.0.4.84
    [ERR] java.lang.NullPointerException
         at java.util.regex.Matcher.getTextLength(Unknown Source)
         at java.util.regex.Matcher.reset(Unknown Source)
         at java.util.regex.Matcher.<init>(Unknown Source)
         at java.util.regex.Pattern.matcher(Unknown Source)
         at com.sencha.util.Version.cleanVersionString(Version.java:169)
         at com.sencha.command.app.AppCommands$UpgradeCommand.execute(AppCommands.java:216)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.command.Sencha.dispatch(Sencha.java:80)
         at com.sencha.command.Sencha.main(Sencha.java:148)
    I'm now manually downloading 4.0.5 and trying again.

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    2
    Vote Rating
    0
    hameno is on a distinguished road

      0  

    Default

    Quote Originally Posted by fmoseley View Post
    Try downgrading to Sencha Cmd 4.0.5.87 with the following command
    Code:
    sencha upgrade version="4.0.5.87"
    That did not work:
    Code:
    $ sencha upgrade version="4.0.5.87"
    Sencha Cmd v4.0.4.84
    [INF] Downloading SenchaCmd-version=4.0.5.87-windows.exe.zip from http://cdn.sencha.com/cmd/version=4.0.5.87/ to temp folder C:\Users\Philip\AppData\Local\Temp\sencha1406117313546
    [INF] Cleaning up temporary files in C:\Users\Philip\AppData\Local\Temp\sencha1406117313546
    [ERR] Cannot download SenchaCmd-version=4.0.5.87-windows.exe.zip - not found at http://cdn.sencha.com/cmd/version=4.0.5.87/
    Quote Originally Posted by fmoseley View Post
    There are some open bugs that prevent the building of apps with Cmd 5.
    You can download apps created with Cmd 5 by issuing the following command from the application's root folder.
    Code:
    sencha app upgrade --noframework
    This also did not work
    Code:
    $ sencha app upgrade --noframework
    Sencha Cmd v4.0.4.84
    [ERR] java.lang.NullPointerException
         at java.util.regex.Matcher.getTextLength(Unknown Source)
         at java.util.regex.Matcher.reset(Unknown Source)
         at java.util.regex.Matcher.<init>(Unknown Source)
         at java.util.regex.Pattern.matcher(Unknown Source)
         at com.sencha.util.Version.cleanVersionString(Version.java:169)
         at com.sencha.command.app.AppCommands$UpgradeCommand.execute(AppCommands.java:216)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.command.Sencha.dispatch(Sencha.java:80)
         at com.sencha.command.Sencha.main(Sencha.java:148)
    I'm now manually downloading 4.0.5 and trying again.

  5. #5
    Sencha User
    Join Date
    Nov 2011
    Location
    Argentina
    Posts
    33
    Vote Rating
    1
    azche is on a distinguished road

      0  

    Default

    Im having the same issue .. did you solve it?

  6. #6
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,012
    Vote Rating
    134
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default

    Sorry about that. Looks like you can no longer download that version via Sencha Cmd. It can be manually downloaded from:
    http://cdn.sencha.com/cmd/4.0.5.87/release-notes.html
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

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

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

    Need to include a test case use:
    The official Sencha Fiddle

  7. #7
    Sencha User
    Join Date
    Nov 2011
    Location
    Argentina
    Posts
    33
    Vote Rating
    1
    azche is on a distinguished road

      0  

    Default

    Yes I have the old versions, but I wonder if we can use version 5x?

  8. #8
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,012
    Vote Rating
    134
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default

    No not with Sencha Touch at this time.
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

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

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

    Need to include a test case use:
    The official Sencha Fiddle