You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Emilian Bold <em...@gmail.com> on 2019/07/12 12:32:43 UTC

Why does NetBeans still have to download post-install the Oracle JSParser?

Hello,

Last I looked into this the Oracle JSParser was under a BSD license so
the only problem was the nobody is re-packaging it as a proper JAR we
can use. Has this changed recently?

It seems like a bad experience that for both Jave SE and Java EE (and
JS/PHP actually) you have to wait for a 3rd party NBM to download
before using NetBeans.

--emi

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Why does NetBeans still have to download post-install the Oracle JSParser?

Posted by Neil C Smith <ne...@apache.org>.
On Sat, 13 Jul 2019, 07:53 Zoran Sevarac, <se...@gmail.com> wrote:

> Yes thanks for bringing this up. And if some NB Platform App has a
> dependency to it, it's even more annoying.
> Especially when installer comes into play. Maybe these additional
> dependencies could be all downloaded as a part of installation procedure.
>

It's quite simple to download and pre-include as part of your platform app
build process if required though. At least with Ant I know it is as I'm
bundling nb-javac.

Best wishes,

Neil

>

Re: Why does NetBeans still have to download post-install the Oracle JSParser?

Posted by Emilian Bold <em...@gmail.com>.
Yes, it would be nice if we had some build time flags so the installer:

* may bundle the JDK and
* may bundle the mandatory 3rd party NBMs like nbjavac/oracle parser or at least
** download all mandatory 3rd party NBMs at install time

I also wonder if there is a centralised place in the source tree /
wiki where these modules are listed. I know we have in some place a
way to install jacoco I think? So there's 2-3 or more modules that
NetBeans either *needs* post-install to run or that it offers as an
option to users (such plugins then have to be available in the update
centre somewhere).

--emi

On Sat, Jul 13, 2019 at 9:53 AM Zoran Sevarac <se...@gmail.com> wrote:
>
> Yes thanks for bringing this up. And if some NB Platform App has a
> dependency to it, it's even more annoying.
> Especially when installer comes into play. Maybe these additional
> dependencies could be all downloaded as a part of installation procedure.
>
>
> On Fri, Jul 12, 2019 at 2:33 PM Emilian Bold <em...@gmail.com> wrote:
>
> > Hello,
> >
> > Last I looked into this the Oracle JSParser was under a BSD license so
> > the only problem was the nobody is re-packaging it as a proper JAR we
> > can use. Has this changed recently?
> >
> > It seems like a bad experience that for both Jave SE and Java EE (and
> > JS/PHP actually) you have to wait for a 3rd party NBM to download
> > before using NetBeans.
> >
> > --emi
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> > For additional commands, e-mail: dev-help@netbeans.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
> >
>
> --
> Zoran Sevarac, PhD, Associate Professor
> Department of Software Engineering
> University of Belgrade, Faculty of Organisational Sciences
> <http://www.fon.rs>
> Deep Netts <http://www.deepnetts.com>  Co-founder & CEO  | Oracle
> Groundbreaker Ambassador | Java Champion
> <https://community.oracle.com/community/java/java-champions>
> Open source: Neuroph <http://neuroph.sourceforge.net/>founder, Apache Net
> Beans <https://netbeans.apache.org/> contributor
> Homepage: http://www.zoransevarac.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Why does NetBeans still have to download post-install the Oracle JSParser?

Posted by Zoran Sevarac <se...@gmail.com>.
Yes thanks for bringing this up. And if some NB Platform App has a
dependency to it, it's even more annoying.
Especially when installer comes into play. Maybe these additional
dependencies could be all downloaded as a part of installation procedure.


On Fri, Jul 12, 2019 at 2:33 PM Emilian Bold <em...@gmail.com> wrote:

> Hello,
>
> Last I looked into this the Oracle JSParser was under a BSD license so
> the only problem was the nobody is re-packaging it as a proper JAR we
> can use. Has this changed recently?
>
> It seems like a bad experience that for both Jave SE and Java EE (and
> JS/PHP actually) you have to wait for a 3rd party NBM to download
> before using NetBeans.
>
> --emi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

-- 
Zoran Sevarac, PhD, Associate Professor
Department of Software Engineering
University of Belgrade, Faculty of Organisational Sciences
<http://www.fon.rs>
Deep Netts <http://www.deepnetts.com>  Co-founder & CEO  | Oracle
Groundbreaker Ambassador | Java Champion
<https://community.oracle.com/community/java/java-champions>
Open source: Neuroph <http://neuroph.sourceforge.net/>founder, Apache Net
Beans <https://netbeans.apache.org/> contributor
Homepage: http://www.zoransevarac.com

Re: Why does NetBeans still have to download post-install the Oracle JSParser?

