compile error can't find hljs.js

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

compile error can't find hljs.js

Mandeep Sarma
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
Reply | Threaded
Open this post in threaded view
|

Re: compile error can't find hljs.js

Piotr Zarzycki
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 <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|

Re: compile error can't find hljs.js

Carlos Rovira-2
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 (<[hidden email]>) 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 <[hidden email]> 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


--
Reply | Threaded
Open this post in threaded view
|

Re: compile error can't find hljs.js

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 <[hidden email]> 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 (<[hidden email]>) 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 <[hidden email]> 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


--
Reply | Threaded
Open this post in threaded view
|

Re: compile error can't find hljs.js

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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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 <[hidden email]> 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


--
Reply | Threaded
Open this post in threaded view
|

Re: compile error can't find hljs.js

Alex Harui-2

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 <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, November 27, 2019 at 10:22 PM
To: "[hidden email]" <[hidden email]>
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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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 <[hidden email]> 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