Re: Apache NetBeans 12.2-rc1 is Available for Testing!

2020-11-11 Thread Javier Ortiz Bultron
The same issue I reported last time is still present and seems to be tied
to nb-javac.

Not sure what more info to provide.
https://issues.apache.org/jira/browse/NETBEANS-4931



On Tue, Nov 10, 2020 at 5:05 PM Junichi Yamamoto 
wrote:

> > That one isn't - that's for updates not plugins, and is unique per
> release.
>
> I see. I misunderstood. Thank you, Neil!
>
> Junichi
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Single editor window

2020-11-11 Thread Joacim Breiler
Hi,

I am trying to figure out how to make a an editor so that it only show one file 
at the time. Any previous open editor should be closed or replaced.

We have solved this temporarily where we close all other open files after we've 
initiated the OpenCookie.open() of the new file, but would like to know the 
"right" way of doing this:
private void openFile() {
try {
FileObject fo = FileUtil.toFileObject(backend.getGcodeFile());
DataObject dOb = DataObject.find(fo);
dOb.getLookup().lookup(OpenCookie.class).open();
java.awt.EventQueue.invokeLater(this::closeOpenFile);
} catch (DataObjectNotFoundException ex) {
Exceptions.printStackTrace(ex);
}
}

https://github.com/winder/Universal-G-Code-Sender/blob/master/ugs-platform/ugs-platform-gcode-editor/src/main/java/com/willwinder/ugs/nbp/editor/actions/EditGcodeFile.java#L127
 


Thanks,
Joacim Breiler


signature.asc
Description: Message signed with OpenPGP


Re: How to use different versions of javac api in netbeans sources

2020-11-11 Thread Jan Lahoda
Hi John,

Sorry for the delayed answer.

This is unfortunately a bit tricky. NetBeans currently can run on JDK 9+
using, for parsing, the javac that is in the JDK. So we cannot directly use
javac APIs that are newer than JDK 9, we usually use reflection to call
such APIs. This is not pretty but usually works.

Now, for the particular two cases:
-for @summary, maybe it is time to drop the ability to use JDK's javac for
parsing while running on JDK 9 and 10, and require JDK 11+ in this mode
(the nb-javac mode would still be unchanged, JDK 8+). Should be doable, and
does not seem too problematic, as probably only few people are using 9 or
10.
-for @systemProperty, that may be a bit more difficult, I am not convinced
we can drop the ability to use JDK's javac for parsing on JDK 11. I suspect
reflection is probably the only solution there right now. Is that feasible?

Jan



On Mon, Nov 9, 2020 at 6:06 PM John Neffenger  wrote:

> On 11/9/20 12:34 AM, Jakub Herkel wrote:
> > These tags are parts of Java Compiler API. So for Java 10+ there is a new
> > SUMMARY tag.
>
> While we're at it, there's also a handy new Javadoc tag for system
> properties, available in Java 12, that I've noticed is missing in NetBeans:
>
> JEP draft: Guidelines for documenting system properties
> https://openjdk.java.net/jeps/8214497
>
> More details are in the Compatibility & Specification Review below:
>
> Support {@systemProperty } tag
> https://bugs.openjdk.java.net/browse/JDK-8211132
>
> John
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Re: How to use different versions of javac api in netbeans sources

2020-11-11 Thread Davide Grandi

sorry for the delay, I didn't notice that you question went unanswered.

I seldom encountered the need of having different version of a jar on 
the same JVM,
but in every case the anwser was loading different jars in different 
classloaders,

and executing things in different threads.
(obviously : if there are classes with same name and package)

bye,

    Davide

On 11/11/2020 17:53, Jakub Herkel wrote:

Is there really nobody who could have any advice?

jakub

On Mon, Nov 9, 2020 at 6:06 PM John Neffenger  wrote:


On 11/9/20 12:34 AM, Jakub Herkel wrote:

These tags are parts of Java Compiler API. So for Java 10+ there is a new
SUMMARY tag.

While we're at it, there's also a handy new Javadoc tag for system
properties, available in Java 12, that I've noticed is missing in NetBeans:

JEP draft: Guidelines for documenting system properties
https://openjdk.java.net/jeps/8214497

More details are in the Compatibility & Specification Review below:

Support {@systemProperty } tag
https://bugs.openjdk.java.net/browse/JDK-8211132

John


--
Ing. Davide Grandi
email: davide.gra...@email.it
mobile   : +39 339 7468 778
linkedin : http://linkedin.com/in/davidegrandi


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

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





Re: How to use different versions of javac api in netbeans sources

2020-11-11 Thread Geertjan Wielenga
The Java editor in NetBeans should use whatever Java compiler that you use
to run NetBeans, if you don't install nb-javac.

Gj

On Wed, Nov 11, 2020 at 5:53 PM Jakub Herkel  wrote:

