PDA

View Full Version : [SenchaCmd-3.0.0.250-osx] Bug in building test build



KoSik
9 Nov 2012, 1:31 AM
Sencha Cmd v3.0.0.250[INF] init-properties:
[INF] init-sencha-command:
[INF] init:
[INF] -before-app-build:
[INF] app-build-impl:
[INF] testing:
[INF] -before-init-local:
[INF] -init-local:
[INF] -after-init-local:
[INF] init-local:
[INF] find-cmd:
[INF] -before-init:
[INF] -init:
[INF] -after-init:
[INF] init:
[INF] -before-build:
[INF] sass:
[INF] -before-sass:
[INF] -sass:
[INF] [shellscript] identical ../css/app.css
[INF] -after-sass:
[INF] page:
[INF] -before-page:
[INF] -page:
[INF] building application
[INF] Deploying your application to /Volumes/HDD/www/iCoordinatorMobile/www/build/iCoordinator/testing
[INF] Copied touch/sencha-touch.js
[INF] Copied library/cordova-2.1.0.js
[INF] Copied library/ChildBrowser.js
[INF] Copied library/jso.js
[INF] Copied library/ExternalFileUtil.js
[INF] Copied app.js
[INF] Copied resources/css/app.css
[INF] Copied resources/css/custom.css
[INF] Copied /Volumes/HDD/www/iCoordinatorMobile/www/resources/images
[INF] Copied /Volumes/HDD/www/iCoordinatorMobile/www/resources/icons
[INF] Copied /Volumes/HDD/www/iCoordinatorMobile/www/resources/startup
[INF] Resolving your application dependencies (http://icoordinator.mobile#no_oauth)
[INF] Compiling app.js and dependencies
[INF] Processing classPath entry : /Volumes/HDD/www/iCoordinatorMobile/www/sencha-compile-temp-dir
[INF] Processing classPath entry : /Volumes/HDD/www/iCoordinatorMobile/www/touch/src
[INF] Processing classPath entry : /Volumes/HDD/www/iCoordinatorMobile/www/app.js
[INF] Processing classPath entry : /Volumes/HDD/www/iCoordinatorMobile/www/app
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( /Volumes/HDD/www/iCoordinatorMobile/www/app/store/TimeIntervalsStore.js => 12 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( /Volumes/HDD/www/iCoordinatorMobile/www/app/model/TimeEntryModel.js => 50 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( /Volumes/HDD/www/iCoordinatorMobile/www/app/store/ActivitiesStore.js => 10 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( /Volumes/HDD/www/iCoordinatorMobile/www/app/store/TimeEntriesStore.js => 15 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( /Volumes/HDD/www/iCoordinatorMobile/www/app/store/TasksStore.js => 17 : 8 )
[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( /Volumes/HDD/www/iCoordinatorMobile/www/app/model/TaskModel.js => 61 : 8 )
[INF] Processing class inheritance graph
[ERR] Failed to resolve dependency Ext.ux.slidenavigation.View for file iCoordinator.view.Main
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
[ERR] /Volumes/HDD/www/iCoordinatorMobile/www/.sencha/app/build-impl.xml:120: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.BasicException: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.ux.slidenavigation.View (<Unknown source>#461) in <Unknown source> at line number 461
[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:58)
[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:87)
[ERR] at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:91)
[ERR] at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:135)
[ERR] at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:106)
[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: /Volumes/HDD/www/iCoordinatorMobile/www/.sencha/app/build-impl.xml:126: The following error occurred while executing this line:
[ERR] /Volumes/HDD/www/iCoordinatorMobile/www/.sencha/app/build-impl.xml:120: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.BasicException: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.ux.slidenavigation.View (<Unknown source>#461) in <Unknown source> at line number 461
[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.GeneratedMethodAccessor8.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: /Volumes/HDD/www/iCoordinatorMobile/www/.sencha/app/build-impl.xml:120: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.BasicException: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.ux.slidenavigation.View (<Unknown source>#461) in <Unknown source> at line number 461
[ERR] at org.apache.tools.ant.util.ReflectUtil.toBuildException(ReflectUtil.java:183)
[ERR] at org.apache.tools.ant.util.ReflectUtil.throwBuildException(ReflectUtil.java:166)
[ERR] at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:110)
[ERR] at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.java:81)
[ERR] at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:103)
[ERR] at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:67)
[ERR] at org.apache.tools.ant.taskdefs.optional.script.ScriptDef.executeScript(ScriptDef.java:350)
[ERR] at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
[ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[ERR] at sun.reflect.GeneratedMethodAccessor8.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] ... 52 more
[ERR] Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.BasicException: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.ux.slidenavigation.View (<Unknown source>#461) in <Unknown source> at line number 461
[ERR] at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:153)
[ERR] at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:167)
[ERR] at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
[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.util.ReflectUtil.invoke(ReflectUtil.java:108)
[ERR] ... 69 more
[ERR] Total time: 13 seconds
[ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
/Volumes/HDD/www/iCoordinatorMobile/www/.sencha/app/build-impl.xml:120: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.BasicException: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.ux.slidenavigation.View (<Unknown source>#461) in <Unknown source> at line number 461

First accured error is:


[ERR] [ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( /Volumes/HDD/www/iCoordinatorMobile/www/app/store/TimeIntervalsStore.js => 12 : 8 )

Here is the code of TimeIntervalsStore.js:

Ext.define('iCoordinator.store.TimeIntervalsStore', { extend: 'Ext.data.Store',
config: {
model: 'iCoordinator.model.TimeIntervalModel',
autoLoad: false,
proxy: {
type: 'rest',
url: '',
writer: {
writeAllFields: false,
nameProperty: 'mapping'
},
reader: {
rootProperty: 'data',
type: 'json'
}
}
},


setProject: function(pid) {
this.getProxy().setUrl(Lib.ApiUrlGenerator.getTimeIntervalsUrl(pid));
this.getProxy().setExtraParam('oauth_token', jso_getToken('iCoordinator'));
}
});

KoSik
21 Nov 2012, 1:51 AM
Any updates on this?

revolunet
10 Dec 2012, 4:06 AM
same here :


[ [2002] : Sencha Compiler Error <> Could not resolve 'type' property from object literal ] :: ( /extjs/js/app/store/ItemStore.js => 21 : 8 )

Yes, my proxy has type: "ajax".

How to fix this ?

angeldimitrov
15 Feb 2013, 11:34 AM
I have the same issue with type:'jsonp'. Any update on this issue?

worthlutz
25 Feb 2013, 5:30 AM
I'm seeing this also:



[ERR] C2002: Sencha Compiler Error (Could not resolve 'type' property from object literal) -- /media/share/Sencha/projects/geoext2/src/GeoExt/openlayers/control/BlendedLayersToolbar.js:9166
[ERR] C2002: Sencha Compiler Error (Could not resolve 'type' property from object literal) -- /media/share/Sencha/projects/geoext2/src/GeoExt/openlayers/control/BlendedLayersToolbar.js:9166


It comes from this portion of the code in a container definition:



layout: {
type: 'vbox',
align: 'stretchmax'
},


Any ideas?

Worth

amackay11
12 Mar 2013, 3:48 AM
+1 on this problem, error with type: 'ajax' for my proxy. Sencha CMD version 3.0.2.288


C2002: Sencha Compiler Error (Could not resolve 'type' property from object literal) --

ejohnsonw
13 Mar 2013, 6:05 AM
1+ on this issue as well

amackay11
14 Mar 2013, 7:17 AM
I added 'type' to my reader, and now I can compile fine:

old

proxy: {
type: 'ajax',
url: 'myurl.svc/blahblah',
reader: {
root: 'Table',
totalProperty: 'results'
}
}
new

proxy: {
type: 'ajax',
url: 'myurl.svc/blahblah',
reader: {
type: 'json',
root: 'Table',
totalProperty: 'results'
}
}

ejohnsonw
14 Mar 2013, 7:31 AM
Thanks!