Posted by Zoran Sevarac <se...@gmail.com>.
Thanks Neil that was very helpful, it worked for me.
And I agree with Emilian that it would be very nice to have build flags for
the installer that can produce distribution which gives everything
out-of-the-box, and apache style.
I guess what you showed above could be the way to do that, once the
installer is ready.

On Sat, Jul 13, 2019 at 10:26 AM Neil C Smith <ne...@apache.org> wrote:

> On Sat, 13 Jul 2019 at 08:55, Emilian Bold <em...@gmail.com> wrote:
> >
> > > It's quite simple to download and pre-include as part of your platform
> app
> > build process if required though. At least with Ant I know it is as I'm
> > bundling nb-javac.
> >
> > How? My build system is quite odd so I do it the way the build system
> > wants to but perhaps the patch is smaller via ant.
> >
>
> I updated the PraxisLIVE build scripts when upgrading to NB11.0 to use
> the built-in support for downloading the necessary clusters.  Then
> extended it to install nb-javac.  See
>
>
> https://github.com/praxis-live/praxis-live/blob/master/nbproject/platform.xml#L39
>
> I also made that optional by also extending the main build task to
> check and download as well, so works against IDE rather than
> downloaded harness if necessary.
>
> https://github.com/praxis-live/praxis-live/blob/master/build.xml#L36
>
> Incidentally, also added support for cross-platform JDK bundling and
> InnoSetup installer building at the same time in that file.
>
> Thanks whoever fixed up to put tasks.jar in with the nbms in NB11.1.
> Had been about to file an issue against this.  Means I can stop
> hosting my own copy.
>
> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

-- 
Zoran Sevarac, PhD, Associate Professor
Department of Software Engineering
University of Belgrade, Faculty of Organisational Sciences
<http://www.fon.rs>
Deep Netts <http://www.deepnetts.com>  Co-founder & CEO  | Oracle
Groundbreaker Ambassador | Java Champion
<https://community.oracle.com/community/java/java-champions>
Open source: Neuroph <http://neuroph.sourceforge.net/>founder, Apache Net
Beans <https://netbeans.apache.org/> contributor
Homepage: http://www.zoransevarac.com

Re: Why does NetBeans still have to download post-install the Oracle JSParser?

Posted by Neil C Smith <ne...@apache.org>.
On Sat, 13 Jul 2019 at 08:55, Emilian Bold <em...@gmail.com> wrote:
>
> > It's quite simple to download and pre-include as part of your platform app
> build process if required though. At least with Ant I know it is as I'm
> bundling nb-javac.
>
> How? My build system is quite odd so I do it the way the build system
> wants to but perhaps the patch is smaller via ant.
>

I updated the PraxisLIVE build scripts when upgrading to NB11.0 to use
the built-in support for downloading the necessary clusters.  Then
extended it to install nb-javac.  See

https://github.com/praxis-live/praxis-live/blob/master/nbproject/platform.xml#L39

I also made that optional by also extending the main build task to
check and download as well, so works against IDE rather than
downloaded harness if necessary.

https://github.com/praxis-live/praxis-live/blob/master/build.xml#L36

Incidentally, also added support for cross-platform JDK bundling and
InnoSetup installer building at the same time in that file.

Thanks whoever fixed up to put tasks.jar in with the nbms in NB11.1.
Had been about to file an issue against this.  Means I can stop
hosting my own copy.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Why does NetBeans still have to download post-install the Oracle JSParser?

Posted by Matthias Bläsing <mb...@doppel-helix.eu>.
Am Samstag, den 13.07.2019, 11:22 +0300 schrieb Emilian Bold:
> Oh, and the lib hasn't changed since 2016
> http://hg.openjdk.java.net/graal/graal-js-parser
> 

That is most probably the big problem we are facing right now. No one
bothered with keeping up with the changed in the graal-js parser and
not we have to make a huge step.

Greetings

Matthias


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Why does NetBeans still have to download post-install the Oracle JSParser?

Posted by Emilian Bold <em...@gmail.com>.
Oh, and the lib hasn't changed since 2016
http://hg.openjdk.java.net/graal/graal-js-parser

--emi

On Sat, Jul 13, 2019 at 11:20 AM Matthias Bläsing
<mb...@doppel-helix.eu> wrote:
>
> Am Samstag, den 13.07.2019, 11:10 +0300 schrieb Emilian Bold:
> >> [Why do we need to download Graal.JS Parser, if it is UPL licensed?]
> > PS: Could somebody from Oracle tell me how that NBM is built?
>
> Not from Oracle, but I think you are looking for this:
>
> https://github.com/apache/netbeans/tree/master/contrib/libs.oracle.jsparser
>
> HTH
>
> Matthias
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Why does NetBeans still have to download post-install the Oracle JSParser?

Posted by Matthias Bläsing <mb...@doppel-helix.eu>.
Am Samstag, den 13.07.2019, 11:10 +0300 schrieb Emilian Bold:
>> [Why do we need to download Graal.JS Parser, if it is UPL licensed?]
> PS: Could somebody from Oracle tell me how that NBM is built?