> Is there really nobody who could have any advice?
>
> jakub
>
> On Mon, Nov 9, 2020 at 6:06 PM John Neffenger  wrote:
>
> > On 11/9/20 12:34 AM, Jakub Herkel wrote:
> > > These tags are parts of Java Compiler API. So for Java 10+ there is a
> new
> > > SUMMARY tag.
> >
> > While we're at it, there's also a handy new Javadoc tag for system
> > properties, available in Java 12, that I've noticed is missing in
> NetBeans:
> >
> > JEP draft: Guidelines for documenting system properties
> > https://openjdk.java.net/jeps/8214497
> >
> > More details are in the Compatibility & Specification Review below:
> >
> > Support {@systemProperty } tag
> > https://bugs.openjdk.java.net/browse/JDK-8211132
> >
> > John
> >
> > -
> > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> > For additional commands, e-mail: dev-h...@netbeans.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
> >
>


Re: How to use different versions of javac api in netbeans sources

2020-11-11 Thread Jakub Herkel
Is there really nobody who could have any advice?

jakub

On Mon, Nov 9, 2020 at 6:06 PM John Neffenger  wrote:

> On 11/9/20 12:34 AM, Jakub Herkel wrote:
> > These tags are parts of Java Compiler API. So for Java 10+ there is a new
> > SUMMARY tag.
>
> While we're at it, there's also a handy new Javadoc tag for system
> properties, available in Java 12, that I've noticed is missing in NetBeans:
>
> JEP draft: Guidelines for documenting system properties
> https://openjdk.java.net/jeps/8214497
>
> More details are in the Compatibility & Specification Review below:
>
> Support {@systemProperty } tag
> https://bugs.openjdk.java.net/browse/JDK-8211132
>
> John
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Re: NB 12+ app builds with Maven no longer work

2020-11-11 Thread Jean-Marc Borer
Hello guys,

Forget my question RELEASE121 works like a charm. Our artifactory server
file system was full. This doesn't appear clearly among the Maven errors.

Cheers,

JM

On Wed, Nov 11, 2020 at 2:32 PM Jean-Marc Borer  wrote:

> Hello dear fellows,
> I am building NB platform applications with Maven. I have seen that 120,
> 121 are finally available on maven central. However, when I try to change
> my platform from 113 to 120 or 121 there are many dependencies that cannot
> be solved. For example below you can see the dependencies that are coming
> from the platform cluster.
>
> I wonder how this could be built in the first place because for example
> org.ow2.asm:asm-7.2:jar   simply doesn't exist. Same for the remaining
> items... Am I missing a repo to take those artifacts from?
>
> Any idea?
>
> Best regards
>
> The POM for org.ow2.asm:asm-7.2:jar:7.2 is missing, no dependency
> information available
> Downloading from artifactory:
> http://gsarts04.skyguide.corp:8081/artifactory/libs/org/ow2/asm/asm-commons-7.2/7.2/asm-commons-7.2-7.2.pom
> The POM for org.ow2.asm:asm-commons-7.2:jar:7.2 is missing, no dependency
> information available
> Downloading from artifactory:
> http://gsarts04.skyguide.corp:8081/artifactory/libs/org/ow2/asm/asm-tree-7.2/7.2/asm-tree-7.2-7.2.pom
> The POM for org.ow2.asm:asm-tree-7.2:jar:7.2 is missing, no dependency
> information available
> Downloading from artifactory:
> http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html-boot-fx/1.7/net-java-html-boot-fx-1.7.pom
> The POM for org.netbeans.html:net-java-html-boot-fx:jar:1.7 is missing, no
> dependency information available
> Downloading from artifactory:
> http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html-boot-script/1.7/net-java-html-boot-script-1.7.pom
> The POM for org.netbeans.html:net-java-html-boot-script:jar:1.7 is
> missing, no dependency information available
> Downloading from artifactory:
> http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html-boot/1.7/net-java-html-boot-1.7.pom
> The POM for org.netbeans.html:net-java-html-boot:jar:1.7 is missing, no
> dependency information available
> Downloading from artifactory:
> http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html-geo/1.7/net-java-html-geo-1.7.pom
> The POM for org.netbeans.html:net-java-html-geo:jar:1.7 is missing, no
> dependency information available
> Downloading from artifactory:
> http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html-json/1.7/net-java-html-json-1.7.pom
> The POM for org.netbeans.html:net-java-html-json:jar:1.7 is missing, no
> dependency information available
> Downloading from artifactory:
> http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html-sound/1.7/net-java-html-sound-1.7.pom
> The POM for org.netbeans.html:net-java-html-sound:jar:1.7 is missing, no
> dependency information available
> Downloading from artifactory:
> http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html/1.7/net-java-html-1.7.pom
> The POM for org.netbeans.html:net-java-html:jar:1.7 is missing, no
> dependency information available
> Downloading from artifactory:
> http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/external/org-apache-commons-codec/RELEASE120/org-apache-commons-codec-RELEASE120.pom
> Progress (1): 559 B
>
> Downloaded from artifactory:
> http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/external/org-apache-commons-codec/RELEASE120/org-apache-commons-codec-RELEASE120.pom
> (559 B at 51 kB/s)
> Downloading from artifactory:
> http://gsarts04.skyguide.corp:8081/artifactory/libs/commons-io/org-apache-commons-io/2.6/org-apache-commons-io-2.6.pom
> The POM for commons-io:org-apache-commons-io:jar:2.6 is missing, no
> dependency information available
>
>


