Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Feb 2009
    Location
    Glasgow, Scotland
    Posts
    295
    Vote Rating
    5
    Stuart-SwarmOnline will become famous soon enough

      0  

    Default [3.0.2.288] Issue with building app with custom path

    [3.0.2.288] Issue with building app with custom path


    REQUIRED INFORMATION
    Sencha Cmd version(s) tested:
    • Sencha Cmd 3.0.2.288
    Operating System:
    • Mac OSX 10.8.2
    Framework used:
    • Ext JS 4.1.1a
    Description:
    • When building an app containing a custom path the build process errors saying it can't find the class on that custom path.
    Steps to reproduce the problem:
    Please include complete command lines and a capture of the console output.

    I generated an app with Sencha Cmd using Ext JS 4.1.1a.

    Code:
    sencha generate app BugTest ../Projects/BugTest
    I added a new class 'Sample' in a directory named 'custom' a level above the BugTest app's files e.g.

    Projects
    - BugTest
    - app
    - ...etc
    - common
    - Sample.js

    I then added a new path in app.js:

    Code:
    Ext.Loader.setPath({
        Common: '../common'
    });
    and added a requires for the common class in the application:

    Code:
        requires: ['Common.Sample'],
    If I open this in the browser it runs fine and loads in the Sample class.

    I then try to build the app using the following command:

    Code:
     sencha app build

    The result that was expected:
    • The app would build correctly
    The result that occurs instead:
    • The build process fails with the following output and errors
    Code:
    Sencha Cmd v3.0.2.288
        [INF]
        [INF]        init-properties:
    [INF]
        [INF]        init-sencha-command:
    [INF]
        [INF]        init:
        [INF]
            [INF]        -before-app-build:
    [INF]
        [INF]        app-build-impl:
    [INF]
        [INF]        production:
        [INF]
            [INF]        -before-init-local:
    [INF]
        [INF]        -init-local:
    [INF]
        [INF]        -after-init-local:
    [INF]
        [INF]        init-local:
    [INF]
        [INF]        find-cmd:
    [INF]
        [INF]        -before-init:
    [INF]
        [INF]        -init:
    [INF]
        [INF]        -after-init:
    [INF]
        [INF]        init:
        [INF]
            [INF]        -before-build:
    [INF]
        [INF]        sass:
        [INF]
            [INF]        -before-sass:
    [INF]
        [INF]        -sass:
    [INF]        [shellscript] overwrite app.css
        [INF]        Compressed 0 of 1 (1 up to date)
    [INF]
        [INF]        -after-sass:
    [INF]
        [INF]        theme:
        [INF]
            [INF]        -before-theme:
    [INF]
        [INF]        -theme:
    [INF]             [echo] Copying base framework images from /Projects/BugTest/ext/resources/themes/images/default to /Projects/BugTest/resources/theme/images
        [INF]             [copy] Copying 370 files to /Projects/BugTest/resources/theme/images
        [INF]             [echo] Slicing images for theme theme to /Projects/BugTest/resources/theme/images
        [INF]        Building theme
        [INF]        Capturing theme image
        [INF]        Capture complete
        [INF]        Slicing theme
        [INF]        Slice complete
        [INF]        Build complete
        [INF]             [copy] Copying 371 files to /Projects/BugTest/build/BugTest/production/resources
        [INF]             [copy] Copying 24 files to /Projects/BugTest/build/BugTest/production/ext
        [INF]
        [INF]        -after-theme:
    [INF]
        [INF]        page:
        [INF]
            [INF]        -before-page:
    [INF]
        [INF]        -page:
    [INF]        Compiling page page
        [INF]        Processing classPath entry : /Projects/BugTest/sencha-compile-temp-dir
        [INF]        Processing classPath entry : /Projects/BugTest/ext/src
        [INF]        Processing classPath entry : /Projects/BugTest/app
        [WRN]        C1000: Yui Compressor Warning (Trailing comma is not legal in an ECMA-262 object initializer =>                         ]) -- /Projects/BugTest/ext/src/ux/grid/filter/DateFilter.js:13383
        [INF]        Processing class inheritance graph
        [INF]        Processing instantiation refereces to classes and aliases
        [WRN]        C1000: Yui Compressor Warning (Trailing comma is not legal in an ECMA-262 object initializer =>                         ]) -- /Projects/BugTest/ext/src/ux/grid/filter/DateFilter.js:13383
        [INF]        Processing source dependencies
        [ERR]        Failed to find file for Common.Sample
        required by /Projects/BugTest/app/app.js
        [ERR]
        [ERR]        BUILD FAILED
        [ERR]        com.sencha.exceptions.ExBuild: Failed to find any files for Common.Sample
                                                                                     [ERR]            at com.sencha.tools.compiler.CompilerContext.processFileDependencies(CompilerContext.java:451)
    [ERR]            at com.sencha.tools.compiler.CompilerContext.doProcessDependencies(CompilerContext.java:345)
    [ERR]            at com.sencha.tools.compiler.CompilerContext.processDependencies(CompilerContext.java:335)
    [ERR]            at com.sencha.tools.compiler.CompilerContext.processDependencies(CompilerContext.java:307)
    [ERR]            at com.sencha.command.compile.CompileCommands.getCache(CompileCommands.java:199)
    [ERR]            at com.sencha.command.compile.CompileCommands.getCache(CompileCommands.java:154)
    [ERR]            at com.sencha.command.compile.CompileCommands$RestoreSetCommand.execute(CompileCommands.java:273)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]            at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:69)
    [ERR]            at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]            at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]            at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [ERR]            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]            at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [ERR]            at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]            at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:80)
    [ERR]            at com.sencha.command.ant.AntCommand.execute(AntCommand.java:75)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]            at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:69)
    [ERR]            at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]            at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:72)
    [ERR]            at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:94)
    [ERR]            at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:98)
    [ERR]            at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:142)
    [ERR]            at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:116)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.command.Sencha.main(Sencha.java:71)
    [ERR]
        [ERR]        Total time: 16 seconds
        [ERR]
        [ERR]        BUILD FAILED
        [ERR]        com.sencha.exceptions.BasicException: The following error occurred while executing this line:
        [ERR]        /Projects/BugTest/.sencha/app/build-impl.xml:368: com.sencha.exceptions.ExBuild: Failed to find any files for Common.Sample
                                                                                                                                                                                             [ERR]            at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:104)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]            at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:69)
    [ERR]            at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]            at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:72)
    [ERR]            at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:94)
    [ERR]            at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:98)
    [ERR]            at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:142)
    [ERR]            at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:116)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.command.Sencha.main(Sencha.java:71)
    [ERR]        Caused by: /Projects/BugTest/.sencha/app/build-impl.xml:391: The following error occurred while executing this line:
        [ERR]        /Projects/BugTest/.sencha/app/build-impl.xml:368: com.sencha.exceptions.ExBuild: Failed to find any files for Common.Sample
                                                                                                                                                                                             [ERR]            at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
    [ERR]            at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
    [ERR]            at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]            at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]            at com.sencha.ant.AntRunner.run(AntRunner.java:80)
    [ERR]            at com.sencha.command.ant.AntCommand.execute(AntCommand.java:75)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]            ... 31 more
        [ERR]        Caused by: /Projects/BugTest/.sencha/app/build-impl.xml:368: com.sencha.exceptions.ExBuild: Failed to find any files for Common.Sample
                                                                                                                                                                                                        [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
    [ERR]            at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]            at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]            at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]            at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [ERR]            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]            at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [ERR]            ... 52 more
        [ERR]        Caused by: com.sencha.exceptions.ExBuild: Failed to find any files for Common.Sample
                                                                                                [ERR]            at com.sencha.tools.compiler.CompilerContext.processFileDependencies(CompilerContext.java:451)
    [ERR]            at com.sencha.tools.compiler.CompilerContext.doProcessDependencies(CompilerContext.java:345)
    [ERR]            at com.sencha.tools.compiler.CompilerContext.processDependencies(CompilerContext.java:335)
    [ERR]            at com.sencha.tools.compiler.CompilerContext.processDependencies(CompilerContext.java:307)
    [ERR]            at com.sencha.command.compile.CompileCommands.getCache(CompileCommands.java:199)
    [ERR]            at com.sencha.command.compile.CompileCommands.getCache(CompileCommands.java:154)
    [ERR]            at com.sencha.command.compile.CompileCommands$RestoreSetCommand.execute(CompileCommands.java:273)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]            at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]            at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:69)
    [ERR]            at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    [ERR]            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR]            at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR]            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]            ... 59 more
        [ERR]
        [ERR]        Total time: 16 seconds
        [ERR]        com.sencha.exceptions.BasicException: The following error occurred while executing this line:
        /Projects/BugTest/.sencha/app/build-impl.xml:368: com.sencha.exceptions.ExBuild: Failed to find any files for Common.Sample

    HELPFUL INFORMATION
    Screenshot or Video:
    • None
    Possible fix:
    • Unknown
    Possibly related issue:
    http://www.sencha.com/forum/showthre...stom-app-path&
    Last edited by Stuart-SwarmOnline; 20 Feb 2013 at 10:52 PM. Reason: Added related issue

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,824
    Vote Rating
    836
    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

      0  

    Default


    Did you edit the sencha.cfg to add the path for the Common classes? Cmd will use it not the requires in your app to find the classes.
    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.

  3. #3
    Sencha User
    Join Date
    Feb 2009
    Location
    Glasgow, Scotland
    Posts
    295
    Vote Rating
    5
    Stuart-SwarmOnline will become famous soon enough

      0  

    Default


    Thanks for the response Mitchell - worked perfectly! I assumed Cmd would resolve the dependencies using the Ext.Loader's paths.

    For anyone coming across this in the future...

    I added a path to the "common" directory in the .sencha/app/sencha.cfg file so it looked like the following:

    Code:
    app.name=BugTest
    app.framework=ext
    app.classpath=${app.dir}/app,${app.dir}/../common
    
    
    app.cmd.version=3.0.2.288
    Thanks again.

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Location
    Eindhoven, Netherlands
    Posts
    32
    Vote Rating
    2
    jeroenwalter is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    Did you edit the sencha.cfg to add the path for the Common classes? Cmd will use it not the requires in your app to find the classes.
    The problem with this is that CMD will try to do its magic on all files found in the added paths, even if those files are not used in the app.
    I have several .js files in my app folders and some additional folders that are still in development and therefore are not yet added to the app via the 'require' construction.
    Yet CMD parses those files, sees some class definitions and then miserably fails.
    This leaves me with an unworkable state, as, even though my application works perfectly, I can not create a packaged build, because CMD fails

    The previous version of CMD that worked with ST2.0 used the actual files that were required via app.js or other classes. I don't see why you modified the build tools to no longer do this, if it ain't broken, don't fix it.