Feedback and NullPointerException when "sencha app build" on generated ExtJS app
After trying the previous build systems I can say that Cmd v3 is a huge step in the right direction. Keep going.
I've got some feedback on the generated ExtJS app and an exception I can't get past that mikih was also seeing here.
Feedback:- the Main view is generated but not hooked up in the Viewport - seems strange and incomplete but easy to correct
- the app.js contains a view: ["Main"] - shouldn't this be on the Main.js controller?
- Main.js view would/should have an alias defined, e.g. "widget:Main" ?
- The template code uses double quotes for the views and controllers arrays, i.e. substituted text...is this a 'standard' or an artifact of the template processing? When should one use single vs double quotes? Does it matter?
Here's the dump of my app build - this is a stock, i.e. done immediately after a 'sencha generate app MyApp test1'....any ideas what I'm doing wrong?
Code:
$ sencha --debug app build
Sencha Cmd v3.0.0.141
[DEBUG] located plugin /Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current/plugin.xml
[INFO ] init-properties:
[INFO ] init-antcontrib:
[INFO ] init-sencha-command:
[INFO ] init:
[INFO ] -before-app-build:
[INFO ] app-build-impl:
[INFO ] [delete] Deleting directory /Users/hjones/test1/build
[INFO ] [exec] identical app.css
[INFO ] [copy] Copying 1 file to /Users/hjones/test1/build
[INFO ] Compressed 0 of 1 (1 up to date)
[DEBUG] found sencha.cfg at /Users/hjones/bin/Sencha/Cmd/3.0.0.141
[DEBUG] found workspace at /Users/hjones/test1/.sencha/workspace
[DEBUG] found app at /Users/hjones/test1/.sencha/app
[DEBUG] loading framework config from /Users/hjones/test1/ext
[DEBUG] found cmd at /Users/hjones/test1/ext/cmd
[DEBUG] Checking for framework config overrides
[DEBUG] resolving framework config overrides for 'ext'
[DEBUG] Detected framework version 4.1.1
[DEBUG] detected framework override at '/Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current'
[DEBUG] using framework config override '/Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current'
[DEBUG] found sencha.cfg at /Users/hjones/bin/Sencha/Cmd/3.0.0.141
[DEBUG] found cmd at /Users/hjones/Documents/extjs/ext-4.1.1a/cmd
[DEBUG] Checking for framework config overrides
[DEBUG] resolving framework config overrides for 'ext'
[DEBUG] Detected framework version 4.1.1
[DEBUG] detected framework override at '/Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current'
[DEBUG] using framework config override '/Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current'
[INFO ] Building theme
[INFO ] Capturing theme image
[DEBUG] runngin script at /Users/hjones/bin/Sencha/Cmd/3.0.0.141/screenshot-runner.js
[DEBUG] using path /Users/hjones/bin/Sencha/Cmd/3.0.0.141/phantomjs:/Users/hjones/bin/Sencha/Cmd/3.0.0.141/phantomjs/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/hjones/bin/Sencha/Cmd/3.0.0.141
[DEBUG] executable located at /Users/hjones/bin/Sencha/Cmd/3.0.0.141/phantomjs/phantomjs
[DEBUG] using workding directory .
loading page resources/theme/default/theme.html
capturing screenshot
capturing widget location data
widget capture complete
[DEBUG] exit code was : 0
[DEBUG] exit code was : 0
[INFO ] Capture complete
[INFO ] Slicing theme
[DEBUG] Saving sprite build/resources/images/default/menu/menu-item-active-corners
[DEBUG] Saving sprite build/resources/images/default/menu/menu-item-active-sides
[DEBUG] Saving sprite build/resources/images/default/menu/menu-item-active-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-over-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-over-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-over-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-focus-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-focus-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-focus-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-pressed-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-pressed-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-pressed-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-disabled-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-disabled-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-small-disabled-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-over-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-over-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-over-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-focus-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-focus-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-focus-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-pressed-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-pressed-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-pressed-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-disabled-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-disabled-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-medium-disabled-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-over-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-over-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-over-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-focus-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-focus-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-focus-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-pressed-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-pressed-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-pressed-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-disabled-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-disabled-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-large-disabled-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-over-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-over-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-over-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-focus-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-focus-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-focus-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-pressed-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-pressed-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-pressed-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-disabled-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-small-disabled-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-over-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-over-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-over-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-focus-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-focus-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-focus-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-pressed-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-pressed-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-pressed-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-disabled-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-medium-disabled-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-over-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-over-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-over-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-focus-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-focus-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-focus-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-pressed-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-pressed-sides
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-pressed-bg
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-disabled-corners
[DEBUG] Saving sprite build/resources/images/default/btn/btn-default-toolbar-large-disabled-sides
[DEBUG] Saving sprite build/resources/images/default/toolbar/toolbar-default-bg
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-top-corners
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-top-sides
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-top-bg
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-bottom-corners
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-bottom-sides
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-bottom-bg
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-left-corners
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-left-sides
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-left-bg
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-right-corners
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-right-sides
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-right-bg
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-collapsed-top-corners
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-collapsed-top-sides
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-collapsed-top-bg
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-collapsed-bottom-corners
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-collapsed-bottom-sides
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-collapsed-bottom-bg
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-collapsed-left-corners
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-collapsed-left-sides
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-collapsed-left-bg
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-collapsed-right-corners
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-collapsed-right-sides
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-framed-collapsed-right-bg
[DEBUG] Saving sprite build/resources/images/default/panel/panel-default-framed-corners
[DEBUG] Saving sprite build/resources/images/default/panel/panel-default-framed-sides
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-top-bg
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-bottom-bg
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-left-bg
[DEBUG] Saving sprite build/resources/images/default/panel-header/panel-header-default-right-bg
[DEBUG] Saving sprite build/resources/images/default/window-header/window-header-default-top-corners
[DEBUG] Saving sprite build/resources/images/default/window-header/window-header-default-top-sides
[DEBUG] Saving sprite build/resources/images/default/window-header/window-header-default-bottom-corners
[DEBUG] Saving sprite build/resources/images/default/window-header/window-header-default-bottom-sides
[DEBUG] Saving sprite build/resources/images/default/window-header/window-header-default-left-corners
[DEBUG] Saving sprite build/resources/images/default/window-header/window-header-default-left-sides
[DEBUG] Saving sprite build/resources/images/default/window-header/window-header-default-right-corners
[DEBUG] Saving sprite build/resources/images/default/window-header/window-header-default-right-sides
[DEBUG] Saving sprite build/resources/images/default/window/window-default-corners
[DEBUG] Saving sprite build/resources/images/default/window/window-default-sides
[DEBUG] Saving sprite build/resources/images/default/tab-bar/tab-bar-default-bg
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-top-corners
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-top-sides
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-top-bg
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-top-active-corners
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-top-active-sides
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-top-active-bg
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-top-over-corners
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-top-over-sides
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-top-over-bg
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-top-disabled-corners
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-top-disabled-sides
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-top-disabled-bg
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-bottom-corners
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-bottom-sides
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-bottom-bg
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-bottom-active-corners
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-bottom-active-sides
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-bottom-active-bg
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-bottom-over-corners
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-bottom-over-sides
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-bottom-over-bg
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-bottom-disabled-corners
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-bottom-disabled-sides
[DEBUG] Saving sprite build/resources/images/default/tab/tab-default-bottom-disabled-bg
[DEBUG] Saving sprite build/resources/images/default/progress/progress-default-bg
[DEBUG] Saving sprite build/resources/images/default/btn-group/btn-group-default-framed-notitle-corners
[DEBUG] Saving sprite build/resources/images/default/btn-group/btn-group-default-framed-notitle-sides
[DEBUG] Saving sprite build/resources/images/default/btn-group/btn-group-default-framed-corners
[DEBUG] Saving sprite build/resources/images/default/btn-group/btn-group-default-framed-sides
[DEBUG] Saving sprite build/resources/images/default/tip/tip-corners
[DEBUG] Saving sprite build/resources/images/default/tip/tip-sides
[DEBUG] Saving sprite build/resources/images/default/form-invalid-tip/form-invalid-tip-corners
[DEBUG] Saving sprite build/resources/images/default/form-invalid-tip/form-invalid-tip-sides
[DEBUG] Saving sprite build/resources/images/default/grid/column-header-bg
[DEBUG] Saving sprite build/resources/images/default/grid/column-header-over-bg
[DEBUG] Saving sprite build/resources/images/default/datepicker/datepicker-header-bg
[DEBUG] Saving sprite build/resources/images/default/datepicker/datepicker-footer-bg
[INFO ] Slice complete
[INFO ] Build complete
[DEBUG] found sencha.cfg at /Users/hjones/bin/Sencha/Cmd/3.0.0.141
[DEBUG] found workspace at /Users/hjones/test1/.sencha/workspace
[DEBUG] found app at /Users/hjones/test1/.sencha/app
[DEBUG] loading framework config from /Users/hjones/test1/ext
[DEBUG] found cmd at /Users/hjones/test1/ext/cmd
[DEBUG] Checking for framework config overrides
[DEBUG] resolving framework config overrides for 'ext'
[DEBUG] Detected framework version 4.1.1
[DEBUG] detected framework override at '/Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current'
[DEBUG] using framework config override '/Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current'
[DEBUG] found sencha.cfg at /Users/hjones/bin/Sencha/Cmd/3.0.0.141
[DEBUG] found cmd at /Users/hjones/Documents/extjs/ext-4.1.1a/cmd
[DEBUG] Checking for framework config overrides
[DEBUG] resolving framework config overrides for 'ext'
[DEBUG] Detected framework version 4.1.1
[DEBUG] detected framework override at '/Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current'
[DEBUG] using framework config override '/Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current'
[DEBUG] found sencha.cfg at /Users/hjones/bin/Sencha/Cmd/3.0.0.141
[DEBUG] found workspace at /Users/hjones/test1/.sencha/workspace
[DEBUG] found app at /Users/hjones/test1/.sencha/app
[DEBUG] loading framework config from /Users/hjones/test1/ext
[DEBUG] found cmd at /Users/hjones/test1/ext/cmd
[DEBUG] Checking for framework config overrides
[DEBUG] resolving framework config overrides for 'ext'
[DEBUG] Detected framework version 4.1.1
[DEBUG] detected framework override at '/Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current'
[DEBUG] using framework config override '/Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current'
[DEBUG] Creating temporary directory /Users/hjones/test1/sencha-compile-temp-dir
[INFO ] Compiling page null
[DEBUG] Found begin directive x-compile
[DEBUG] Found begin directive x-bootstrap
[DEBUG] Found end directive x-bootstrap
[DEBUG] Found end directive x-compile
[DEBUG] writing html file output to /Users/hjones/test1/build/index.html
[DEBUG] writing script output to /Users/hjones/test1/sencha-compile-temp-dir/c25eb4c0-7d08-4f77-ac0e-bd5da49db12a/script-file-1.js
[DEBUG] adding implicit dependency for Ext.application call
[DEBUG] Creating virtual class definition Huw.app.Application
[DEBUG] adding implicit requires for Huw.view.Viewport
[DEBUG] no name specified, compiling page immediately
[DEBUG] loading class paths...
[INFO ] Processing classPath entry : /Users/hjones/test1/sencha-compile-temp-dir
[INFO ] Processing classPath entry : /Users/hjones/Documents/extjs/ext-4.1.1a/src
[DEBUG] calculating dependency graph...
[DEBUG] Loading implicit dependencies file /Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current/implicitClassDependencies.json
[DEBUG] Adding implicit dependency for Ext.Component
[DEBUG] Adding implicit dependency for Ext.container.AbstractContainer
[DEBUG] Adding implicit dependency for Ext.data.Model
[DEBUG] Adding implicit dependency for Ext.data.proxy.Proxy
[DEBUG] Adding implicit dependency for Ext.data.proxy.Proxy
[DEBUG] Adding implicit dependency for Ext.data.Store
[DEBUG] Adding implicit dependency for Ext.data.Store
[DEBUG] Adding implicit dependency for Ext.app.Controller
[DEBUG] Adding implicit dependency for Ext.app.Controller
[DEBUG] Adding implicit dependency for Ext.app.Controller
[DEBUG] Adding implicit dependency for Ext.app.Application
[DEBUG] Adding implicit dependency for Ext.app.Application
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Fit to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/tree/Panel.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Dock to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/tree/Panel.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Tab to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/tab/Tab.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Button to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/button/Button.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/grid/column/Date.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.grid.ColumnComponentLayout to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/grid/column/Date.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.Trigger to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/field/Trigger.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/tip/QuickTip.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Dock to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/tip/QuickTip.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.ComboBox to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/field/ComboBox.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/dd/StatusProxy.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.Field to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/field/Checkbox.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.Trigger to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/field/File.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.Slider to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/slider/Single.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/grid/property/HeaderContainer.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/grid/property/HeaderContainer.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/tab/Bar.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Body to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/tab/Bar.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/panel/Tool.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.view.TableLayout to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/tree/View.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/toolbar/Separator.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.Trigger to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/field/Date.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/menu/DatePicker.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Dock to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/menu/DatePicker.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.Trigger to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/field/Picker.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/view/View.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/picker/Month.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/container/Container.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/container/Container.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/resizer/Handle.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/tab/Panel.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Dock to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/tab/Panel.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Draw to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/chart/Chart.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Anchor to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/grid/RowEditor.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Dock to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/grid/RowEditor.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.ProgressBar to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/ProgressBar.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/picker/Date.js
[DEBUG] Adding implicit dependency on Ext.data.proxy.Proxy for Ext.data.reader.Json to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/data/proxy/JsonP.js
[DEBUG] Adding implicit dependency on Ext.data.proxy.Proxy for Ext.data.writer.Writer to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/data/proxy/JsonP.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/menu/Item.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.Field to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/field/Hidden.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/FieldContainer.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.FieldContainer to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/FieldContainer.js
[DEBUG] Adding implicit dependency on Ext.data.proxy.Proxy for Ext.data.reader.Json to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/data/proxy/Server.js
[DEBUG] Adding implicit dependency on Ext.data.proxy.Proxy for Ext.data.writer.Json to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/data/proxy/Server.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/grid/column/Column.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.grid.ColumnComponentLayout to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/grid/column/Column.js
[DEBUG] Adding implicit dependency on Ext.data.proxy.Proxy for Ext.data.reader.Json to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/data/proxy/Ajax.js
[DEBUG] Adding implicit dependency on Ext.data.proxy.Proxy for Ext.data.writer.Json to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/data/proxy/Ajax.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/Label.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Anchor to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/FieldSet.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.FieldSet to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/FieldSet.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.CheckboxGroup to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/CheckboxGroup.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.FieldContainer to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/CheckboxGroup.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/panel/Header.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Body to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/panel/Header.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.ComboBox to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/field/Time.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Button to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/button/Cycle.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/grid/column/Template.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.grid.ColumnComponentLayout to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/grid/column/Template.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/resizer/Splitter.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Draw to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/draw/Text.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.VBox to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/window/MessageBox.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Dock to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/window/MessageBox.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.view.TableLayout to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/view/Table.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.view.TableLayout to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/grid/View.js
[DEBUG] Adding implicit dependency on Ext.container.AbstractContainer for Ext.layout.container.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/container/Viewport.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/container/Viewport.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.Text to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/field/Text.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.BoundList to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/view/BoundList.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.field.HtmlEditor to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/form/field/HtmlEditor.js
[DEBUG] Adding implicit dependency on Ext.Component for Ext.layout.component.Auto to file /Users/hjones/Documents/extjs/ext-4.1.1a/src/chart/MaskLayer.js
[DEBUG] Adding implicit dependency on Ext.app.Application for Huw.controller.Main to file /Users/hjones/test1/app/app.js
[ERROR] Error executing page compilation null
[DEBUG] removing tempdir /Users/hjones/test1/sencha-compile-temp-dir
[ERROR] BUILD FAILEDcom.sencha.exceptions.ExBuild: java.lang.NullPointerException at com.sencha.command.compile.CompileCommands$PageCommand.execute(CompileCommands.java:863) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sencha.cli.Command.dispatch(Command.java:78) at com.sencha.cli.Commands.dispatch(Commands.java:49) at com.sencha.cli.Commands.dispatch(Commands.java:49) at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:184) at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:59) at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:21) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:392) at org.apache.tools.ant.Target.performTasks(Target.java:413) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at com.sencha.ant.AntRunner.run(AntRunner.java:156) at com.sencha.ant.AntRunner.run(AntRunner.java:72) at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:60) at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:95) at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sencha.cli.Command.dispatch(Command.java:78) at com.sencha.cli.Commands.dispatch(Commands.java:49) at com.sencha.cli.Commands.dispatch(Commands.java:49) at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:184) at com.sencha.command.Sencha.main(Sencha.java:57)Caused by: java.lang.NullPointerException at com.sencha.tools.compiler.MetaClassDefinition.addImplicitRequirement(MetaClassDefinition.java:450) at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:671) at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:682) at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:751) at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:778) at com.sencha.tools.compiler.sources.SourceFileCache.resolveImplicitDependencies(SourceFileCache.java:443) at com.sencha.command.compile.CompileCommands.getCache(CompileCommands.java:168) at com.sencha.command.compile.CompileCommands.getCache(CompileCommands.java:129) at com.sencha.command.compile.CompileCommands$PageCommand.execute(CompileCommands.java:848) ... 36 moreTotal time: 13 seconds
[ERROR] com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: java.lang.NullPointerException
com.sencha.exceptions.BasicException: com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: java.lang.NullPointerException
at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
at com.sencha.cli.Command.dispatch(Command.java:104)
at com.sencha.cli.Commands.dispatch(Commands.java:49)
at com.sencha.cli.Commands.dispatch(Commands.java:49)
at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:184)
at com.sencha.command.Sencha.main(Sencha.java:57)
Caused by: /Users/hjones/bin/Sencha/Cmd/3.0.0.141/plugins/ext/current/plugin.xml:277: com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: java.lang.NullPointerException
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at com.sencha.ant.AntRunner.run(AntRunner.java:156)
at com.sencha.ant.AntRunner.run(AntRunner.java:72)
at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:60)
at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:95)
at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sencha.cli.Command.dispatch(Command.java:78)
... 4 more
Caused by: com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: java.lang.NullPointerException
at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:25)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
... 21 more
Caused by: com.sencha.exceptions.ExBuild: java.lang.NullPointerException
at com.sencha.command.compile.CompileCommands$PageCommand.execute(CompileCommands.java:863)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sencha.cli.Command.dispatch(Command.java:78)
at com.sencha.cli.Commands.dispatch(Commands.java:49)
at com.sencha.cli.Commands.dispatch(Commands.java:49)
at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:184)
at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:59)
at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:21)
... 26 more
Caused by: java.lang.NullPointerException
at com.sencha.tools.compiler.MetaClassDefinition.addImplicitRequirement(MetaClassDefinition.java:450)
at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:671)
at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:682)
at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:751)
at com.sencha.tools.compiler.MetaClassDefinition.resolveImplicitDependencies(MetaClassDefinition.java:778)
at com.sencha.tools.compiler.sources.SourceFileCache.resolveImplicitDependencies(SourceFileCache.java:443)
at com.sencha.command.compile.CompileCommands.getCache(CompileCommands.java:168)
at com.sencha.command.compile.CompileCommands.getCache(CompileCommands.java:129)
at com.sencha.command.compile.CompileCommands$PageCommand.execute(CompileCommands.java:848)
... 36 more
Some progress with build 181 (Sep 27) BUT 'Unable to locate 'app.dir' config property
The NullPointerException I was seeing with build 141 while doing a 'sencha app build' immediately after generating the raw MyApp has gone - yay!...but it doesn't appear to have done the equivalent build...Compass and sprite tasks seemed to have been skipped.
Also, when I go in to the build folder and launch the index.html it doesn't load because the all-classes.js path is off. The compiler puts my files under a sub-folder (defaults to MyApp) and this is missing from the script tag. Thats easy enough to fix manually...but should be fixed.
My steps are...
Code:
sencha generate app MyApp test3
cd test3
sencha app build > no NullPointerException :) but appears incomplete
sencha ant testing build
Sencha Cmd v3.0.0.181
[ERROR] Target "testing" does not exist in the project "@@@".
sencha ant production build
Sencha Cmd v3.0.0.181
[ERROR] Target "production" does not exist in the project "@@@".
Now trying 'sencha ant build' appears to do what 'sencha app build' did in build 141...Compass and sprite tasks are run...
Code:
sencha ant build
Sencha Cmd v3.0.0.181
[INFO ] -before-init-local:
[INFO ] -init-local:
[INFO ] -after-init-local:
[INFO ] init-local:
[INFO ] find-cmd:
[INFO ] -before-init:
[INFO ] -init:
[INFO ] -after-init:
[INFO ] init:
[INFO ] -before-build:
[INFO ] sass:
[INFO ] -before-sass:
[INFO ] -sass:
[INFO ] [shellscript] identical resources/css/default/app.css
[INFO ] [copy] Copying 1 file to /Users/hjones/test3/build/MyApp
[INFO ] Compressed 0 of 1 (1 up to date)
[INFO ] -after-sass:
[INFO ] theme:
[INFO ] -before-theme:
[INFO ] -theme:
[INFO ] Building theme
[INFO ] Capturing theme image
[INFO ] Capture complete
[INFO ] Slicing theme
[INFO ] Slice complete
[INFO ] Build complete
[INFO ] -after-theme:
[INFO ] page:
[INFO ] -before-page:
[INFO ] -page:
[ERROR] Unable to locate 'app.dir' config property from sencha.cfg
[ERROR] Please ensure this command was executed from a valid application directory
[ERROR] BUILD FAILED
[ERROR] com.sencha.exceptions.ExState: Non-appliaction directory
[ERROR] at com.sencha.command.app.AppCommands$BaseLocalCommand.validateCurrentConfig(AppCommands.java:40)
[ERROR] at com.sencha.command.app.AppCommands$BuildCommand.validateCurrentConfig(AppCommands.java:46)
[ERROR] at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:56)
[ERROR] at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:102)
[ERROR] at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:96)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at com.sencha.cli.Command.dispatch(Command.java:78)
[ERROR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
[ERROR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
[ERROR] at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:184)
[ERROR] at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:59)
[ERROR] at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:21)
[ERROR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[ERROR] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[ERROR] at org.apache.tools.ant.Task.perform(Task.java:348)
[ERROR] at org.apache.tools.ant.Target.execute(Target.java:392)
[ERROR] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[ERROR] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[ERROR] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[ERROR] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[ERROR] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
[ERROR] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[ERROR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[ERROR] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[ERROR] at org.apache.tools.ant.Task.perform(Task.java:348)
[ERROR] at org.apache.tools.ant.Target.execute(Target.java:392)
[ERROR] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[ERROR] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[ERROR] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[ERROR] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[ERROR] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[ERROR] at com.sencha.ant.AntRunner.run(AntRunner.java:156)
[ERROR] at com.sencha.ant.AntRunner.run(AntRunner.java:80)
[ERROR] at com.sencha.command.ant.AntCommand.execute(AntCommand.java:74)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at com.sencha.cli.Command.dispatch(Command.java:78)
[ERROR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
[ERROR] at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:184)
[ERROR] at com.sencha.command.Sencha.main(Sencha.java:58)
[ERROR] Total time: 10 seconds
[ERROR] The following error occurred while executing this line:
/Users/hjones/test3/.sencha/app/build-impl.xml:173: com.sencha.exceptions.ExState: Non-appliaction directory
...but we have a new Exception: Unable to locate 'app.dir' config property from sencha.cfg
My app-local sencha.cfg (/test3/.sencha/app) contains the following...
Code:
app.name=MyApp
app.framework=ext
app.classpath=${app.dir}/app
Clearly, app.dir is missing. Is this something that I should supply or the generate command should have inserted?
More info regarding failure to find 'app.dir' config property in sencha.cfg
Here's some more detail...
Code:
Huws-MacBook-Pro:testapp huwjones$ pwd
/Users/huwjones/testapp
Huws-MacBook-Pro:testapp huwjones$ sencha --debug app refresh
Sencha Cmd v3.0.0.181
[ERROR] Unable to locate 'app.dir' config property from sencha.cfg
[ERROR] Please ensure this command was executed from a valid application directory
[ERROR] Non-appliaction directory
com.sencha.exceptions.ExState: Non-appliaction directory
at com.sencha.command.app.AppCommands$BaseLocalCommand.validateCurrentConfig(AppCommands.java:40)
at com.sencha.command.app.AppCommands$RefreshCommand.validateCurrentConfig(AppCommands.java:192)
at com.sencha.command.app.AppCommands$RefreshCommand.execute(AppCommands.java:218)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sencha.cli.Command.dispatch(Command.java:78)
at com.sencha.cli.Commands.dispatch(Commands.java:49)
at com.sencha.cli.Commands.dispatch(Commands.java:49)
at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:184)
at com.sencha.command.Sencha.main(Sencha.java:58)
I'm running the refresh command from inside the testapp folder...this folder was created using...
Code:
sencha generate app MyApp ./testapp
I've installed Cmd in the recommended location...
Code:
/Users/huwjones/bin/Sencha/Cmd/3.0.0.181
and the sencha.cfg file contains the following...
Code:
# This is the Sencha Cmd version. By defining this property, we are declaring this
# folder to be a Sencha Cmd installation folder.
cmd.version=3.0.0.181
# This version indicates the level of backwards compatibility provided. That is to say,
# users requiring versions between tools.minver and tools.version (inclusive) should be
# able to use this version.
cmd.minver=3.0.0.0
cmd.jvm.args=-Xms128m -Xmx512m
sencha#sdk=/Users/huwjones/bin/Sencha/sdk/ext-4.1.1a
NOTE: I added the sdk path here so I don't have to keep specifying it on the command line
My .bashrc and .profile files contain the following exports...
Code:
export PATH=/Users/huwjones/bin/Sencha/Cmd/3.0.0.181:$PATH
export SENCHA_CMD_3_0_0="/Users/huwjones/bin/Sencha/Cmd/3.0.0.181"
I'm going to try and get my hands on a newer sdk release, e.g. 4.1.2a and see if that changes things.