NB 12+ app builds with Maven no longer work

2020-11-11 Thread Jean-Marc Borer
Hello dear fellows,
I am building NB platform applications with Maven. I have seen that 120,
121 are finally available on maven central. However, when I try to change
my platform from 113 to 120 or 121 there are many dependencies that cannot
be solved. For example below you can see the dependencies that are coming
from the platform cluster.

I wonder how this could be built in the first place because for example
org.ow2.asm:asm-7.2:jar   simply doesn't exist. Same for the remaining
items... Am I missing a repo to take those artifacts from?

Any idea?

Best regards

The POM for org.ow2.asm:asm-7.2:jar:7.2 is missing, no dependency
information available
Downloading from artifactory:
http://gsarts04.skyguide.corp:8081/artifactory/libs/org/ow2/asm/asm-commons-7.2/7.2/asm-commons-7.2-7.2.pom
The POM for org.ow2.asm:asm-commons-7.2:jar:7.2 is missing, no dependency
information available
Downloading from artifactory:
http://gsarts04.skyguide.corp:8081/artifactory/libs/org/ow2/asm/asm-tree-7.2/7.2/asm-tree-7.2-7.2.pom
The POM for org.ow2.asm:asm-tree-7.2:jar:7.2 is missing, no dependency
information available
Downloading from artifactory:
http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html-boot-fx/1.7/net-java-html-boot-fx-1.7.pom
The POM for org.netbeans.html:net-java-html-boot-fx:jar:1.7 is missing, no
dependency information available
Downloading from artifactory:
http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html-boot-script/1.7/net-java-html-boot-script-1.7.pom
The POM for org.netbeans.html:net-java-html-boot-script:jar:1.7 is missing,
no dependency information available
Downloading from artifactory:
http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html-boot/1.7/net-java-html-boot-1.7.pom
The POM for org.netbeans.html:net-java-html-boot:jar:1.7 is missing, no
dependency information available
Downloading from artifactory:
http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html-geo/1.7/net-java-html-geo-1.7.pom
The POM for org.netbeans.html:net-java-html-geo:jar:1.7 is missing, no
dependency information available
Downloading from artifactory:
http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html-json/1.7/net-java-html-json-1.7.pom
The POM for org.netbeans.html:net-java-html-json:jar:1.7 is missing, no
dependency information available
Downloading from artifactory:
http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html-sound/1.7/net-java-html-sound-1.7.pom
The POM for org.netbeans.html:net-java-html-sound:jar:1.7 is missing, no
dependency information available
Downloading from artifactory:
http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/html/net-java-html/1.7/net-java-html-1.7.pom
The POM for org.netbeans.html:net-java-html:jar:1.7 is missing, no
dependency information available
Downloading from artifactory:
http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/external/org-apache-commons-codec/RELEASE120/org-apache-commons-codec-RELEASE120.pom
Progress (1): 559 B

Downloaded from artifactory:
http://gsarts04.skyguide.corp:8081/artifactory/libs/org/netbeans/external/org-apache-commons-codec/RELEASE120/org-apache-commons-codec-RELEASE120.pom
(559 B at 51 kB/s)
Downloading from artifactory:
http://gsarts04.skyguide.corp:8081/artifactory/libs/commons-io/org-apache-commons-io/2.6/org-apache-commons-io-2.6.pom
The POM for commons-io:org-apache-commons-io:jar:2.6 is missing, no
dependency information available


Re: VSCode bugs was: Apache NetBeans 12.2-beta3 is Available for Testing!

2020-11-11 Thread Geertjan Wielenga
There have been several changes and enhancements since I tried, I could try
again with the latest build?

Gj

On Wed, Nov 11, 2020 at 6:31 AM Jaroslav Tulach 
wrote:

> út 3. 11. 2020 v 18:44 odesílatel Geertjan Wielenga
>  napsal:
>
> > Without installing the Apache NetBeans Java Language Server, the attached
> > is what I see with the Micronaut scenario.
> >
> > What will I see different when the Apache NetBeans Java Language Server
> > extension is installed?
> >
>
> I am afraid the image hasn't gone through.
>
>
> > On Tue, Nov 3, 2020 at 6:40 PM Geertjan Wielenga <
> > geertjan.wiele...@googlemail.com> wrote:
> >
> >> How do I know that my code completion is coming from Apache NetBeans
> Java
> >> Language Server or from the Java Extension Pack from VS Code?
> >>
> >
> There are little differences. Moreover ANLS disables completion from the
> other Java extension when they are both active. The best is to disable the
> other extension explicitly. Or use JDK8 as the other extension only runs on
> JDK11+.
>
> -jt
>