Ah, I had
GOOG_HOME=c:\apache-royale-0.9.7-bin-js-swf\royale-asjs\js\lib\google\closure-library

Unsetting GOOG_HOME fixed that problem.

Thanks.



On 1/19/2022 11:33 PM, Yishay Weiss wrote:
> Looks like you are not getting the most recent google closure library. Do you 
> have GOOG_HOME env var defined? If so, I suggest to remove it and run
>
> …/royale-asjs> ant super-clean
>
> This will get rid of previously downloaded libraries and download them again.
>
> If you want to keep GOOG_HOME you can just replace its contents with
>
> ttps://github.com/google/closure-library/archive/v20180910.zip
>
> Here’s the ant target for reference.
>
> <target name="gcl-download" depends="check-goog-home" unless="GOOG_HOME" 
> description="Downloads Google Closure Library">
>            <mkdir dir="${download.dir}"/>
>            <get 
> src="https://github.com/google/closure-library/archive/v20180910.zip";
>                    dest="${download.dir}/google-closure-library-master.zip"
>                    verbose="false" ignoreerrors="true"/>
>
>         <antcall target="get-from-cache-if-needed" >
>             <param name="filename" value="google-closure-library-master.zip" 
> />
>             <param name="destDir" value="${download.dir}" />
>         </antcall>
>         <antcall target="fail-if-not-found" >
>             <param name="filename" value="google-closure-library-master.zip" 
> />
>             <param name="destDir" value="${download.dir}" />
>         </antcall>
>
>            <mkdir dir="${ROYALE_HOME}/js/lib/google/closure-library"/>
>            <unzip src="${download.dir}/google-closure-library-master.zip" 
> dest="${ROYALE_HOME}/js/lib/google/closure-library">
>                       <cutdirsmapper dirs="1" />
>            </unzip>
>         <property name="GOOG_DIR" 
> value="${ROYALE_HOME}/js/lib/google/closure-library" />
>         <antcall target="subset-goog" />
>     </target>
>
> From: Edward Stangler
> Sent: Thursday, January 20, 2022 6:11 AM
> To: Apache Royale Development<mailto:dev@royale.apache.org>
> Subject: Test error
>
> I'm pretty sure I have everything up-to-date, but when I do:
>
>
> ant -Dskip-tests=1 all
>
>
> (which is successful), and then do:
>
>
> ant
>
>
> It works well until the following error.  Am I doing something wrong?  I 
> thought it worked before.  (If I do "ant mxtests" or other tests, instead, 
> those work.)
>
>
> ...
>
> compile:
>      [echo] Compiling FlexUnitRoyaleApplication.swf
>
> ...
>
> [royaleunit]
> [royaleunit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
> 0.123 sec
> [royaleunit]
>
> ...
>
> main:
>      [echo] swc-date is 01/18/22 17:56 -0600
>
> test-js:
>      [echo] swc-date is 01/18/22 17:57 -0600
>    [delete] Deleting: 
> c:\somewhere\royale-asjs\frameworks\js\projects\BasicJS\BasicJS.swc.properties
>
> check-for-tests:
>
> check-compiler-home:
>
> check-transpiler-home:
>
> check-compiler:
>
> test:
>
> clean:
>
> compile:
>      [echo] Cross-compiling tests
>      [echo] ROYALE_HOME: c:\somewhere\royale-asjs
>      [echo] ROYALE_SWF_COMPILER_HOME: c:\somewhere\royale-asjs
>      [echo] playerglobal.version: 11.1
> Trying to override old definition of task compc
> Trying to override old definition of task mxmlc
>     [mxmlc] MXMLJSC
>     [mxmlc] -compiler.targets=JSRoyale
>     [mxmlc] -js-output=target
>     [mxmlc] +playerglobal.version=11.1
>     [mxmlc] 
> +env.PLAYERGLOBAL_HOME=C:\apache-flex-sdk-4.16.1-bin\frameworks\libs\player
>     [mxmlc] +royalelib=c:\somewhere\royale-asjs/frameworks/
>     [mxmlc] --
>     [mxmlc] 
> c:\somewhere\royale-asjs\frameworks\js\projects\BasicJS\src\test\royale/../../../../../../projects/Basic/src/test/royale/FlexUnitRoyaleApplication.mxml
>     [mxmlc] got null for string/typedstring.js
>     [mxmlc] got null for string/const.js
>     [mxmlc] got null for i18n/bidi.js
>     [mxmlc] got null for html/trustedresourceurl.js
>     [mxmlc] got null for fs/url.js
>     [mxmlc] got null for html/safeurl.js
>     [mxmlc] got null for html/safestyle.js
>     [mxmlc] got null for html/safestylesheet.js
>     [mxmlc] got null for html/safescript.js
>     [mxmlc] got null for dom/tags.js
>     [mxmlc] got null for dom/htmlelement.js
>     [mxmlc] got null for dom/tagname.js
>     [mxmlc] got null for html/safehtml.js
>     [mxmlc] got null for html/uncheckedconversions.js
>     [mxmlc] got null for useragent/product.js
>     [mxmlc] got null for html/sanitizer/noclobber.js
>     [mxmlc] got null for html/sanitizer/tagwhitelist.js
>     [mxmlc] got null for html/sanitizer/tagblacklist.js
>     [mxmlc] got null for debug/logrecord.js
>     [mxmlc] got null for debug/logbuffer.js
>     [mxmlc] got null for debug/logger.js
>     [mxmlc] got null for log/log.js
>     [mxmlc] got null for html/sanitizer/elementweakmap.js
>     [mxmlc] got null for math/size.js
>     [mxmlc] got null for math/math.js
>     [mxmlc] got null for math/coordinate.js
>     [mxmlc] got null for functions/functions.js
>     [mxmlc] got null for dom/asserts.js
>     [mxmlc] got null for dom/safe.js
>     [mxmlc] got null for dom/browserfeature.js
>     [mxmlc] got null for dom/dom.js
>     [mxmlc] got null for html/sanitizer/safedomtreeprocessor.js
>     [mxmlc] got null for html/cssspecificity.js
>     [mxmlc] got null for html/sanitizer/csssanitizer.js
>     [mxmlc] got null for html/sanitizer/attributewhitelist.js
>     [mxmlc] got null for html/sanitizer/htmlsanitizer.js
>     [mxmlc] 7.2524751 seconds
>     [mxmlc] Internal error: java.lang.NullPointerException 
> com.google.javascript.jscomp.Compiler.newTracer(Compiler.java:1256)com.google.javascript.jscomp.Compiler.generateReport(Compiler.java:765)com.google.javascript.jscomp.Compiler.compile(Compiler.java:751)org.apache.royale.compiler.utils.JSClosureCompilerWrapper.compile(JSClosureCompilerWrapper.java:184)org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:603)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:447)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:264)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:221)org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:363)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:298)org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:256)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:238)
>     [mxmlc]
>     [mxmlc]
>
> BUILD FAILED
>
>

Reply via email to