-
23 Sep 2012 5:33 AM #1
sencha app build: classes out of order
sencha app build: classes out of order
I may be doing something wrong, but I took one of my larger projects from Sencha Architect and attempted to restructure it so i could use Cmd. I got the app folder generated, moved in the code from SA, refreshed the bootstrap and then ran sencha app build. The all-classes.js file has Ext.data.ResultSet defined before Ext. It looks like all of the app code is accounted for. Is there something that I am doing wrong?
-
23 Sep 2012 10:59 AM #2
Ok, I got past the issue.... seems if I use compile instead of app build and I exclude Ext.draw then the issue doesn't happen. It also seems like I have a lot of stuff in the compressed application I don't need. I am going to work on cleaning it up now that I found a way to get around the issue.
Is there some way I can use the app build command and not run into that issue?
-
23 Sep 2012 1:26 PM #3
This is being caused by a know issue with the compiler failing to detect dependencies on the core class system for classes that do not extend any base class. It has been resolved recently, and we hope to have a refresh build available soon with the fix.
As a workaround until then, however, you should be able to add the following comment directive at the top of ResultSet.js in the ext/src directory for this application:
This will indicate to the compiler that ResultSet.js requires the foundation set of files from the framework and will prevent ResultSet from being sorted before Ext. As both the compiler and app build commands draw sources directly from the raw framework source tree for builds, app build should start working once this tag has been added.Code://@require @foundation
-
23 Sep 2012 3:41 PM #4
Great. Thanks for the reply.
-
25 Sep 2012 1:28 PM #5
Thanks for the report! I have opened a bug in our bug tracker.
Success! Looks like we've fixed this one. According to our records the fix was applied for
SDKTOOLS-163
in
3.0.0.181.



Reply With Quote