Not from Oracle, but I think you are looking for this:

https://github.com/apache/netbeans/tree/master/contrib/libs.oracle.jsparser

HTH

Matthias



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Why does NetBeans still have to download post-install the Oracle JSParser?

Posted by Emilian Bold <em...@gmail.com>.
PS: Could somebody from Oracle tell me how that NBM is built?

--emi

On Sat, Jul 13, 2019 at 10:54 AM Emilian Bold <em...@gmail.com> wrote:
>
> > It's quite simple to download and pre-include as part of your platform app
> build process if required though. At least with Ant I know it is as I'm
> bundling nb-javac.
>
> How? My build system is quite odd so I do it the way the build system
> wants to but perhaps the patch is smaller via ant.
>
> > https://github.com/apache/netbeans/pull/1099
>
> No, I think what I'm talking about is the Nashorn parser, not the
> Graal.JS parser? Will have to double-check but I remember the license
> was OK but nobody was building and packing it properly for the
> NetBeans build system to include it nicely.
>
> --emi
>
> On Sat, Jul 13, 2019 at 10:40 AM Matthias Bläsing
> <mb...@doppel-helix.eu> wrote:
> >
> > Hi Emilian,
> >
> > Am Freitag, den 12.07.2019, 15:32 +0300 schrieb Emilian Bold:
> > >
> > > Last I looked into this the Oracle JSParser was under a BSD license so
> > > the only problem was the nobody is re-packaging it as a proper JAR we
> > > can use. Has this changed recently?
> > >
> >
> > That would be:
> >
> > https://github.com/apache/netbeans/pull/1099
> >
> > I also had a look at it and noticed two things:
> >
> > 1: There are several unittest just failing because they are broken in
> >    one way or another. This is noice for our use case and should be
> >    removed
> > 2: The Oracle.JS parser changed in an incompatible way. The netbeans
> >    integration has to be adjusted accordingly. Some changes are
> >    trivial, but many require more deep inside into the generated
> >    parse tree.
> >
> > So at this point we rely on the GPLv2-CPE licensed parser.
> >
> > Greetings
> >
> > Matthias
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> > For additional commands, e-mail: dev-help@netbeans.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Why does NetBeans still have to download post-install the Oracle JSParser?

Posted by Emilian Bold <em...@gmail.com>.
> It's quite simple to download and pre-include as part of your platform app
build process if required though. At least with Ant I know it is as I'm
bundling nb-javac.

How? My build system is quite odd so I do it the way the build system
wants to but perhaps the patch is smaller via ant.

> https://github.com/apache/netbeans/pull/1099

No, I think what I'm talking about is the Nashorn parser, not the
Graal.JS parser? Will have to double-check but I remember the license
was OK but nobody was building and packing it properly for the
NetBeans build system to include it nicely.

--emi

On Sat, Jul 13, 2019 at 10:40 AM Matthias Bläsing
<mb...@doppel-helix.eu> wrote:
>
> Hi Emilian,
>
> Am Freitag, den 12.07.2019, 15:32 +0300 schrieb Emilian Bold:
> >
> > Last I looked into this the Oracle JSParser was under a BSD license so
> > the only problem was the nobody is re-packaging it as a proper JAR we
> > can use. Has this changed recently?
> >
>
> That would be:
>
> https://github.com/apache/netbeans/pull/1099
>
> I also had a look at it and noticed two things:
>
> 1: There are several unittest just failing because they are broken in
>    one way or another. This is noice for our use case and should be
>    removed
> 2: The Oracle.JS parser changed in an incompatible way. The netbeans
>    integration has to be adjusted accordingly. Some changes are
>    trivial, but many require more deep inside into the generated
>    parse tree.
>
> So at this point we rely on the GPLv2-CPE licensed parser.
>
> Greetings
>
> Matthias
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Why does NetBeans still have to download post-install the Oracle JSParser?

Posted by Matthias Bläsing <mb...@doppel-helix.eu>.
Hi Emilian,

Am Freitag, den 12.07.2019, 15:32 +0300 schrieb Emilian Bold:
> 
> Last I looked into this the Oracle JSParser was under a BSD license so
> the only problem was the nobody is re-packaging it as a proper JAR we
> can use. Has this changed recently?
> 

That would be:

https://github.com/apache/netbeans/pull/1099

I also had a look at it and noticed two things:

1: There are several unittest just failing because they are broken in
   one way or another. This is noice for our use case and should be
   removed
2: The Oracle.JS parser changed in an incompatible way. The netbeans
   integration has to be adjusted accordingly. Some changes are 
   trivial, but many require more deep inside into the generated
   parse tree.

So at this point we rely on the GPLv2-CPE licensed parser.

Greetings

Matthias


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists