Bug#925509: netbeans: Netbeans not usable with java in Buster

2019-05-03 Thread Markus Koschany
Hi Jochen,

Am 03.05.19 um 13:47 schrieb Jochen Sprickerhof:
[...]
> This is due to libnb-javaparser-java which is still on the jdk-9
> version. 

[...]

> So one way would be to get this packaged (maybe rename nb-javac-9-*.jar
> to nb-javac-11-*.jar) and convince the release team to include include
> this into buster.

Normally we should upgrade libnb-javaparser-java to the JDK 11
compatible version. If I had known such a version existed, I would have
packaged this one in January.

> An other option may be to drop the nb-javac.patch and reopen #920707.
> According to:
> 
> https://cwiki.apache.org/confluence/display/NETBEANS/Java+Editor+Using+JDK+javac
> 
> https://cwiki.apache.org/confluence/display/NETBEANS/Overview%3A+nb-javac
> 
> Netbeans should work without nb-javac (but I really tried it). This
> would trade the #925509 rc bug against a normal bug and we would be able
> to release with buster.
> 
> What do you think?

If we drop the nb-javac.patch we will surely see new bug reports because
the warning confuses people. Your links also mention some caveats when
not using nb-javac, possible code completion errors and whatnot. So the
user is forced to live with those caveats or download nb-javac manually.
The latter solution might be preferable at the moment because of the
freeze, but the point of packaging Netbeans for Debian was, that you can
install Netbeans with system libraries. Now you have to download
prebuilt binary files even for core features.

There is also bug #920706 that makes Git unusable. One cannot even work
around it by downloading the plugin from the internet.

So yes, we can do that but I wonder if we should keep Netbeans out of
Buster because it does not live up to the quality of the current version
in Stretch.

Regards,

Markus




signature.asc
Description: OpenPGP digital signature


Bug#925509: netbeans: Netbeans not usable with java in Buster

2019-05-03 Thread Jochen Sprickerhof

Hi Markus,

* Jochen Sprickerhof  [2019-05-02 23:05]:
The other option is to fix the nb-javac-9-(api|impl).jar. Starting the 
upstream version of netbeans results in the same error for nb-javac 
and let's you download 
~/.netbeans/10.0/modules/ext/nb-javac-(api|impl).jar. Placing those in 
/usr/share/netbeans/java5/modules/ext (and renaming them), results in 
a working Netbeans for me as well. There are some classes missing in 
the Debian jars, do you know how to get them compiled in? (I can have 
a look what exactly tomorrow).


This is due to libnb-javaparser-java which is still on the jdk-9 
version. The sources of it moved to:


http://hg.netbeans.org/main/nb-java-x

as mentioned here:

https://issues.apache.org/jira/browse/NETBEANS-802
https://cwiki.apache.org/confluence/display/NETBEANS/Apache+NetBeans+10.0+New+and+Noteworthy

Build instructions are here:

https://cwiki.apache.org/confluence/display/NETBEANS/nb-javac+releases

I was able to get a working netbeans using:

hg checkout 57251:8af81d06fdf5

in the nb-java-x repo.

So one way would be to get this packaged (maybe rename nb-javac-9-*.jar 
to nb-javac-11-*.jar) and convince the release team to include include 
this into buster.


An other option may be to drop the nb-javac.patch and reopen #920707.
According to:

https://cwiki.apache.org/confluence/display/NETBEANS/Java+Editor+Using+JDK+javac
https://cwiki.apache.org/confluence/display/NETBEANS/Overview%3A+nb-javac

Netbeans should work without nb-javac (but I really tried it). This 
would trade the #925509 rc bug against a normal bug and we would be able 
to release with buster.


What do you think?

Cheers Jochen


signature.asc
Description: PGP signature


Bug#925509: netbeans: Netbeans not usable with java in Buster

2019-05-02 Thread Jochen Sprickerhof

* Markus Koschany  [2019-05-02 21:08]:

I had a look into this was able to create new projects when I remove the
nb-javac.patch. @Markus do we really need it?


The nb-javac patch is necessary, otherwise the nb-javac module is not
properly detected at runtime. You should see an error message when you
start Netbeans for the first time then. Did you remove ~/.netbeans and
~/.cache/netbeans before you installed the version without the patch? I
believe you are on the right track though.


Yes I see the error as well. But from #920707 I didn't get what function 
will be missing with the error.


The other option is to fix the nb-javac-9-(api|impl).jar. Starting the 
upstream version of netbeans results in the same error for nb-javac and 
let's you download ~/.netbeans/10.0/modules/ext/nb-javac-(api|impl).jar. 
Placing those in /usr/share/netbeans/java5/modules/ext (and renaming 
them), results in a working Netbeans for me as well. There are some 
classes missing in the Debian jars, do you know how to get them compiled 
in? (I can have a look what exactly tomorrow).


Cheers Jochen


signature.asc
Description: PGP signature


Bug#925509: netbeans: Netbeans not usable with java in Buster

2019-05-02 Thread Markus Koschany
Hi,

Am 02.05.19 um 20:56 schrieb Jochen Sprickerhof:
[...]
> I had a look into this was able to create new projects when I remove the
> nb-javac.patch. @Markus do we really need it?

The nb-javac patch is necessary, otherwise the nb-javac module is not
properly detected at runtime. You should see an error message when you
start Netbeans for the first time then. Did you remove ~/.netbeans and
~/.cache/netbeans before you installed the version without the patch? I
believe you are on the right track though.

Regards,

Markus



signature.asc
Description: OpenPGP digital signature


Bug#925509: netbeans: Netbeans not usable with java in Buster

2019-05-02 Thread Jochen Sprickerhof

Hi,

* Markus Koschany  [2019-04-02 22:43]:

Hello Jaroslav,

On Mon, 01 Apr 2019 09:03:31 +0200 Jaroslav Tulach
 wrote:
[...]

Hello Markus,
it would be better to have a whole NetBeans log file instead of just the stack
trace. Then we could see classpath, list of enabled modules and may be deduce
more.

Best regards.
-jt


I think it's easy to reproduce. Just try to create a new Java project
with the Debian package. I believe this could be related to the removal
of langtools-9.zip in Debian. This is yet another file which is
downloaded at build-time. As far as I understand it, it is required to
build certain classes of Netbeans with the older OpenJDK 9 API. If I
include this file and remove the Debian specific langtools-9.patch I get
more compile errors later on. The build log is attached. It looks like
an error in src:libnb-platform18-java too. Netbeans depends on the
platform packages built by this source package.


I had a look into this was able to create new projects when I remove the 
nb-javac.patch. @Markus do we really need it?


Cheers Jochen


signature.asc
Description: PGP signature


Bug#925509: netbeans: Netbeans not usable with java in Buster

2019-04-02 Thread Markus Koschany
Hello Jaroslav,

On Mon, 01 Apr 2019 09:03:31 +0200 Jaroslav Tulach
 wrote:
[...]
> Hello Markus,
> it would be better to have a whole NetBeans log file instead of just the 
> stack 
> trace. Then we could see classpath, list of enabled modules and may be deduce 
> more.
> 
> Best regards.
> -jt

I think it's easy to reproduce. Just try to create a new Java project
with the Debian package. I believe this could be related to the removal
of langtools-9.zip in Debian. This is yet another file which is
downloaded at build-time. As far as I understand it, it is required to
build certain classes of Netbeans with the older OpenJDK 9 API. If I
include this file and remove the Debian specific langtools-9.patch I get
more compile errors later on. The build log is attached. It looks like
an error in src:libnb-platform18-java too. Netbeans depends on the
platform packages built by this source package.

Regards,

Markus


libnb-platform18-java_10.0+ds-1_amd64.build.gz
Description: application/gzip


signature.asc
Description: OpenPGP digital signature


Bug#925509: netbeans: Netbeans not usable with java in Buster

2019-04-01 Thread Jaroslav Tulach
Dne středa 27. března 2019 12:42:54 CEST, Markus Koschany napsal(a):
> Control: forcemerge 925509 925510
> Control: severity -1 serious
> 
> Am 25.03.19 um 23:26 schrieb Wouter Wijsman:
> [...]
> 
> > A java.lang.NoSuchMethodError exception has occurred.
> > Please report this at
> > https://issues.apache.org/jira/projects/NETBEANS/issues,
> > including a copy of your messages.log file as an attachment.
> > The messages.log file is located in your
> > /home/wouter/.netbeans/10.0/var/log folder.
> > 
> > The full log can be found here: https://pastebin.com/0wgJNt15
> > 
> > I hope that helps. I can provide more information if needed.
> 
> Hello and thanks for reporting!
> 
> java.lang.NoSuchMethodError:
> com.sun.tools.javadoc.main.JavadocClassFinder: method
> (Lcom/sun/tools/javac/util/Context;)V not found
> 
> This look like an incompatibility with Java 11.
> 
> Jaroslav and Jan, might this be related to nb-javac again? Here is the
> full log.
> 
> https://pastebin.com/0wgJNt15
> 
> and the link to the full bug report.
> 
> https://bugs.debian.org/925509

Hello Markus,
it would be better to have a whole NetBeans log file instead of just the stack 
trace. Then we could see classpath, list of enabled modules and may be deduce 
more.

Best regards.
-jt



Processed: Re: Bug#925509: netbeans: Netbeans not usable with java in Buster

2019-03-27 Thread Debian Bug Tracking System
Processing control commands:

> forcemerge 925509 925510
Bug #925509 [netbeans] netbeans: Netbeans not usable with java in Buster
Bug #925510 [netbeans] netbeans: Netbeans not usable with java in Buster
Merged 925509 925510
> severity -1 serious
Bug #925509 [netbeans] netbeans: Netbeans not usable with java in Buster
Bug #925510 [netbeans] netbeans: Netbeans not usable with java in Buster
Severity set to 'serious' from 'important'
Severity set to 'serious' from 'important'

-- 
925509: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925509
925510: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925510
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems