OK. Makes sense. The fix was as simple as adding a COMPILE::JS to the top of the class.
> On Jan 27, 2020, at 7:57 AM, Alex Harui <[email protected]> wrote: > > It's not a bug, it's a feature __ > > The compiler was purposefully designed to read in EVERY file in the source > path and do some processing on it. It does not wait until a class is > depended on by some other class then goes fishing through the source path > directories to look for it. And thus, it is going to find classes that are > normally blocked by COMPILE::JS dependencies. > > The src/main/config/asdoc-js-config.xml and asdoc-swf-config.xml contain > exclusions to prevent the kind of errors you are getting. Just add SVGBase > to the exclude list. > > I have to say that I am not convinced that the strategy of opening every file > in the source-path is always going to be optimal, but tinkering with that > strategy is not on my list of most important things. > > -Alex > > On 1/26/20, 1:02 AM, "Harbs" <[email protected]> wrote: > > Why is ASDoc failing? > > It’s failing because the json.swf target is somehow trying to compile > SVGBase for swf even though it’s a JS-only class. I don’t understand why this > is. > > Is COMPILE::JS not being applied for some reason? It looks like it should > be in asdoc-swf-config.xml. > > I can change SWFBase to have a SWF version of the class, but it feels to > me like that might be masking some kind of bug… > > Thoughts? > Harbs > >> On Jan 26, 2020, at 8:35 AM, [email protected] wrote: >> >> See >> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci2.westus2.cloudapp.azure.com%3A8080%2Fjob%2FRoyale_ASDoc_Example%2F553%2Fdisplay%2Fredirect&data=02%7C01%7Caharui%40adobe.com%7C46c42b8af51f481212c108d7a23e71dc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637156261396870721&sdata=GtwyAqg8j3GlPx60KAimoBm5ijxOP6Dhdv8urnK%2BM8I%3D&reserved=0> >> >> Changes: >> >> >> ------------------------------------------ >> [...truncated 41.14 KB...] >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(167): >> col: 15 Call to a possibly undefined method setAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] element.setAttribute("stroke-dasharray",value); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(170): >> col: 22 Call to a possibly undefined method getAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] return element.getAttribute("stroke-dashoffset"); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(173): >> col: 15 Call to a possibly undefined method setAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] element.setAttribute("stroke-dashoffset",value); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(176): >> col: 22 Call to a possibly undefined method getAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] return element.getAttribute("stroke-linecap"); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(179): >> col: 15 Call to a possibly undefined method setAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] element.setAttribute("stroke-linecap",value); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(182): >> col: 22 Call to a possibly undefined method getAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] return element.getAttribute("stroke-linejoin"); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(185): >> col: 15 Call to a possibly undefined method setAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] element.setAttribute("stroke-linejoin",value); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(188): >> col: 22 Call to a possibly undefined method getAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] return element.getAttribute("stroke-miterlimit"); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(191): >> col: 15 Call to a possibly undefined method setAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] element.setAttribute("stroke-miterlimit",value); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(194): >> col: 22 Call to a possibly undefined method getAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] return element.getAttribute("stroke-opacity"); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(197): >> col: 15 Call to a possibly undefined method setAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] element.setAttribute("stroke-opacity",value); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(200): >> col: 22 Call to a possibly undefined method getAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] return element.getAttribute("stroke-width"); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(203): >> col: 15 Call to a possibly undefined method setAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] element.setAttribute("stroke-width",value); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(205): >> col: 25 Overriding a function that is not marked for override >> [java] >> [java] public function get transform():String{ >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(206): >> col: 22 Call to a possibly undefined method getAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] return element.getAttribute("transform"); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(208): >> col: 25 Overriding a function that is not marked for override >> [java] >> [java] public function set transform(value:String):void{ >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(209): >> col: 15 Call to a possibly undefined method setAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] element.setAttribute("transform",value); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(212): >> col: 22 Call to a possibly undefined method getAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] return element.getAttribute("vector-effect"); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(215): >> col: 15 Call to a possibly undefined method setAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] element.setAttribute("vector-effect",value); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(218): >> col: 22 Call to a possibly undefined method getAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] return element.getAttribute("visibility"); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(221): >> col: 15 Call to a possibly undefined method setAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] element.setAttribute("visibility",value); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(223): >> col: 25 Overriding a function that is not marked for override >> [java] >> [java] public function get tabIndex():Number{ >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(224): >> col: 28 Call to a possibly undefined method getAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] return Number(element.getAttribute("tabIndex")); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(226): >> col: 25 Overriding a function that is not marked for override >> [java] >> [java] public function set tabIndex(value:Number):void{ >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(227): >> col: 14 Call to a possibly undefined method setAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] element.setAttribute("tabIndex",value); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(230): >> col: 21 Call to a possibly undefined method getAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] return element.getAttribute("xml:lang"); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\HTML\src\main\royale\org\apache\royale\svg\elements\SVGBase.as(234): >> col: 15 Call to a possibly undefined method setAttribute through a >> reference with static type IRoyaleElement. >> [java] >> [java] element.setAttribute("xml:lang",value); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\AreaChart.as(231): >> col: 21 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.areaFill = fill; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\AreaChart.as(232): >> col: 21 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.fill = fill; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\CandlestickChart.as(231): >> col: 22 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.boxStroke = boxStroke; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\CandlestickChart.as(232): >> col: 22 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.declineFill = declineFill; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\HLOCChart.as(228): >> col: 22 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.closeTickStroke = tickStroke; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\HLOCChart.as(229): >> col: 22 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.openTickStroke = tickStroke; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\HLOCChart.as(230): >> col: 22 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.stroke = stroke; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\HLOCChart.as(231): >> col: 22 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.hlocColor = stroke.color; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\LineChart.as(179): >> col: 22 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.lineStroke = stroke; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\LineChart.as(180): >> col: 22 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.stroke = stroke; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\LineChart.as(181): >> col: 22 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.lineSegmentRenderer = new >> ClassFactory(LineRenderer); >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\PlotChart.as(158): >> col: 22 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.fill = fill; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\PlotChart.as(159): >> col: 22 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.itemRenderer = skin; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\PlotChart.as(160): >> col: 22 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.radius = radius >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\styles\HaloDefaults.as(213): >> col: 6 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.fill = defaultFill; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\styles\HaloDefaults.as(214): >> col: 6 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.areaFill = defaultFill; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\styles\HaloDefaults.as(215): >> col: 6 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.areaStroke = emptyStroke; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\styles\HaloDefaults.as(216): >> col: 6 Encountered this keyword within closure. Value of this will not be >> the same as enclosing scope. >> [java] >> [java] this.lineStroke = >> defaultStroke; >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\SparkRoyale\src\main\royale\spark\skins\spark\FormItemSkin.mxml(169): >> col: 30 Data binding will not be able to detect assignments to 'x'. >> [java] >> [java] <s:Group x="{contentGroup.x + contentGroup.contentWidth + 4}" >> y="{contentGroup.y}" >> [java] ^ >> [java] >> [java] >> C:\jenkins\workspace\royale-asjs\frameworks\projects\SparkRoyale\src\main\royale\spark\skins\spark\FormItemSkin.mxml(169): >> col: 83 Data binding will not be able to detect assignments to 'y'. >> [java] >> [java] <s:Group x="{contentGroup.x + contentGroup.contentWidth + 4}" >> y="{contentGroup.y}" >> [java] >> ^ >> [java] >> [java] 82.20805 seconds >> [java] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Xms384m -Xmx2g >> [java] Java Result: 3 >> >> BUILD FAILED >> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci2.westus2.cloudapp.azure.com%3A8080%2Fjob%2FRoyale_ASDoc_Example%2F553%2Fartifact%2Fexamples%2Froyale%2FASDoc%2Fbuild.xml&data=02%7C01%7Caharui%40adobe.com%7C46c42b8af51f481212c108d7a23e71dc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637156261396870721&sdata=OcCGsYvhiQa%2FM64k2D7nVK6dWQGF8EL0%2Br9%2BFeKeP74%3D&reserved=0>:50: >> The following error occurred while executing this line: >> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci2.westus2.cloudapp.azure.com%3A8080%2Fjob%2FRoyale_ASDoc_Example%2F553%2Fartifact%2Fexamples%2Froyale%2FASDoc%2Fbuild.xml&data=02%7C01%7Caharui%40adobe.com%7C46c42b8af51f481212c108d7a23e71dc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637156261396870721&sdata=OcCGsYvhiQa%2FM64k2D7nVK6dWQGF8EL0%2Br9%2BFeKeP74%3D&reserved=0>:156: >> condition satisfied >> >> Total time: 5 minutes 43 seconds >> Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Xms384m -Xmx2g >> Build step 'Invoke Ant' marked build as failure >> Skipped archiving because build is not successful > > >
