I'm not surprised ArrayList.js doesn't change on subsequent passes, but if you 
unzip ArrrayList.js from its SWC, you should see some differences, probably the 
"Royale Dependency List" line.  That is the cache of dependencies that 
GoogDepsWriter injects, and you are correct that it seems wrong that it is 
empty given the requires list.

So, next step is for you to debug through GoogDepsWriter and see why it didn't 
think there was anything to cache.

On the other hand, the error you are getting is unexpected given that 
goog.require for CollectionEvent is in the ArrayList.js.  The error from Google 
Closure Compiler doesn't care about the commented Royale Dependency List cache. 
 It could be that with remove-circulars all of the goog.requires should already 
be required by classes already loaded by the main class.  Then it would be ok 
for Royale Dependency List to be empty.  Then the issue would be why GCC is 
complaining.  Maybe the order or set of addDependency calls in index.html or 
deps.js isn't correct.

-Alex

On 10/23/18, 3:53 AM, "Harbs" <[email protected]> wrote:

    I don’t know why it works on a clean build, but it looks to me like the 
problem is here:
    
    goog.provide('org.apache.royale.collections.ArrayList');
    /* Royale Dependency List: */
    
    goog.require('org.apache.royale.core.IStrand');
    goog.require('org.apache.royale.events.CollectionEvent');
    goog.require('org.apache.royale.events.Event');
    goog.require('org.apache.royale.events.EventDispatcher');
    goog.require('org.apache.royale.collections.IArrayList');
    goog.require('org.apache.royale.collections.ICollectionView');
    goog.require('org.apache.royale.core.IBead');
    
    The Royale Dependency List is empty. Any clues why that would be?
    
    > On Oct 23, 2018, at 1:11 PM, Harbs <[email protected]> wrote:
    > 
    > The file is identical in both cases.
    > 
    >> On Oct 22, 2018, at 8:16 PM, Alex Harui <[email protected]> wrote:
    >> 
    >> GoogDepsWriter tries to cache dependency information in the individual 
JS files in the js-debug folder.  So if what is being cached isn't quite right, 
then it could cause problems on the next build.
    >> 
    >> What does ArrayList.js look like after it compiles on a clean build?
    >> 
    >> -Alex
    >> 
    >> On 10/22/18, 1:30 AM, "Harbs" <[email protected]> wrote:
    >> 
    >>   Recently I started getting this error when compiling my app:
    >> 
    >>   Oct 22, 2018 11:25:06 AM 
com.google.javascript.jscomp.LoggerErrorManager println
    >>   SEVERE: 
/Users/harbs/Documents/git/PrintUI/printui-flexjs/PortedPrintUI/bin/js-debug/org/apache/royale/collections/ArrayList.js:14:
 ERROR - required "org.apache.royale.events.CollectionEvent" namespace not 
provided yet
    >>   goog.require('org.apache.royale.events.CollectionEvent');
    >>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    >> 
    >>   Oct 22, 2018 11:25:06 AM 
com.google.javascript.jscomp.LoggerErrorManager printSummary
    >>   WARNING: 1 error(s), 58 warning(s)
    >> 
    >>   The odd thing is that it only happens if I don’t clean my project 
before building. If I clean my project first, it compiles correctly (yeah, 
there’s a lot of warnings, but they are non-critical):
    >> 
    >>   Oct 22, 2018 11:26:32 AM 
com.google.javascript.jscomp.LoggerErrorManager printSummary
    >>   WARNING: 0 error(s), 81 warning(s)
    >>   The project 'PortedPrintUI' has been successfully compiled and 
optimized.
    >>   38.822735267 seconds
    >> 
    >>   Any ideas on what could be causing this?
    >> 
    > 
    
    

Reply via email to