-
19 Oct 2012 5:36 AM #1
SenchaCmd v3.0.0.190 - Build Failed: "Failed to find any files for ..."
SenchaCmd v3.0.0.190 - Build Failed: "Failed to find any files for ..."
Hi,
I'm trying to build my app with the Sencha Cmd v3.0.0.190 on MacOs X, but cannot succeed.
Everytime I get an error for missing Dependencies.
I'm using Ext 4.1.1a and wrote an Ux-Class and the Build-Tool cannot resolve my path.
Running "sencha app build" from the application root. (not /app-Folder)
I've addedto my app.js, and if I open the application within a Browser everything works fine.Code:Ext.Loader.setPath('Dbc.ux.form.field', 'Dbc/ux/form/field');
Is there something I've missed?
Code:Sencha Cmd v3.0.0.190[INFO ] init-properties: [INFO ] init-sencha-command: [INFO ] init: [INFO ] -before-app-build: [INFO ] app-build-impl: [INFO ] Compiling page null [INFO ] Processing classPath entry : /Users/lars/Desktop/htdocs/v6.1.telefonica.0/standard/std/dbc/quickAccess/sencha-compile-temp-dir [INFO ] Processing classPath entry : /Users/lars/Desktop/htdocs/v6.1.telefonica.0/standard/std/dbc/quickAccess/ext/src [INFO ] Processing classPath entry : /Users/lars/Desktop/htdocs/v6.1.telefonica.0/standard/std/dbc/quickAccess/app [WARN ] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal in an ECMA-262 object initializer => ] ] :: ( /Users/lars/Desktop/htdocs/v6.1.telefonica.0/standard/std/dbc/quickAccess/ext/src/ux/grid/filter/DateFilter.js => 133 : 25 ) [INFO ] Processing class inheritance graph [INFO ] Processing instantiation refereces to classes and aliases [WARN ] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal in an ECMA-262 object initializer => ] ] :: ( /Users/lars/Desktop/htdocs/v6.1.telefonica.0/standard/std/dbc/quickAccess/ext/src/ux/grid/filter/DateFilter.js => 133 : 25 ) [INFO ] Processing source dependencies [ERROR] Failed to find file for Dbc.ux.form.field.SearchTrigger required by /Users/lars/Desktop/htdocs/v6.1.telefonica.0/standard/std/dbc/quickAccess/app/view/seminar/SeminarSearch.js [ERROR] Error executing page compilation com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: Failed to find any files for Dbc.ux.form.field.SearchTrigger [ERROR] BUILD FAILED [ERROR] com.sencha.exceptions.ExBuild: com.sencha.exceptions.BasicException: com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: Failed to find any files for Dbc.ux.form.field.SearchTrigger
-
23 Oct 2012 7:41 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
Do you have the Ext.Loader.setPath('Dbc.ux.form.field', 'Dbc/ux/form/field'); within the //<debug and //</debug>? Should work fine but you can try to move it outside the comments
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
23 Oct 2012 11:43 PM #3
I don't use any //debug comments.
My app.js starts with:
Code:Ext.Loader.setPath('Dbc.ux.form.field', 'Dbc/ux/form/field');Ext.application({ name: 'QuickAccess', requires:[ 'Ext.state.Manager', 'Ext.state.CookieProvider'...
I've found a solution, that builds my app - but I don't know if it is the right way.
Edited the .sencha/workspace/sencha.cfg and added
With this line I don't need to use "setPath"Code:workspace.classpath=${workspace.dir}/Dbc
-
24 Oct 2012 11:32 PM #4
Using the classpath is the ideal solution for the compiler. There are two you can use here. The one you found would apply to all applications in the workspace. If you only have the one application then the workspace and application folders are probably the one and the same. The other location is in the ".sencha/app/sencha.cfg" file.
For reference, these files in the ".sencha" folder can be used by any application even ones not generated by Sencha Cmd. The easiest way to create them is to generate a dummy app and copy the ".sencha" folder.Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
24 Oct 2012 11:35 PM #5
I should mention that for generated applications, the set of all files and their aliases etc are tracked in a "bootstrap" file. The "sencha app refresh" updates this and should be run if new files are added, files are removed or other file system changes may invalidate this data.
You can decide if the bootstrap file should be version controlled or generated locally but ignored.
You can also manually create such a file using the compiler. See http://docs.sencha.com/ext-js/4-1/#!...and_app_single for a start on that in a non-generate app.Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
16 Dec 2012 11:58 AM #6
I arrived at the same idea but it's not flying for me.
Code:steward$ sencha compile -classpath=ext4/src,ext4/examples/ux/grid,util,lib,upc/app, \ > concat build/upc/wtf.js Sencha Cmd v3.0.0.250 [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/sencha-compile-temp-dir [INF] Processing classPath entry : ext4/src [INF] Processing classPath entry : ext4/examples/ux/grid [INF] Processing classPath entry : util [INF] Processing classPath entry : lib [INF] Processing classPath entry : upc/app [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/app [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/util [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/ext4/examples/ux/grid [INF] Processing class inheritance graph [INF] Processing instantiation refereces to classes and aliases [INF] Processing source dependencies [ERR] Failed to find file for Ext.ux.grid.FiltersFeature.js required by /home/steward/public_html/apps/MBH/upc/app/view/JobGrid.js [ERR] Failed to find any files for Ext.ux.grid.FiltersFeature.js steward$
I don't know what to ask. Please, any hint.
-
16 Dec 2012 2:28 PM #7
Try running with the -debug switch:
The output will be a lot larger, but hopefully there will be something of a clue in there about the mysteriously missing class.Code:sencha -debug compile ...
Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
16 Dec 2012 2:30 PM #8
I would also recommend looking at MBH/upc/app/view/JobGrid.js to see how it references the class just in case there is a typo. Though it looks right from what I can tell.
Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
16 Dec 2012 3:23 PM #9
Thanks for a reply.
That works but does not include the features (they all load at runtime).Code:requires: [ 'Ext.ux.grid.FiltersFeature.js', 'Ext.ux.grid.menu/ListMenu.js', 'Ext.ux.grid.menu/RangeMenu.js', 'Ext.ux.grid.filter/BooleanFilter.js', 'Ext.ux.grid.filter/Filter.js', 'Ext.ux.grid.filter/DateFilter.js', 'Ext.ux.grid.filter/ListFilter.js', 'Ext.ux.grid.filter/NumericFilter.js', 'Ext.ux.grid.filter/StringFilter.js' ], hankBook:MBH steward$ ./ccupc Sencha Cmd v3.0.0.250 [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/sencha-compile-temp-dir [INF] Processing classPath entry : ext4/src [INF] Processing classPath entry : ext4/examples/ux/grid [INF] Processing classPath entry : util [INF] Processing classPath entry : lib [INF] Processing classPath entry : upc/app [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/app [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/util [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/ext4/examples/ux/grid [INF] Processing class inheritance graph [INF] Processing instantiation refereces to classes and aliases [INF] Processing source dependencies [INF] Compressing data with YuiJavascriptCompressor [INF] Concatenating output to file build/upc/all-classes.js
Code:requires:'Ext.ux.grid.*', hankBook:MBH steward$ ./ccupc Sencha Cmd v3.0.0.250 [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/sencha-compile-temp-dir [INF] Processing classPath entry : ext4/src [INF] Processing classPath entry : ext4/examples/ux/grid [INF] Processing classPath entry : util [INF] Processing classPath entry : lib [INF] Processing classPath entry : upc/app [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/app [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/util [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/ext4/examples/ux/grid [INF] Processing class inheritance graph [INF] Processing instantiation refereces to classes and aliases [INF] Processing source dependencies [ERR] Failed to find file for Ext.ux.grid.FiltersFeature.js required by /home/steward/public_html/apps/MBH/upc/app/view/JobGrid.js [ERR] com.sencha.exceptions.ExBuild: Failed to find any files for Ext.ux.grid.FiltersFeature.js hankBook:MBH steward$
The debug:
Debug suggested I addCode:Sencha Cmd v3.0.0.250 ... [DBG] found sencha.cfg at /Users/steward/bin/Sencha/Cmd/3.0.0.250 [DBG] found workspace at /home/steward/public_html/apps/MBH/.sencha/workspace [DBG] Checking for framework config overrides [DBG] Creating temporary directory /home/steward/public_html/apps/MBH/sencha-compile-temp-dir [DBG] setting parse options [DBG] loading class paths... [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/sencha-compile-temp-dir [INF] Processing classPath entry : ext4/src [INF] Processing classPath entry : ext4/examples/ux/grid [INF] Processing classPath entry : util [INF] Processing classPath entry : lib [INF] Processing classPath entry : upc/app [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/app [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/util [INF] Processing classPath entry : /home/steward/public_html/apps/MBH/ext4/examples/ux/grid ... [DBG] Detected instantiation reference to Ext.util.MixedCollection in file /home/steward/public_html/apps/MBH/ext4/src/ux/grid/FiltersFeature.js [DBG] [ [1001] : Class was referenced but not explicitly required <> Ext.util.MixedCollection ] :: ( /home/steward/public_html/ext-4.1.2a/src/ux/grid/FiltersFeature.js => 209 : 11 ) [DBG] Adding dynamic requirement on Ext.util.MixedCollection to FiltersFeature.js as a 'uses' [DBG] Detected instantiation reference to Ext.util.Observable in file /home/steward/public_html/apps/MBH/ext4/src/ux/grid/FiltersFeature.js [DBG] Detected Ext.create call ... [DBG] Detected instantiation reference to Ext.util.MixedCollection in file /home/steward/public_html/apps/MBH/ext4/examples/ux/grid/FiltersFeature.js [DBG] [ [1001] : Class was referenced but not explicitly required <> Ext.util.MixedCollection ] :: ( /home/steward/public_html/ext-4.1.2a/examples/ux/grid/FiltersFeature.js => 209 : 11 ) [DBG] Adding dynamic requirement on Ext.util.MixedCollection to FiltersFeature.js as a 'uses' [DBG] Detected instantiation reference to Ext.util.Observable in file /home/steward/public_html/apps/MBH/ext4/examples/ux/grid/FiltersFeature.js ... [DBG] Detected Ext.create call [DBG] Detected instantiation reference to Ext.ux.grid.FiltersFeature in file /home/steward/public_html/apps/MBH/upc/app/view/JobGrid.js [DBG] [ [1001] : Class was referenced but not explicitly required <> Ext.ux.grid.FiltersFeature ] :: ( /home/steward/public_html/apps/MBH/upc/app/view/JobGrid.js => 141 : 11 ) [DBG] Adding dynamic requirement on Ext.ux.grid.FiltersFeature to JobGrid.js as a 'uses' ... [INF] Processing source dependencies [DBG] processing 516 source files ... [DBG] Processing dependencies for file: FiltersFeature.js ... [DBG] Processing dependencies for file: FiltersFeature.js ... [DBG] Processing dependencies for file: JobGrid.js [ERR] Failed to find file for Ext.ux.grid.FiltersFeature.js required by /home/steward/public_html/apps/MBH/upc/app/view/JobGrid.js [DBG] com.sencha.exceptions.ExBuild [DBG] removing tempdir /home/steward/public_html/apps/MBH/sencha-compile-temp-dir [ERR] com.sencha.exceptions.ExBuild: Failed to find any files for Ext.ux.grid.FiltersFeature.js
but that seems to make no diff.Code:uses:'Ext.ux.grid.FiltersFeature.js',
Don I am making some progress with cmd but it's very very slow and painful.
Meantime I need to produce something. Is there any way to "just do it"?
I will cheerfully create a hand-crafted list of what I want (there are so few at this time)
Do we have to go back to jsb3 files for that?
-
16 Dec 2012 3:28 PM #10
You should specify "requires" and "uses" as class names not file names. Try this:
This should also work:Code:requires: [ 'Ext.ux.grid.FiltersFeature', 'Ext.ux.grid.menu.ListMenu', 'Ext.ux.grid.menu.RangeMenu', 'Ext.ux.grid.filter.BooleanFilter', 'Ext.ux.grid.filter.Filter', 'Ext.ux.grid.filter.DateFilter', 'Ext.ux.grid.filter.ListFilter', 'Ext.ux.grid.filter.NumericFilter', 'Ext.ux.grid.filter.StringFilter' ],
Code:requires: [ 'Ext.ux.grid.FiltersFeature', 'Ext.ux.grid.menu.*', 'Ext.ux.grid.filter.*', ],
Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote