You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Hugo Ferreira <hf...@gmail.com> on 2023/10/28 13:06:19 UTC

Build with ANT is crashing

Hi,

I don't build Apache Royale framework for a very long time (many months)
and I tried to build today (after a fresh update) and I got the following
error (using ANT all):

     [java] 4.092803763
seconds/Volumes/Data/SDK/apache-royale-src/apache-royale/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/InfiniteScroller.as(147):
col: 20 Error: Call to a possibly undefined method IntersectionObserver.

     [java]

     [java] observer = new IntersectionObserver(handleItemIntersection, {

     [java]                ^

     [java]

     [java]

     [java]
/Volumes/Data/SDK/apache-royale-src/apache-royale/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/InfiniteScroller.as(147):
col: 20 Call to a possibly undefined method IntersectionObserver.

     [java]

     [java] observer = new IntersectionObserver(handleItemIntersection, {

     [java]                ^

     [java]

     [java] Java Result: 2

RE: Build with ANT is crashing

Posted by Maria Jose Esteve <mj...@iest.com>.
Hi Hugo,
My compilation of the sdk is double, first I compile with Maven and then with Ant. My compilation is successful. I have reviewed the log that I generated and I cannot find the error you attached.
In any case, that seems like an "ugly" mistake...
My ant build line is:

ant all -Dbuild.noprompt=true -Drelease.target=true -Dskip-tests=true

Hiedra

-----Mensaje original-----
De: Hugo Ferreira <hf...@gmail.com> 
Enviado el: sábado, 28 de octubre de 2023 15:06
Para: dev@royale.apache.org
Asunto: Build with ANT is crashing

Hi,

I don't build Apache Royale framework for a very long time (many months) and I tried to build today (after a fresh update) and I got the following error (using ANT all):

     [java] 4.092803763
seconds/Volumes/Data/SDK/apache-royale-src/apache-royale/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/InfiniteScroller.as(147):
col: 20 Error: Call to a possibly undefined method IntersectionObserver.

     [java]

     [java] observer = new IntersectionObserver(handleItemIntersection, {

     [java]                ^

     [java]

     [java]

     [java]
/Volumes/Data/SDK/apache-royale-src/apache-royale/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/InfiniteScroller.as(147):
col: 20 Call to a possibly undefined method IntersectionObserver.

     [java]

     [java] observer = new IntersectionObserver(handleItemIntersection, {

     [java]                ^

     [java]

     [java] Java Result: 2

Re: Build with ANT is crashing

Posted by Harbs <ha...@gmail.com>.
Make sure your typedefs repo is up to date. IntersectionObserver is a web API which was added to typedefs relatively recently.

> On Oct 28, 2023, at 3:06 PM, Hugo Ferreira <hf...@gmail.com> wrote:
> 
> Hi,
> 
> I don't build Apache Royale framework for a very long time (many months)
> and I tried to build today (after a fresh update) and I got the following
> error (using ANT all):
> 
>     [java] 4.092803763
> seconds/Volumes/Data/SDK/apache-royale-src/apache-royale/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/InfiniteScroller.as(147):
> col: 20 Error: Call to a possibly undefined method IntersectionObserver.
> 
>     [java]
> 
>     [java] observer = new IntersectionObserver(handleItemIntersection, {
> 
>     [java]                ^
> 
>     [java]
> 
>     [java]
> 
>     [java]
> /Volumes/Data/SDK/apache-royale-src/apache-royale/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/InfiniteScroller.as(147):
> col: 20 Call to a possibly undefined method IntersectionObserver.
> 
>     [java]
> 
>     [java] observer = new IntersectionObserver(handleItemIntersection, {
> 
>     [java]                ^
> 
>     [java]
> 
>     [java] Java Result: 2