If Google Closure Compiler says there was 1 error then the contents of 
bin/js-release are not stable.

The Maven build sets -compiler.targets=JSRoyale so there is no attempt to 
compile a SWF version which is why nobody noticed that the code needed to be in 
a COMPILE::JS block.

Your current error about UTF-8 implies that you have not set the environment 
variable JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8

HTH,
-Alex

From: Piotr Zarzycki <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Wednesday, November 27, 2019 at 10:22 PM
To: "[email protected]" <[email protected]>
Subject: Re: compile error can't find hljs.js

Hi Mandeep,

Is this full log of compilation? Cause it looks like to me like compilation was 
successful despite the error.

This is your application or some example - Can you somehow send me off list 
that - I would like to try.

Thanks,
Piotr
On Thu, Nov 28, 2019, 2:35 AM Mandeep Sarma 
<[email protected]<mailto:[email protected]>> wrote:
surrounding the code with COMPILE::JS{} didn't get rid of the error. If I 
disable the line of code causing the error I get the following error:  "SEVERE: 
ERROR - Cannot read file 
D:/wwwroot/royale-alltownmall/bin/js-debug/org/apache/royale/jewel/beads/validators/Validator.js
 "
any idea why?
The file exists and I'm able to open it with a text editor.

Thx,
Mandeep

: Compiling AllTownMall
: Using Royale Compiler codebase: 
"D:\apache-royale-sdks\apache-royale-0.9.7-bin-js\royale-asjs"
: Using Royale SDK: 
"D:\apache-royale-sdks\apache-royale-0.9.7-bin-js\royale-asjs"
: MXMLJSC
: 
-sdk-js-lib=D:\apache-royale-sdks\apache-royale-0.9.7-bin-js\royale-asjs\frameworks\js\Royale\generated-sources
: -load-config+=obj/AllTownMallConfig.xml
: -compiler.targets=JSRoyale
: -js-output=D:\wwwroot\royale-alltownmall
: Nov 27, 2019 8:12:23 PM com.google.javascript.jscomp.LoggerErrorManager 
println
: SEVERE: ERROR - Cannot read file 
D:/wwwroot/royale-alltownmall/bin/js-debug/org/apache/royale/jewel/beads/validators/Validator.js:
 Failed to read: 
D:\wwwroot\royale-alltownmall\bin\js-debug\org\apache\royale\jewel\beads\validators\Validator.js,
 is this input UTF-8 encoded?
:
: Nov 27, 2019 8:12:23 PM com.google.javascript.jscomp.LoggerErrorManager 
printSummary
: WARNING: 1 error(s), 0 warning(s)
: 22.6855043 seconds

On Fri, Nov 22, 2019 at 12:25 PM Carlos Rovira 
<[email protected]<mailto:[email protected]>> wrote:
Hi,
just build TDJ and see it working right. I built with Maven, didn't try from 
IDE (Moonshine), and maybe some config is not correctly set up on TDJ project.
I can ensure code is compiling and working right.

Thanks


El vie., 22 nov. 2019 a las 8:00, Piotr Zarzycki 
(<[email protected]<mailto:[email protected]>>) escribió:
Hi Mandeep,

It's a bit strange that you are getting this. One of the option is to surround 
that part of the code with:

COMPILE::JS
{
  Your code
}

Thanks,
Piotr

On Fri, Nov 22, 2019, 6:02 AM Mandeep Sarma 
<[email protected]<mailto:[email protected]>> wrote:
while using moonshine 2.4 and 2.5 with SDK 0.9.7 and 0.9.6 the compiler throws 
and error : undefined property hljs.

Anyone know why?

Thx!
Mandeep

Console output:

: Compiling TourDeJewel
: Using Royale Compiler codebase: 
"D:\apache-royale-sdks\apache-royale-0.9.7-bin-js\royale-asjs"
: Using Royale SDK: 
"D:\apache-royale-sdks\apache-royale-0.9.7-bin-js\royale-asjs"
: MXMLJSC
: 
-sdk-js-lib=D:\apache-royale-sdks\apache-royale-0.9.7-bin-js\royale-asjs\frameworks\js\Royale\generated-sources
: -load-config+=obj/TourDeJewelConfig.xml
: -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
: -html-template=src/main/resources/jewel-example-index-template.html
: -js-dynamic-access-unknown-members=true
: -compiler.targets=JSRoyale
: -js-output=D:\wwwroot\royaleplaywebsites\tourdejewel
: 
D:\apache-royale-examples\examples\royale\TourDeJewel-play\src\main\royale\components\ExampleAndSourceCodeTabbedSectionContent.as(133):
 col: 13 Error: Access of possibly undefined property hljs.
:
:             hljs.highlightBlock(sourceCodeMXMLText.element);
:             ^
:
: 15.7142981 seconds


--
Carlos Rovira
http://about.me/carlosrovira<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Ccb157cef9c22461be4d508d773cb573b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637105189487444893&sdata=v02lfwmjCPPs52nXPHJBZ8tXF7qEIXodq2Sunuy4U9w%3D&reserved=0>

Reply via email to