[jira] [Assigned] (NETBEANS-4821) Cannot attach JavaFX Bean Info sources to Gradle library
[ https://issues.apache.org/jira/browse/NETBEANS-4821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jaroslav Tulach reassigned NETBEANS-4821: - Assignee: Anton Epple (was: Laszlo Kishalmi) > Cannot attach JavaFX Bean Info sources to Gradle library > > > Key: NETBEANS-4821 > URL: https://issues.apache.org/jira/browse/NETBEANS-4821 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 12.1 >Reporter: Jaroslav Tulach >Assignee: Anton Epple >Priority: Trivial > Attachments: image-2020-09-20-08-06-46-654.png > > > I am developing a sample demo using Gradle and I am unable to debug into a > library used in a test, as the source isn't available. To try: > {code:java} > $ git clone --single-branch --branch react4jdemo > https://github.com/jtulach/netbeans-html4j react4jdemo > $ cd react4jdemo > # following identifies the exact version I have on local disk: > react4jdemo$ git log | head -n5 > commit 1e18917d0be1fc090cc9500c8286119710a29fde > Author: Jaroslav Tulach > Date: Sun Sep 20 07:50:11 2020 +0200Verify component class is > accessible before generating subclass{code} > and open that and its {{api}} subproject in NetBeans 12.1. The following > picture... !image-2020-09-20-08-06-46-654.png! ... shows what I did: > * expand the API's project junit-browser-runner library > * select BrowserRunner.class file > * right click, Open => opens the bytecode > * click "Attach Sources" and "Download" > * an error is shown > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4821) Cannot attach JavaFX Bean Info sources to Gradle library
[ https://issues.apache.org/jira/browse/NETBEANS-4821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jaroslav Tulach updated NETBEANS-4821: -- Summary: Cannot attach JavaFX Bean Info sources to Gradle library (was: Cannot attach sources to Gradle library) > Cannot attach JavaFX Bean Info sources to Gradle library > > > Key: NETBEANS-4821 > URL: https://issues.apache.org/jira/browse/NETBEANS-4821 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 12.1 >Reporter: Jaroslav Tulach >Assignee: Laszlo Kishalmi >Priority: Trivial > Attachments: image-2020-09-20-08-06-46-654.png > > > I am developing a sample demo using Gradle and I am unable to debug into a > library used in a test, as the source isn't available. To try: > {code:java} > $ git clone --single-branch --branch react4jdemo > https://github.com/jtulach/netbeans-html4j react4jdemo > $ cd react4jdemo > # following identifies the exact version I have on local disk: > react4jdemo$ git log | head -n5 > commit 1e18917d0be1fc090cc9500c8286119710a29fde > Author: Jaroslav Tulach > Date: Sun Sep 20 07:50:11 2020 +0200Verify component class is > accessible before generating subclass{code} > and open that and its {{api}} subproject in NetBeans 12.1. The following > picture... !image-2020-09-20-08-06-46-654.png! ... shows what I did: > * expand the API's project junit-browser-runner library > * select BrowserRunner.class file > * right click, Open => opens the bytecode > * click "Attach Sources" and "Download" > * an error is shown > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4847) Changing set of modules in Module suite adds always adds applemenu & performance
[ https://issues.apache.org/jira/browse/NETBEANS-4847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17202518#comment-17202518 ] Jaroslav Tulach commented on NETBEANS-4847: --- {{applemenu.jdk9}} has been removed from the code base a week or two ago, btw. > Changing set of modules in Module suite adds always adds applemenu & > performance > > > Key: NETBEANS-4847 > URL: https://issues.apache.org/jira/browse/NETBEANS-4847 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Project >Affects Versions: 11.3 >Reporter: Svatopluk Dedic >Priority: Major > > When I exclude some modules from module suite (working with IDE cluster), the > GUI always removes some exclusions == adds certain modules back: > - applemenu.jdk9 > - performance > - performance.java > // cc:[~jtulach] -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4297) VM options threw a pointerNullException when moving controllers
[ https://issues.apache.org/jira/browse/NETBEANS-4297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17202488#comment-17202488 ] Laszlo Kishalmi commented on NETBEANS-4297: --- Also can you check it with and without nb-javac as well? > VM options threw a pointerNullException when moving controllers > --- > > Key: NETBEANS-4297 > URL: https://issues.apache.org/jira/browse/NETBEANS-4297 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler >Affects Versions: 11.3 > Environment: Windows 10 x64 // JavaFX 11.0.2 // JDK 11.0.7 // Maven > 1.6.0 plugin // Scene Builder 11 // Netbeans 11.3 // Jfoenix 9.0.8 >Reporter: Diego Campos >Priority: Major > Labels: NetBeans, error-feedback, newbie > Fix For: 11.3 > > Attachments: bug report.txt > > > Issue came up when moving the default maven archetype controllers (primary > and secondary controllers) to a different package. VM options were added as > for JavaFX 11 module to JDK 11. Once I made a different package and dragged > the two controllers into it, the error appeared. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4297) VM options threw a pointerNullException when moving controllers
[ https://issues.apache.org/jira/browse/NETBEANS-4297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Kishalmi updated NETBEANS-4297: -- Priority: Major (was: Blocker) > VM options threw a pointerNullException when moving controllers > --- > > Key: NETBEANS-4297 > URL: https://issues.apache.org/jira/browse/NETBEANS-4297 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler >Affects Versions: 11.3 > Environment: Windows 10 x64 // JavaFX 11.0.2 // JDK 11.0.7 // Maven > 1.6.0 plugin // Scene Builder 11 // Netbeans 11.3 // Jfoenix 9.0.8 >Reporter: Diego Campos >Priority: Major > Labels: NetBeans, error-feedback, newbie > Fix For: 11.3 > > Attachments: bug report.txt > > > Issue came up when moving the default maven archetype controllers (primary > and secondary controllers) to a different package. VM options were added as > for JavaFX 11 module to JDK 11. Once I made a different package and dragged > the two controllers into it, the error appeared. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4297) VM options threw a pointerNullException when moving controllers
[ https://issues.apache.org/jira/browse/NETBEANS-4297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17202487#comment-17202487 ] Laszlo Kishalmi commented on NETBEANS-4297: --- One of our JavaC-bugs, please try it with 12.1. I'll demote it to major as not everyone moves JavaFX controllers as a daytime job. > VM options threw a pointerNullException when moving controllers > --- > > Key: NETBEANS-4297 > URL: https://issues.apache.org/jira/browse/NETBEANS-4297 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler >Affects Versions: 11.3 > Environment: Windows 10 x64 // JavaFX 11.0.2 // JDK 11.0.7 // Maven > 1.6.0 plugin // Scene Builder 11 // Netbeans 11.3 // Jfoenix 9.0.8 >Reporter: Diego Campos >Priority: Blocker > Labels: NetBeans, error-feedback, newbie > Fix For: 11.3 > > Attachments: bug report.txt > > > Issue came up when moving the default maven archetype controllers (primary > and secondary controllers) to a different package. VM options were added as > for JavaFX 11 module to JDK 11. Once I made a different package and dragged > the two controllers into it, the error appeared. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Resolved] (NETBEANS-4696) NetBeans 12.1-beta1 sometimes hangs on open
[ https://issues.apache.org/jira/browse/NETBEANS-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Kishalmi resolved NETBEANS-4696. --- Fix Version/s: 12.1 Resolution: Fixed If it is resolved then mark it so! > NetBeans 12.1-beta1 sometimes hangs on open > --- > > Key: NETBEANS-4696 > URL: https://issues.apache.org/jira/browse/NETBEANS-4696 > Project: NetBeans > Issue Type: Bug > Components: ide - Performance >Affects Versions: 12.1 > Environment: Linux (Debian "Buster") > OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10) >Reporter: Glenn Holmer >Priority: Blocker > Labels: deadlock, pull-requests-available > Fix For: 12.1 > > Attachments: 12.1-vc1-thread-dump-orac.txt, > nb12.1-beta1-thread-dump.png, nb12.1-beta1-thread-dump.txt, > netbeans-12.1-thread-dump.txt > > Time Spent: 1h 10m > Remaining Estimate: 0h > > > NetBeans sometimes hangs on startup; the symptom is a stalled "Opening > Projects" progress bar. I haven't been able to find a repro case, but I'm > attaching a thread dump (from VisualVM) and screen shot. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Resolved] (NETBEANS-4204) java.lang.IllegalArgumentException: 2.0.0 is unknown version
[ https://issues.apache.org/jira/browse/NETBEANS-4204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Kishalmi resolved NETBEANS-4204. --- Fix Version/s: 12.2 Resolution: Fixed With the removal of the Oracle Jet plugin, this issue shall be resolved as well. > java.lang.IllegalArgumentException: 2.0.0 is unknown version > > > Key: NETBEANS-4204 > URL: https://issues.apache.org/jira/browse/NETBEANS-4204 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 11.3 > Environment: Windows 10 64 bit version running on an AMD A10 Acer > Aspire laptop. >Reporter: Ian Martin James Berry >Assignee: Laszlo Kishalmi >Priority: Major > Fix For: 12.2 > > Attachments: IDE Log.txt, UI Log > > > Following this Spring MVC tutorial > [https://www.djamware.com/post/5d9896d3abbb349ea4003e94/spring-boot-tutorial-build-an-mvc-java-web-app-using-netbeans] > I created a Gradle Project using [https://start.spring.io/] > I downloaded the project as a zip and unzipped it into the Netbeans project > folder, opened this as a project in Netbeans and built it. > The error occurred during the first run of the project. > Running a second time produced this error: > Exception in thread "task-2" java.lang.IllegalStateException: > EntityManagerFactory is closed > at > org.hibernate.internal.SessionFactoryImpl.validateNotClosed(SessionFactoryImpl.java:507) > at > org.hibernate.internal.SessionFactoryImpl.getProperties(SessionFactoryImpl.java:501) > at > org.springframework.boot.autoconfigure.orm.jpa.DataSourceInitializedPublisher.findDataSource(DataSourceInitializedPublisher.java:105) > at > org.springframework.boot.autoconfigure.orm.jpa.DataSourceInitializedPublisher.publishEventIfRequired(DataSourceInitializedPublisher.java:97) > at > org.springframework.boot.autoconfigure.orm.jpa.DataSourceInitializedPublisher.access$100(DataSourceInitializedPublisher.java:50) > at > org.springframework.boot.autoconfigure.orm.jpa.DataSourceInitializedPublisher$DataSourceSchemaCreatedPublisher.lambda$postProcessEntityManagerFactory$0(DataSourceInitializedPublisher.java:200) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Resolved] (NETBEANS-3992) Fields are shown as unused even there are possible getters and setters via lombok
[ https://issues.apache.org/jira/browse/NETBEANS-3992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Kishalmi resolved NETBEANS-3992. --- Fix Version/s: 12.2 Resolution: Fixed Just checked the your project with the latest dev code. The fiels is not marked as unused, however if I remove the getter and setter annotation it got the unused mark. Adding the annotations back, clears the marking, so it's fine now. > Fields are shown as unused even there are possible getters and setters via > lombok > - > > Key: NETBEANS-3992 > URL: https://issues.apache.org/jira/browse/NETBEANS-3992 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler, java - Editor, projects - Gradle >Affects Versions: 12.0, 11.3 > Environment: OpenJDK 11.0.2 > Gradle 6.2.2, 6.4.1 >Reporter: Netbeans User 2019 >Assignee: Laszlo Kishalmi >Priority: Major > Labels: Lombok > Fix For: 12.2 > > Attachments: nbissuesproject.zip > > > fields that have getters and setters via lombok is presented as unsued since > 11.3 (no such issue has been seen in 11.2) -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4832) fxml code completion fails with modular java
[ https://issues.apache.org/jira/browse/NETBEANS-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17202472#comment-17202472 ] Ernie Rael commented on NETBEANS-4832: -- Here's the stacktraces associated with the NPE. The assert stack is in the messages log. To recreate, cursor after "" (not in a UI element) then hit Ctrl-Space. {code} INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for kind = CLASS INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: ElementHandle[kind=CLASS; sigs=javafx.scene.Node ] SEVERE [org.openide.util.Exceptions] java.lang.NullPointerException at jdk.compiler/com.sun.tools.javac.model.JavacTypes.validateTypeNotIn(JavacTypes.java:311) at jdk.compiler/com.sun.tools.javac.model.JavacTypes.isAssignable(JavacTypes.java:104) at org.netbeans.modules.javafx2.editor.completion.impl.FxIncludeCompleter.createCompleter(FxIncludeCompleter.java:73) at org.netbeans.modules.javafx2.editor.FXMLCompletion2$Q$Task.run(FXMLCompletion2.java:187) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:357) at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:340) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335) at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178) Caused: org.netbeans.modules.parsing.spi.ParseException at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:186) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:311) at org.netbeans.modules.javafx2.editor.FXMLCompletion2$Q$Task.run(FXMLCompletion2.java:159) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335) at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178) Caused: org.netbeans.modules.parsing.spi.ParseException at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:186) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81) [catch] at org.netbeans.modules.javafx2.editor.FXMLCompletion2$Q.query(FXMLCompletion2.java:106) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:198) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) {code} > fxml code completion fails with modular java > > > Key: NETBEANS-4832 > URL: https://issues.apache.org/jira/browse/NETBEANS-4832 > Project: NetBeans > Issue Type: Bug > Components: javafx - Editor > Environment: NB-12.1, jdk-14, no nb-javac, Win7, no userdir/cachedir, > startup do not import settings >Reporter: Ernie Rael >Priority: Major > Labels: modularization, pull-request-available, > pull-requests-available > Attachments: AllModulesAssert-messages-2.log > > Time Spent: 20m > Remaining Estimate: 0h > > To reproduce (create/open fxml file) > #
[jira] [Resolved] (NETBEANS-4842) Go To Source broken with JUnit5 (and Gradle)
[ https://issues.apache.org/jira/browse/NETBEANS-4842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Kishalmi resolved NETBEANS-4842. --- Fix Version/s: 12.2 Resolution: Fixed > Go To Source broken with JUnit5 (and Gradle) > > > Key: NETBEANS-4842 > URL: https://issues.apache.org/jira/browse/NETBEANS-4842 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Reporter: Ratcash Developer >Assignee: Laszlo Kishalmi >Priority: Major > Labels: pull-request-available > Fix For: 12.2 > > Time Spent: 0.5h > Remaining Estimate: 0h > > JUnit4 and TestNG logs tested method names like: > {noformat} > testResults.MainTest > testA > {noformat} > However, JUnit5 adds the method's parameters, like this: > {noformat} > testResults.SecondaryTest > testA() > testResults.SecondaryTest > testB() > testResults.SecondaryTest > [1] 1, 2 > {noformat} > The last one is a result of using > {noformat} > @ParametrizedTest > @MethodSource("generate") > public void testC(String a, String b) { >// do something clever > } > {noformat} > Such method names are not understood by the "Go To Source" functionality. > For gradle projects a quick work-around may be the following change to clean > method names: > {code:java} > --- > a/java/gradle.java/src/org/netbeans/modules/gradle/java/api/output/LocationOpener.java > +++ > b/java/gradle.java/src/org/netbeans/modules/gradle/java/api/output/LocationOpener.java > @@ -80,7 +80,18 @@ public final class LocationOpener { > } > } > > - private int getMethodLine(final FileObject fo, final String methodName) { > + private static String stripMethodParams(String methodNameWithParams) { > +final int paramsIndex = methodNameWithParams.indexOf("("); > +String cleanName = methodNameWithParams; > +if (paramsIndex > 0) { > +cleanName = methodNameWithParams.substring(0, paramsIndex); > +} > +return cleanName; > +} > + > +private int getMethodLine(final FileObject fo, final String > methodNameWithParams) { > +String methodName = stripMethodParams(methodNameWithParams); > final int[] line = new int[1]; > JavaSource javaSource = JavaSource.forFileObject(fo); > if (javaSource != null) { > {code} > Certainly, it'd much better if the LocationOpener became able interpret and > distinguish parameters and thus able navigate between overloaded methods as > well. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: [NETBEANS-4842] Bugfix: 'Go To Source' broken with JUnit5 and Gradle (#2401)
This is an automated email from the ASF dual-hosted git repository. lkishalmi pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new c2b8bf6 [NETBEANS-4842] Bugfix: 'Go To Source' broken with JUnit5 and Gradle (#2401) c2b8bf6 is described below commit c2b8bf67dcfb9b321e7d046d2de0764e1813504d Author: ratcash AuthorDate: Fri Sep 25 21:40:19 2020 +0200 [NETBEANS-4842] Bugfix: 'Go To Source' broken with JUnit5 and Gradle (#2401) * Fix for NETBEANS-4842 * look for char, instead of String. --- .../modules/gradle/java/api/output/LocationOpener.java | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/java/gradle.java/src/org/netbeans/modules/gradle/java/api/output/LocationOpener.java b/java/gradle.java/src/org/netbeans/modules/gradle/java/api/output/LocationOpener.java index 0974c80..8e8a60b 100644 --- a/java/gradle.java/src/org/netbeans/modules/gradle/java/api/output/LocationOpener.java +++ b/java/gradle.java/src/org/netbeans/modules/gradle/java/api/output/LocationOpener.java @@ -80,7 +80,17 @@ public final class LocationOpener { } } -private int getMethodLine(final FileObject fo, final String methodName) { + private static String stripMethodParams(String methodNameWithParams) { +final int paramsIndex = methodNameWithParams.indexOf('('); +String cleanName = methodNameWithParams; +if (paramsIndex > 0) { +cleanName = methodNameWithParams.substring(0, paramsIndex); +} +return cleanName; +} + +private int getMethodLine(final FileObject fo, final String methodNameWithParams) { +String methodName = stripMethodParams(methodNameWithParams); final int[] line = new int[1]; JavaSource javaSource = JavaSource.forFileObject(fo); if (javaSource != null) { - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4848) Annotation processing in Gradle 4.10 vs. 6.x versions
[ https://issues.apache.org/jira/browse/NETBEANS-4848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17202395#comment-17202395 ] Laszlo Kishalmi commented on NETBEANS-4848: --- I'd recommend to use the wrapper. I do not know when would I get to make the UI for per-project (more precisely per-root-project) configurable Gradle Distribution. BTW recently maven wrapper got quite popular as well. > Annotation processing in Gradle 4.10 vs. 6.x versions > - > > Key: NETBEANS-4848 > URL: https://issues.apache.org/jira/browse/NETBEANS-4848 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 12.0, 12.1 >Reporter: Jaroslav Tulach >Assignee: Laszlo Kishalmi >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > A description of a problem shall not start with finding the root cause, but > be it: It never stops surprising me how incompatible Gradle is. I have > written some {{build.gradle}} scripts for some version of Gradle, but then > after few new releases, those scripts don't work at all. The fix is simple: > include `gradlew` in your repository and fix Gradle version, but this is > so(!) different compared to Maven! Let me explain the problem: > * Follow [the > steps|https://github.com/JaroslavTulach/oraclejet4j/blob/master/README.md] > and get the repository, commit > [eee35b7|https://github.com/JaroslavTulach/oraclejet4j/commit/eee35b737795ef03c45028c0809b388aa8552367] > * Usage from command line works, but: > * Open the project in NetBeans. There are errors in {{RootViewModel}} class > My IDE cannot find {{RootViewModelBase}}, {{NavItemBase}}, > {{FooterLinkBase}}. Those classes are generated by annotation processor > (\{{"com.dukescript.api:javafx.beaninfo:0.6"}}). A normal behavior of > {{javac}} is to locate all annotation processors on "compile" class path and > use them. Gradle 4.10 does that. New versions of Gradle don't do that(). > > I assume NetBeans 12.x is using new version of Gradle internally and as such, > it doesn't find the annotation processor. As such the code is rendered as > broken. Can we fix that somehow (without rewriting the project to Maven ;))? -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4848) Annotation processing in Gradle 4.10 vs. 6.x versions
[ https://issues.apache.org/jira/browse/NETBEANS-4848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-4848: - Labels: pull-request-available (was: ) > Annotation processing in Gradle 4.10 vs. 6.x versions > - > > Key: NETBEANS-4848 > URL: https://issues.apache.org/jira/browse/NETBEANS-4848 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 12.0, 12.1 >Reporter: Jaroslav Tulach >Assignee: Laszlo Kishalmi >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > A description of a problem shall not start with finding the root cause, but > be it: It never stops surprising me how incompatible Gradle is. I have > written some {{build.gradle}} scripts for some version of Gradle, but then > after few new releases, those scripts don't work at all. The fix is simple: > include `gradlew` in your repository and fix Gradle version, but this is > so(!) different compared to Maven! Let me explain the problem: > * Follow [the > steps|https://github.com/JaroslavTulach/oraclejet4j/blob/master/README.md] > and get the repository, commit > [eee35b7|https://github.com/JaroslavTulach/oraclejet4j/commit/eee35b737795ef03c45028c0809b388aa8552367] > * Usage from command line works, but: > * Open the project in NetBeans. There are errors in {{RootViewModel}} class > My IDE cannot find {{RootViewModelBase}}, {{NavItemBase}}, > {{FooterLinkBase}}. Those classes are generated by annotation processor > (\{{"com.dukescript.api:javafx.beaninfo:0.6"}}). A normal behavior of > {{javac}} is to locate all annotation processors on "compile" class path and > use them. Gradle 4.10 does that. New versions of Gradle don't do that(). > > I assume NetBeans 12.x is using new version of Gradle internally and as such, > it doesn't find the annotation processor. As such the code is rendered as > broken. Can we fix that somehow (without rewriting the project to Maven ;))? -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-4849) SQL Script that runs successfully shows an error count
Kenneth Fogel created NETBEANS-4849: --- Summary: SQL Script that runs successfully shows an error count Key: NETBEANS-4849 URL: https://issues.apache.org/jira/browse/NETBEANS-4849 Project: NetBeans Issue Type: Bug Components: db - MySQL Affects Versions: 12.0 Environment: NetBeans 12, Java 14 (AdoptOpenJDK), MySQL 8, Connector/J 8.0.21 Reporter: Kenneth Fogel Fix For: Next A script that creates 3 tables, one of which is a bridge table, runs successfully in a MySQL DB connection in NetBeans. However, it ends with the following: Execution finished after 0.399 s, 86 errors occurred. There are no errors. Here is the script: USE AQUARIUM; SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS StudentBrCourse; DROP TABLE IF EXISTS Students; DROP TABLE IF EXISTS Courses; SET FOREIGN_KEY_CHECKS = 1; CREATE TABLE Students( StudentID INT, UserName VARCHAR(255), FirstName VARCHAR(255), Email VARCHAR(255), PhoneNumber INT, BeginningDate TIME, EndingDate TIME, MaxHours INT, PRIMARY KEY(StudentID) ); CREATE TABLE Courses( CourseID INT, CourseAbbreviation VARCHAR(255), CourseNumber INT, SectionNumber INT, ProfessorID INT, PRIMARY KEY (CourseID) ); CREATE TABLE StudentBrCourse( MyKey int, StudentID int, CourseID int, CONSTRAINT fkstudentid FOREIGN KEY (StudentID) REFERENCES Students(StudentID), CONSTRAINT fkcourseid FOREIGN KEY (CourseID) REFERENCES Courses(CourseID), PRIMARY KEY (MyKey) ); -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4848) Annotation processing in Gradle 4.10 vs. 6.x versions
[ https://issues.apache.org/jira/browse/NETBEANS-4848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17202287#comment-17202287 ] Laszlo Kishalmi commented on NETBEANS-4848: --- Hmm. It seems to be a bug indeed. With Gradle version below (I have to look up the version) NetBeans just shall return the compile classpath as annotation processor path. I'm going to figure something out. Anyway this week seems to be a classpath week... > Annotation processing in Gradle 4.10 vs. 6.x versions > - > > Key: NETBEANS-4848 > URL: https://issues.apache.org/jira/browse/NETBEANS-4848 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 12.0, 12.1 >Reporter: Jaroslav Tulach >Assignee: Laszlo Kishalmi >Priority: Major > > A description of a problem shall not start with finding the root cause, but > be it: It never stops surprising me how incompatible Gradle is. I have > written some {{build.gradle}} scripts for some version of Gradle, but then > after few new releases, those scripts don't work at all. The fix is simple: > include `gradlew` in your repository and fix Gradle version, but this is > so(!) different compared to Maven! Let me explain the problem: > * Follow [the > steps|https://github.com/JaroslavTulach/oraclejet4j/blob/master/README.md] > and get the repository, commit > [eee35b7|https://github.com/JaroslavTulach/oraclejet4j/commit/eee35b737795ef03c45028c0809b388aa8552367] > * Usage from command line works, but: > * Open the project in NetBeans. There are errors in {{RootViewModel}} class > My IDE cannot find {{RootViewModelBase}}, {{NavItemBase}}, > {{FooterLinkBase}}. Those classes are generated by annotation processor > (\{{"com.dukescript.api:javafx.beaninfo:0.6"}}). A normal behavior of > {{javac}} is to locate all annotation processors on "compile" class path and > use them. Gradle 4.10 does that. New versions of Gradle don't do that(). > > I assume NetBeans 12.x is using new version of Gradle internally and as such, > it doesn't find the annotation processor. As such the code is rendered as > broken. Can we fix that somehow (without rewriting the project to Maven ;))? -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4468) No dependent plugins are available at Apache NetBeans plugin portal for Hibernate
[ https://issues.apache.org/jira/browse/NETBEANS-4468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17202280#comment-17202280 ] Lenin Castillo commented on NETBEANS-4468: -- Thank very much! It is working > No dependent plugins are available at Apache NetBeans plugin portal for > Hibernate > - > > Key: NETBEANS-4468 > URL: https://issues.apache.org/jira/browse/NETBEANS-4468 > Project: NetBeans > Issue Type: Improvement > Components: javaee - Hibernate > Environment: Debain 10.4 Buster AMD 64-bits > openjdk 11.0.7 2020-04-14 LTS > Apache NetBeans 12.0 LTS >Reporter: Swapnil Sidram Nagtilak >Priority: Major > Labels: Debian > Attachments: error.png, hibernate plugin.png, > image-2020-07-20-08-31-46-458.png, image-2020-07-20-08-32-13-869.png, > image-2020-07-20-08-32-33-110.png, image-2020-07-20-08-33-01-925.png, > image-2020-07-20-08-37-07-773.png, image-2020-07-20-08-38-48-458.png > > > In Apache NetBeans 12.0 LTS > When I'm trying to install Hibernate plugin it says : > *Some plugins require plugin Freemarker Integration to be installed* > *^The plugin Freemarker Integration is requested in implementation version > 238.^* > ^{color:#172b4d}*The following plugin is affected:*{color}^ > {color:#172b4d}*^Hibernate^* {color} > > {color:#172b4d}But at {color:#de350b}Apache Plugin Portal{color} *Freemarker* > plugin is not available. {color} > {color:#172b4d}I tried installing *Freemarker* plugin from old *NetBeans' > plugin portal*{color} > {color:#172b4d}*[FreeMarker support for > NetBeans{color}|http://plugins.netbeans.org/plugin/58284/freemarker-support-for-netbeans]* > but getting same error. > !error.png! > > {color:#172b4d}Please make them available on *Apache Plugin Portal*{color} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4848) Annotation processing in Gradle 4.10 vs. 6.x versions
[ https://issues.apache.org/jira/browse/NETBEANS-4848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17202245#comment-17202245 ] Jaroslav Tulach commented on NETBEANS-4848: --- Using Tools/Options/Java/Gradle and setting _Use Standard Gradle Version to 4.10_ (and restarting) fixes the problem. However I don't want to change the Gradle version for all projects. Couldn't the IDE use `gradlew` to deduce the classpath/processor path? Btw. the checkbox _Preffer to use Gradle Wrapper that Comes with the Project_ is checked. > Annotation processing in Gradle 4.10 vs. 6.x versions > - > > Key: NETBEANS-4848 > URL: https://issues.apache.org/jira/browse/NETBEANS-4848 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 12.0, 12.1 >Reporter: Jaroslav Tulach >Assignee: Laszlo Kishalmi >Priority: Major > > A description of a problem shall not start with finding the root cause, but > be it: It never stops surprising me how incompatible Gradle is. I have > written some {{build.gradle}} scripts for some version of Gradle, but then > after few new releases, those scripts don't work at all. The fix is simple: > include `gradlew` in your repository and fix Gradle version, but this is > so(!) different compared to Maven! Let me explain the problem: > * Follow [the > steps|https://github.com/JaroslavTulach/oraclejet4j/blob/master/README.md] > and get the repository, commit > [eee35b7|https://github.com/JaroslavTulach/oraclejet4j/commit/eee35b737795ef03c45028c0809b388aa8552367] > * Usage from command line works, but: > * Open the project in NetBeans. There are errors in {{RootViewModel}} class > My IDE cannot find {{RootViewModelBase}}, {{NavItemBase}}, > {{FooterLinkBase}}. Those classes are generated by annotation processor > (\{{"com.dukescript.api:javafx.beaninfo:0.6"}}). A normal behavior of > {{javac}} is to locate all annotation processors on "compile" class path and > use them. Gradle 4.10 does that. New versions of Gradle don't do that(). > > I assume NetBeans 12.x is using new version of Gradle internally and as such, > it doesn't find the annotation processor. As such the code is rendered as > broken. Can we fix that somehow (without rewriting the project to Maven ;))? -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-4848) Annotation processing in Gradle 4.10 vs. 6.x versions
Jaroslav Tulach created NETBEANS-4848: - Summary: Annotation processing in Gradle 4.10 vs. 6.x versions Key: NETBEANS-4848 URL: https://issues.apache.org/jira/browse/NETBEANS-4848 Project: NetBeans Issue Type: Bug Components: projects - Gradle Affects Versions: 12.0, 12.1 Reporter: Jaroslav Tulach Assignee: Laszlo Kishalmi A description of a problem shall not start with finding the root cause, but be it: It never stops surprising me how incompatible Gradle is. I have written some {{build.gradle}} scripts for some version of Gradle, but then after few new releases, those scripts don't work at all. The fix is simple: include `gradlew` in your repository and fix Gradle version, but this is so(!) different compared to Maven! Let me explain the problem: * Follow [the steps|https://github.com/JaroslavTulach/oraclejet4j/blob/master/README.md] and get the repository, commit [eee35b7|https://github.com/JaroslavTulach/oraclejet4j/commit/eee35b737795ef03c45028c0809b388aa8552367] * Usage from command line works, but: * Open the project in NetBeans. There are errors in {{RootViewModel}} class My IDE cannot find {{RootViewModelBase}}, {{NavItemBase}}, {{FooterLinkBase}}. Those classes are generated by annotation processor (\{{"com.dukescript.api:javafx.beaninfo:0.6"}}). A normal behavior of {{javac}} is to locate all annotation processors on "compile" class path and use them. Gradle 4.10 does that. New versions of Gradle don't do that(). I assume NetBeans 12.x is using new version of Gradle internally and as such, it doesn't find the annotation processor. As such the code is rendered as broken. Can we fix that somehow (without rewriting the project to Maven ;))? -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4842) Go To Source broken with JUnit5 (and Gradle)
[ https://issues.apache.org/jira/browse/NETBEANS-4842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-4842: - Labels: pull-request-available (was: ) > Go To Source broken with JUnit5 (and Gradle) > > > Key: NETBEANS-4842 > URL: https://issues.apache.org/jira/browse/NETBEANS-4842 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Reporter: Ratcash Developer >Assignee: Laszlo Kishalmi >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > JUnit4 and TestNG logs tested method names like: > {noformat} > testResults.MainTest > testA > {noformat} > However, JUnit5 adds the method's parameters, like this: > {noformat} > testResults.SecondaryTest > testA() > testResults.SecondaryTest > testB() > testResults.SecondaryTest > [1] 1, 2 > {noformat} > The last one is a result of using > {noformat} > @ParametrizedTest > @MethodSource("generate") > public void testC(String a, String b) { >// do something clever > } > {noformat} > Such method names are not understood by the "Go To Source" functionality. > For gradle projects a quick work-around may be the following change to clean > method names: > {code:java} > --- > a/java/gradle.java/src/org/netbeans/modules/gradle/java/api/output/LocationOpener.java > +++ > b/java/gradle.java/src/org/netbeans/modules/gradle/java/api/output/LocationOpener.java > @@ -80,7 +80,18 @@ public final class LocationOpener { > } > } > > - private int getMethodLine(final FileObject fo, final String methodName) { > + private static String stripMethodParams(String methodNameWithParams) { > +final int paramsIndex = methodNameWithParams.indexOf("("); > +String cleanName = methodNameWithParams; > +if (paramsIndex > 0) { > +cleanName = methodNameWithParams.substring(0, paramsIndex); > +} > +return cleanName; > +} > + > +private int getMethodLine(final FileObject fo, final String > methodNameWithParams) { > +String methodName = stripMethodParams(methodNameWithParams); > final int[] line = new int[1]; > JavaSource javaSource = JavaSource.forFileObject(fo); > if (javaSource != null) { > {code} > Certainly, it'd much better if the LocationOpener became able interpret and > distinguish parameters and thus able navigate between overloaded methods as > well. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4682) Java Record Formatting issue with use of annotation
[ https://issues.apache.org/jira/browse/NETBEANS-4682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-4682: - Labels: pull-request-available (was: ) > Java Record Formatting issue with use of annotation > --- > > Key: NETBEANS-4682 > URL: https://issues.apache.org/jira/browse/NETBEANS-4682 > Project: NetBeans > Issue Type: Bug > Components: java - Editor >Affects Versions: 12.0 >Reporter: Arunava Sinha >Assignee: Akhilesh Singh >Priority: Major > Labels: pull-request-available > Fix For: 12.2 > > Time Spent: 50m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-4847) Changing set of modules in Module suite adds always adds applemenu & performance
Svatopluk Dedic created NETBEANS-4847: - Summary: Changing set of modules in Module suite adds always adds applemenu & performance Key: NETBEANS-4847 URL: https://issues.apache.org/jira/browse/NETBEANS-4847 Project: NetBeans Issue Type: Bug Components: apisupport - Project Affects Versions: 11.3 Reporter: Svatopluk Dedic When I exclude some modules from module suite (working with IDE cluster), the GUI always removes some exclusions == adds certain modules back: - applemenu.jdk9 - performance - performance.java // cc:[~jtulach] -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4832) fxml code completion fails with modular java
[ https://issues.apache.org/jira/browse/NETBEANS-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-4832: - Labels: modularization pull-request-available pull-requests-available (was: modularization pull-requests-available) > fxml code completion fails with modular java > > > Key: NETBEANS-4832 > URL: https://issues.apache.org/jira/browse/NETBEANS-4832 > Project: NetBeans > Issue Type: Bug > Components: javafx - Editor > Environment: NB-12.1, jdk-14, no nb-javac, Win7, no userdir/cachedir, > startup do not import settings >Reporter: Ernie Rael >Priority: Major > Labels: modularization, pull-request-available, > pull-requests-available > Attachments: AllModulesAssert-messages-2.log > > Time Spent: 20m > Remaining Estimate: 0h > > To reproduce (create/open fxml file) > # NewProject > JavaWithMaven > FXML JavaFX Maven Archetype (Gluon) > # Open primary.fxml, in "other sources" "source/main/resources" > # put cursor within xml, for example after "" > # Enter Ctrl-Space to bring up code completion > Observe: > * Typically have to go through a couple web certification dialogs > * Typically repeat Ctrl-Space and there's a "downloading..." that never > finishes > Note: Works OK when running on and using jdk1.8 with nb-javac. > Fails with JDK assertion: Assert.checkNonNull(allModules) > (full message log attached) > {code} > java.lang.AssertionError at > jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:155) at > jdk.compiler/com.sun.tools.javac.util.Assert.checkNonNull(Assert.java:62) at > jdk.compiler/com.sun.tools.javac.comp.Modules.allModules(Modules.java:1205) > at > jdk.compiler/com.sun.tools.javac.model.JavacElements.getAllModuleElements(JavacElements.java:126) > at > org.netbeans.modules.java.source.ElementUtils.getTypeElementByBinaryName(ElementUtils.java:49) > at > org.netbeans.api.java.source.ElementHandle.getTypeElementByBinaryName(ElementHandle.java:666) > at > org.netbeans.api.java.source.ElementHandle.resolveImpl(ElementHandle.java:163) > at > org.netbeans.api.java.source.ElementHandle.resolve(ElementHandle.java:132) at > org.netbeans.modules.javafx2.editor.completion.impl.InstanceCompleter.(InstanceCompleter.java:54) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4840) NPE when activating plugins
[ https://issues.apache.org/jira/browse/NETBEANS-4840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-4840: - Labels: pull-request-available (was: ) > NPE when activating plugins > --- > > Key: NETBEANS-4840 > URL: https://issues.apache.org/jira/browse/NETBEANS-4840 > Project: NetBeans > Issue Type: Bug > Components: java - Platform >Affects Versions: 12.2 >Reporter: Jose >Assignee: Jose >Priority: Blocker > Labels: pull-request-available > Fix For: 12.2 > > Attachments: NPE-20200923.log > > Time Spent: 40m > Remaining Estimate: 0h > > Fresh build of current master and then try to activate any of the java > related plugins will end in a _java.lang.NullPointerException_. > Plugins that fail to activate: > * Developing NetBeans > * Groovy > * JavaFX2 > * Java SE > * Java Web and EE > This was integrated by > [PR-2390|https://github.com/apache/netbeans/pull/2390]. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4846) PHP Remote sources connection does not connect on Ubuntu 20.04 (works on Ubutu 18)
[ https://issues.apache.org/jira/browse/NETBEANS-4846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aveesh Kumar updated NETBEANS-4846: --- Description: In Ubuntu 20.04, Remote SFTP connections do NOT connect to server. They work in all Netbeans (12 thru 8) in Ubuntu 18.04 so it is something unique to Ubuntu 20.04 - Plain SSH of course works All combinations of where client is Ubuntu 18.04 works even when SSH/SFTP connection is to Ubuntu 20.04 servers (or Ubuntu 18) which means it is not server specific It is when Netbeans is installed to Ubuntu 20.04 that the SFTP connection does not connect to server - with user/password or running ssh agent Hopefully it is something small. Pl fix for this much needed functionality was: In Ubuntu 20.04, Remote SFTP connections do NOT connect to server They work in all Netbeans (12 thru 8) in Ubuntu 18.04 so it is something unique to Ubuntu 20.04 - Plain SSH of course works All combinations of where client is Ubuntu 18.04 works even when SSH/SFTP connection is to Ubuntu 20.04 servers (or Ubuntu 18) which means it is not server specific It is when Netbeans is installed to Ubuntu 20.04 that the SFTP connection does not connect to server - with user/password or running ssh agent Hopefully it is something small. Pl fix for this much needed functionality > PHP Remote sources connection does not connect on Ubuntu 20.04 (works on > Ubutu 18) > -- > > Key: NETBEANS-4846 > URL: https://issues.apache.org/jira/browse/NETBEANS-4846 > Project: NetBeans > Issue Type: Bug > Components: php - FTP Support >Affects Versions: 8.2, 9.0, 10.0, 11.0, 12.0, 11.1, 11.2, 11.3 > Environment: Ubuntu 20.04 >Reporter: Aveesh Kumar >Priority: Minor > Labels: SFTP, ssh-agent > Fix For: Next > > Attachments: Screenshot from 2020-09-25 18-31-37.png > > Original Estimate: 2h > Remaining Estimate: 2h > > In Ubuntu 20.04, Remote SFTP connections do NOT connect to server. > They work in all Netbeans (12 thru 8) in Ubuntu 18.04 > so it is something unique to Ubuntu 20.04 - Plain SSH of course works > All combinations of where client is Ubuntu 18.04 works even when SSH/SFTP > connection is to Ubuntu 20.04 servers (or Ubuntu 18) which means it is not > server specific > It is when Netbeans is installed to Ubuntu 20.04 that the SFTP connection > does not connect to server - with user/password or running ssh agent > Hopefully it is something small. Pl fix for this much needed functionality -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4846) PHP Remote sources connection does not connect on Ubuntu 20.04 (works on Ubutu 18)
[ https://issues.apache.org/jira/browse/NETBEANS-4846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aveesh Kumar updated NETBEANS-4846: --- Attachment: Screenshot from 2020-09-25 18-31-37.png > PHP Remote sources connection does not connect on Ubuntu 20.04 (works on > Ubutu 18) > -- > > Key: NETBEANS-4846 > URL: https://issues.apache.org/jira/browse/NETBEANS-4846 > Project: NetBeans > Issue Type: Bug > Components: php - FTP Support >Affects Versions: 8.2, 9.0, 10.0, 11.0, 12.0, 11.1, 11.2, 11.3 > Environment: Ubuntu 20.04 >Reporter: Aveesh Kumar >Priority: Minor > Labels: SFTP, ssh-agent > Fix For: Next > > Attachments: Screenshot from 2020-09-25 18-31-37.png > > Original Estimate: 2h > Remaining Estimate: 2h > > In Ubuntu 20.04, Remote SFTP connections do NOT connect to server > They work in all Netbeans (12 thru 8) in Ubuntu 18.04 > so it is something unique to Ubuntu 20.04 - Plain SSH of course works > All combinations of where client is Ubuntu 18.04 works even when SSH/SFTP > connection is to Ubuntu 20.04 servers (or Ubuntu 18) which means it is not > server specific > It is when Netbeans is installed to Ubuntu 20.04 that the SFTP connection > does not connect to server - with user/password or running ssh agent > Hopefully it is something small. Pl fix for this much needed functionality -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-4846) PHP Remote sources connection does not connect on Ubuntu 20.04 (works on Ubutu 18)
[ https://issues.apache.org/jira/browse/NETBEANS-4846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aveesh Kumar updated NETBEANS-4846: --- Description: In Ubuntu 20.04, Remote SFTP connections do NOT connect to server They work in all Netbeans (12 thru 8) in Ubuntu 18.04 so it is something unique to Ubuntu 20.04 - Plain SSH of course works All combinations of where client is Ubuntu 18.04 works even when SSH/SFTP connection is to Ubuntu 20.04 servers (or Ubuntu 18) which means it is not server specific It is when Netbeans is installed to Ubuntu 20.04 that the SFTP connection does not connect to server - with user/password or running ssh agent Hopefully it is something small. Pl fix for this much needed functionality was: Remote SFTP connections do NOT connect to server Ubuntu 20.04 They work in all Netbeans (12 thru 8) in Ubuntu 18.04 so it is something unique to Ubuntu 20.04 - Plain SSH of course works All combinations of where client is Ubuntu 18.04 works even when SSH/SFTP connection is to Ubuntu 20.04 servers (or Ubuntu 18) which means it is not server specific It is when Netbeans is installed to Ubuntu 20.04 that the SFTP connection does not connect to server - with user/password or running ssh agent Hopefully it is something small. Pl fix for this much needed functionality > PHP Remote sources connection does not connect on Ubuntu 20.04 (works on > Ubutu 18) > -- > > Key: NETBEANS-4846 > URL: https://issues.apache.org/jira/browse/NETBEANS-4846 > Project: NetBeans > Issue Type: Bug > Components: php - FTP Support >Affects Versions: 8.2, 9.0, 10.0, 11.0, 12.0, 11.1, 11.2, 11.3 > Environment: Ubuntu 20.04 >Reporter: Aveesh Kumar >Priority: Minor > Labels: SFTP, ssh-agent > Fix For: Next > > Original Estimate: 2h > Remaining Estimate: 2h > > In Ubuntu 20.04, Remote SFTP connections do NOT connect to server > They work in all Netbeans (12 thru 8) in Ubuntu 18.04 > so it is something unique to Ubuntu 20.04 - Plain SSH of course works > All combinations of where client is Ubuntu 18.04 works even when SSH/SFTP > connection is to Ubuntu 20.04 servers (or Ubuntu 18) which means it is not > server specific > It is when Netbeans is installed to Ubuntu 20.04 that the SFTP connection > does not connect to server - with user/password or running ssh agent > Hopefully it is something small. Pl fix for this much needed functionality -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-4846) PHP Remote sources connection does not connect on Ubuntu 20.04 (works on Ubutu 18)
Aveesh Kumar created NETBEANS-4846: -- Summary: PHP Remote sources connection does not connect on Ubuntu 20.04 (works on Ubutu 18) Key: NETBEANS-4846 URL: https://issues.apache.org/jira/browse/NETBEANS-4846 Project: NetBeans Issue Type: Bug Components: php - FTP Support Affects Versions: 11.3, 11.2, 11.1, 12.0, 11.0, 10.0, 9.0, 8.2 Environment: Ubuntu 20.04 Reporter: Aveesh Kumar Fix For: Next Remote SFTP connections do NOT connect to server Ubuntu 20.04 They work in all Netbeans (12 thru 8) in Ubuntu 18.04 so it is something unique to Ubuntu 20.04 - Plain SSH of course works All combinations of where client is Ubuntu 18.04 works even when SSH/SFTP connection is to Ubuntu 20.04 servers (or Ubuntu 18) which means it is not server specific It is when Netbeans is installed to Ubuntu 20.04 that the SFTP connection does not connect to server - with user/password or running ssh agent Hopefully it is something small. Pl fix for this much needed functionality -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4842) Go To Source broken with JUnit5 (and Gradle)
[ https://issues.apache.org/jira/browse/NETBEANS-4842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17202058#comment-17202058 ] Ratcash Developer commented on NETBEANS-4842: - As you wish: [https://github.com/apache/netbeans/pull/2401] > Go To Source broken with JUnit5 (and Gradle) > > > Key: NETBEANS-4842 > URL: https://issues.apache.org/jira/browse/NETBEANS-4842 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Reporter: Ratcash Developer >Assignee: Laszlo Kishalmi >Priority: Major > > JUnit4 and TestNG logs tested method names like: > {noformat} > testResults.MainTest > testA > {noformat} > However, JUnit5 adds the method's parameters, like this: > {noformat} > testResults.SecondaryTest > testA() > testResults.SecondaryTest > testB() > testResults.SecondaryTest > [1] 1, 2 > {noformat} > The last one is a result of using > {noformat} > @ParametrizedTest > @MethodSource("generate") > public void testC(String a, String b) { >// do something clever > } > {noformat} > Such method names are not understood by the "Go To Source" functionality. > For gradle projects a quick work-around may be the following change to clean > method names: > {code:java} > --- > a/java/gradle.java/src/org/netbeans/modules/gradle/java/api/output/LocationOpener.java > +++ > b/java/gradle.java/src/org/netbeans/modules/gradle/java/api/output/LocationOpener.java > @@ -80,7 +80,18 @@ public final class LocationOpener { > } > } > > - private int getMethodLine(final FileObject fo, final String methodName) { > + private static String stripMethodParams(String methodNameWithParams) { > +final int paramsIndex = methodNameWithParams.indexOf("("); > +String cleanName = methodNameWithParams; > +if (paramsIndex > 0) { > +cleanName = methodNameWithParams.substring(0, paramsIndex); > +} > +return cleanName; > +} > + > +private int getMethodLine(final FileObject fo, final String > methodNameWithParams) { > +String methodName = stripMethodParams(methodNameWithParams); > final int[] line = new int[1]; > JavaSource javaSource = JavaSource.forFileObject(fo); > if (javaSource != null) { > {code} > Certainly, it'd much better if the LocationOpener became able interpret and > distinguish parameters and thus able navigate between overloaded methods as > well. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-4845) javaee.wildfly cannot be built without access to network
Jaroslav Tulach created NETBEANS-4845: - Summary: javaee.wildfly cannot be built without access to network Key: NETBEANS-4845 URL: https://issues.apache.org/jira/browse/NETBEANS-4845 Project: NetBeans Issue Type: Bug Components: serverplugins - WildFly Affects Versions: 12.0, 12.1 Reporter: Jaroslav Tulach Assignee: Emmanuel Hugonnet Hello Emmanuel, as noted [PR-2000|https://github.com/apache/netbeans/pull/2000#issuecomment-675890873] I have troubles building *wildfly* support behind corporate proxy. Probably the goal of "Removing external downloads and updating schemas" wasn't fully fulfilled. My proxy says that [http://java.sun.com/xml/ns/javaee/javaee_6.xsd] doesn't exists. When I replace: {code:java} --- a/enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-common_6_0_1.xsd +++ b/enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-common_6_0_1.xsd @@ -61,7 +61,7 @@ consistency with the Servlet API. - http://java.sun.com/xml/ns/javaee; schemaLocation="http://java.sun.com/xml/ns/javaee/javaee_6.xsd"/> + http://java.sun.com/xml/ns/javaee; schemaLocation="javaee_6.xsd"/> {code} Then my build succeeds. Btw. I did a grep and there are more places that would deserve replacement: {code:java} netbeans$ grep -r xsd.import.*namespace enterprise/javaee.wildfly/src/ enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/javaee_6.xsd: http://www.w3.org/XML/1998/namespace; enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-web_14_1.xsd: http://xmlns.jcp.org/xml/ns/javaee; schemaLocation="http://www.jboss.org/schema/jbossas/web-app_4_0.xsd"/> enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-common_6_0_1.xsd: http://java.sun.com/xml/ns/javaee; schemaLocation="javaee_6.xsd"/> enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-common_8_1.xsd: http://xmlns.jcp.org/xml/ns/javaee; schemaLocation="http://www.jboss.org/schema/jbossas/javaee_8.xsd"/> enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/javaee_8.xsd: http://www.w3.org/XML/1998/namespace; enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-web_7_3_1.xsd: http://java.sun.com/xml/ns/javaee; schemaLocation="http://www.jboss.org/schema/jbossas/web-app_3_0.xsd"/> {code} however when I tried to replace the other, I got missing file errors like {{FileNotFoundException: netbeans/enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/web-common_4_0.xsd}} - I guess there are additional transitive dependencies that need to be fixed. As such I decided to leave a note here rather than fixing just the one xsd file. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists