Re: compile error can't find hljs.js

2019-11-27 Thread Alex Harui
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 
Reply-To: "users@royale.apache.org" 
Date: Wednesday, November 27, 2019 at 10:22 PM
To: "users@royale.apache.org" 
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 
mailto: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 
mailto: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 
(mailto: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 
mailto: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



Re: compile error can't find hljs.js

2019-11-27 Thread Piotr Zarzycki
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  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 
> 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 
>>> 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
>>
>>


Re: compile error can't find hljs.js

2019-11-27 Thread Mandeep Sarma
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 
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  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
>
>


Re: TextConverter method call

2019-11-27 Thread Serkan Taş

Hi Alex,

TextConverter : 
https://drive.google.com/open?id=1_6-rBQqTISbeoLvS2-yV8bSFkvS_ApxZ


It is working without any excepiton, but still can not show the text in 
TextArea.


Going to try to find-out why...

Thank,
Serkan

27.11.2019 08:57 tarihinde Alex Harui yazdı:

By deferring the initialization of _descriptors until it is actually needed, 
the code allows FormatDescriptor to get loaded.  If the initialization code 
that needs FormatDescriptor runs too soon, then FormatDescriptor won't have 
been loaded yet.

At least, that's the theory,
-Alex

On 11/26/19, 9:50 PM, "serkan@likyateknoloji.com" 
 wrote:

 Hi Alex,
 
 Sorry for inconvenience. I was just sent it before leaving home in the

 morning. I am going to send you the real code and check your sample
 later today.
 
 But I did not understand the what should I do for FormatDescriptor.
 
 Is there a workaround ?
 




Re: AdvancedDataGrid Emulation

2019-11-27 Thread Takeshita Shoichiro
Yishay, thanks.

I opened issue #593.

S. Takeshita

On Wed, Nov 27, 2019 at 7:44 PM Yishay Weiss  wrote:

> Hi Takeshita,
>
>
>
> Please open an issue on GitHub with a test case.
>
>
>
> I’ll work on it tomorrow.
>
>
>
> Thanks,
>
> Yishay
>
>
>
> *From: *Takeshita Shoichiro 
> *Sent: *Wednesday, November 27, 2019 2:22 AM
> *To: *users@royale.apache.org
> *Subject: *Re: AdvancedDataGrid Emulation
>
>
>
> Alex, thanks for help.
>
>
>
> groupedColumns is one of the important components for our Flex
> application.  I want to make it work for proposal presentation.
>
>
>
> 2019年11月27日(水) 0:21 Alex Harui :
>
> I don’t think anyone has tried groupedColumns yet.  I can look into it
> after we help Alina’s team finish their goal unless someone else beats me
> to it.  They are using ADG heavily, but I haven’t seen groupedColumns, just
> regular columns.
>
>
>
> -Alex
>
>
>
> *From: *Takeshita Shoichiro 
> *Reply-To: *"users@royale.apache.org" 
> *Date: *Tuesday, November 26, 2019 at 5:33 AM
> *To: *"users@royale.apache.org" 
> *Subject: *AdvancedDataGrid Emulation
>
>
>
>
>
> Hi,
>
>
>
>
>
>
>
> Is AdvancedDataGrid emulation supported by Royale? The compiled result of
> the following generates a frame but no contents.
>
>
>
>
>
>
>
> Do I need to do change other things other than name spaces?
>
>
>
>
>
>
>
> Thanks for your advice.
>
>
>
>
>
>
>
> S. Takeshita
>
>
>
>
> 
>
>
>
>
>
>
>
> 
>
>
>
> http://ns.adobe.com/mxml/2009
> 
> "
>
>
>
>xmlns:mx="library://ns.apache.org/royale/mx
> 
> "
>
>
>
>xmlns:s="library://ns.apache.org/royale/spark
> 
> "
>
>
>
>width="550" height="340">
>
>
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
>
>
>
>
> 
>
>
>  dataProvider="{dpFlat}"
>
>
>
>  width="100%" height="100%">
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>headerText="Territory Rep"/>
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
> 
>
>
>
>
>
>
>
>
> --
>
> Shoichiro Takeshita
> 武下 祥一郎
>
> --
>
> Shoichiro Takeshita
> 武下 祥一郎
>
>
>


-- 
Shoichiro Takeshita
武下 祥一郎