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 <muveryd...@gmail.com> 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 <carlosrov...@apache.org>
> 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 (<
>> piotrzarzyck...@gmail.com>) 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 <muveryd...@gmail.com>
>>> 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
>>
>>

Reply via email to