Success! Looks like we've fixed this one. According to our records the fix was applied for SDKTOOLS-338 in a recent build.
  1. #1
    Sencha Premium Member twasink's Avatar
    Join Date
    Oct 2012
    Location
    Brisbane, Australia
    Posts
    100
    Vote Rating
    9
    twasink will become famous soon enough

      0  

    Default [3.1.0.130] Bug with generating workspaces and apps

    [3.1.0.130] Bug with generating workspaces and apps


    There's a bug in Sencha CMD 3.1.0.130 where you can't build apps made as part of a workspace. The sass/config.rb lists an incorrect path to the packages directory.

    This is the result when you try to build a freshly created application:

    Code:
    $ sencha-3.1.0.130 -sdk ext-4.2.0.489 generate workspace test_workspace
    [INF] Loading configuration from ext-4.2.0.489
    Sencha Cmd v3.1.0.130
    ... [creates workspace without error]
    
    
    $ sencha-3.1.0.130 -sdk ext-4.2.0.489 generate app TestApp test_workspace/testapp
    [INF] Loading configuration from ext-4.2.0.489
    Sencha Cmd v3.1.0.130
    ... [generates application without error]
    
    
    $ ls test_workspace/testapp/
    Readme.md      app/           app.json       bootstrap.css  bootstrap.js   build.xml      index.html     overrides/     resources/     sass/
    
    
    $ cd test_workspace/testapp/
    
    
    $ sencha-3.1.0.130 app build
    Sencha Cmd v3.1.0.130
    [INF] 
    [INF] init-plugin:
    [INF] 
    [INF] init-plugin:
    [INF] Invoking plugin (test_workspace/testapp/.sencha/app/plugin.xml) - supported targets: -before-app-build
    [INF] 
    [INF] -before-app-build:
    [INF] Invoking plugin (test_workspace/testapp/.sencha/app/plugin.xml) - supported targets: app-build
    [INF] 
    [INF] cmd-root-plugin.init-properties:
    [INF] 
    [INF] init-properties:
    [INF] 
    [INF] init-sencha-command:
    [INF] 
    [INF] init:
    [INF] 
    [INF] -before-app-build:
    [INF] 
    [INF] app-build-impl:
    [INF] Loading configuration from test_workspace/testapp
    [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] Loading configuration from test_workspace/testapp
    [INF] Compiling page page
    [INF] Loading classpath entry test_workspace/ext/src
    [INF] Loading classpath entry test_workspace/packages/ext-theme-base/overrides
    [INF] Loading classpath entry test_workspace/packages/ext-theme-base/src
    [INF] Loading classpath entry test_workspace/packages/ext-theme-neutral/overrides
    [INF] Loading classpath entry test_workspace/packages/ext-theme-neutral/src
    [INF] Loading classpath entry test_workspace/packages/ext-theme-classic/overrides
    [INF] Loading classpath entry test_workspace/packages/ext-theme-classic/src
    [INF] Loading classpath entry test_workspace/packages/ext-theme-classic/overrides
    [INF] Loading classpath entry test_workspace/testapp/app
    [INF] Loading classpath entry test_workspace/testapp/sencha-compile-temp-dir/b9b9ea86-2f67-4b39-b896-a506bb278832
    [INF] generating sass for js compile context
    [INF] 
    [INF] -after-sass:
    [INF] 
    [INF] theme:
    [INF] 
    [INF] -before-theme:
    [INF] 
    [INF] -theme:
    [INF]      [echo] Merging resources from base package ext-theme-classic
    [INF]      [copy] Copying 456 files to test_workspace/build/TestApp/production/resources
    [INF] [shellscript] LoadError on line ["36"] of ~/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb: cannot load such file -- test_workspace/testapp/sass/../packages/ext-theme-base/sass/utils.rb
    [INF] [shellscript]   ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/configuration/data.rb:161:in `require'''
    [INF] [shellscript]   test_workspace/testapp/sass/config.rb:3:in `get_binding'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:24:in `eval'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:24:in `parse_string'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:15:in `block in _parse'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:14:in `open'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:14:in `_parse'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/configuration/file_data.rb:7:in `block in new_from_file'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/configuration/inheritance.rb:204:in `with_defaults'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/configuration/file_data.rb:6:in `new_from_file'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:42:in `configuration_for'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:97:in `add_project_configuration'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/commands/project_base.rb:31:in `add_project_configuration'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/commands/project_base.rb:25:in `configure!'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/commands/project_base.rb:15:in `initialize'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/commands/update_project.rb:37:in `initialize'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:in `new'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:in `perform!'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:in `run!'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/bin/compass:30:in `block in <top (required)>'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/bin/compass:44:in `call'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/gems/compass-0.12.2/bin/compass:44:in `<top (required)>'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/bin/compass:19:in `load'''
    [INF] [shellscript]   ~/.rvm/gems/ruby-1.9.3-p125/bin/compass:19:in `<main>'''
    [ERR] 
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    [ERR] test_workspace/testapp/.sencha/app/build-impl.xml:324: The following error occurred while executing this line:
    [ERR] jar:file:~/util/Sencha/Cmd/3.1.0.130/sencha.jar!/com/sencha/ant/antlib.xml:388: shellscript returned: 1
    [ERR] at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
    [ERR] at com.sencha.cli.Command.dispatch(Command.java:64)
    [ERR] at com.sencha.cli.Commands.dispatch(Commands.java:62)
    [ERR] at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:185)
    [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:57)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [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.AntScript.execute(AntScript.java:113)
    [ERR] at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:77)
    [ERR] at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:118)
    [ERR] at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:49)
    [ERR] at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
    [ERR] at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:110)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [ERR] at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:146)
    [ERR] at com.sencha.cli.Command.dispatch(Command.java:42)
    [ERR] at com.sencha.cli.Commands.dispatch(Commands.java:62)
    [ERR] at com.sencha.cli.Commands.dispatch(Commands.java:62)
    [ERR] at com.sencha.command.Sencha.main(Sencha.java:106)
    [ERR] Caused by: test_workspace/testapp/.sencha/app/build-impl.xml:357: The following error occurred while executing this line:
    [ERR] test_workspace/testapp/.sencha/app/build-impl.xml:324: The following error occurred while executing this line:
    [ERR] jar:file:~/util/Sencha/Cmd/3.1.0.130/sencha.jar!/com/sencha/ant/antlib.xml:388: shellscript returned: 1
    [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.GeneratedMethodAccessor22.invoke(Unknown Source)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [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:85)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [ERR] at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:146)
    [ERR] at com.sencha.cli.Command.dispatch(Command.java:42)
    [ERR] ... 32 more
    [ERR] Caused by: test_workspace/testapp/.sencha/app/build-impl.xml:324: The following error occurred while executing this line:
    [ERR] jar:file:~/util/Sencha/Cmd/3.1.0.130/sencha.jar!/com/sencha/ant/antlib.xml:388: shellscript returned: 1
    [ERR] at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
    [ERR] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:401)
    [ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [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] ... 54 more
    [ERR] Caused by: jar:file:~/util/Sencha/Cmd/3.1.0.130/sencha.jar!/com/sencha/ant/antlib.xml:388: shellscript returned: 1
    [ERR] at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646)
    [ERR] at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
    [ERR] at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
    [ERR] at net.sf.antcontrib.platform.ShellScriptTask.execute(ShellScriptTask.java:132)
    [ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [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.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [ERR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [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.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Dele
    [ERR] gatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [ERR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [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.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    [ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR] at java.lang.reflect.Method.invoke(Method.java:601)
    [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.taskdefs.MacroInstance.execute(MacroInstance.java:398)
    [ERR] ... 66 more
    [ERR] 
    [ERR] Total time: 5 seconds
    [ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    test_workspace/testapp/.sencha/app/build-impl.xml:324: The following error occurred while executing this line:
    jar:file:~/util/Sencha/Cmd/3.1.0.130/sencha.jar!/com/sencha/ant/antlib.xml:388: shellscript returned: 1

    If you edit the config.rb file to include another '..' (so that it points to the packages inside of the workspace), then the application will build okay.

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


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

  3. #3
    Ext JS Premium Member prakashpaudel's Avatar
    Join Date
    May 2009
    Location
    Kathmandu, Nepal
    Posts
    58
    Vote Rating
    0
    prakashpaudel is on a distinguished road

      0  

    Default


    Is any newer builds available with this fix?