[jira] [Commented] (NETBEANS-4312) Errors shown / Packages not found while succesfully compiled with Gradle

2020-05-17 Thread Laszlo Kishalmi (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17109908#comment-17109908
 ] 

Laszlo Kishalmi commented on NETBEANS-4312:
---

According to the symptoms, this might be javac related. Test it with and 
without having nb-javac installed. Also in the pdf there is a  Controller.java 
selected and the CContoller class referenced in the code.
And again there could be an issue with Lombok. some of the Lombok versions does 
not play nice with NetBeans and right now the Gradle support misses the 
generated sources support.

> Errors shown / Packages not found while succesfully compiled with Gradle
> 
>
> Key: NETBEANS-4312
> URL: https://issues.apache.org/jira/browse/NETBEANS-4312
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.3
> Environment: JDK 11 OpenJDK Runtime Environment Zulu11.35+15-CA 
> (build 11.0.5+10-LTS)
> W10 64b
> Gradle 6.3
>Reporter: Franck VALLEE
>Priority: Critical
> Attachments: Netbeans-Bug.pdf
>
>
> Multiple issues in editor's error reports:
> 1) -> regular java packages (e.g. java.net.InetAddress) are proposed to be 
> removed as unused although they are actually used
> 2) -> import packages/classes are declared not found although they are 
> plainly declared in the dependencies section of build.gradle
> 3) > import packages / classes are declared not found when coming from 
> dependent sub-projects
>  (see attachment for more details)



--
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-4327) Apache NetBeans 12.0 beta3 goes very slowly after significant use

2020-05-17 Thread Laszlo Kishalmi (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17109899#comment-17109899
 ] 

Laszlo Kishalmi commented on NETBEANS-4327:
---

Well, this is a bit vague. The best thing you could do is attach some self 
profiling snapshots. See the icon at the right of the memory gauge.

> Apache NetBeans 12.0 beta3 goes very slowly after significant use
> -
>
> Key: NETBEANS-4327
> URL: https://issues.apache.org/jira/browse/NETBEANS-4327
> Project: NetBeans
>  Issue Type: Bug
>  Components: core
>Affects Versions: 12.0
> Environment: Mac OSX 10.15.4
>Reporter: David Gradwell
>Priority: Major
> Attachments: IDE Log.txt, UILog.txt
>
>
> Apache NetBeans 12.0 beta3 goes very slowly after significant use (say 2 
> hours +) and then on going debug sticks while scanning the classpath.
> This has happened at least 5 times in the last month.
> UIlog and IDE log attached.



--
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] [Closed] (NETBEANS-1474) GuiBuilder generates deprecated code for InputEvent key modifiers

2020-05-17 Thread John Lemcke (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-1474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Lemcke closed NETBEANS-1474.
-
Resolution: Duplicate

> GuiBuilder generates deprecated code for InputEvent key modifiers
> -
>
> Key: NETBEANS-1474
> URL: https://issues.apache.org/jira/browse/NETBEANS-1474
> Project: NetBeans
>  Issue Type: Bug
>  Components: guibuilder - Code
>Affects Versions: 9.0
>Reporter: John Lemcke
>Priority: Major
>
> The gui builder generates deprecated InputEvent.SHIFT_MASK instead of 
> InputEvent.SHIFT_DOWN_MASK for menu accelerators.
> Same for CTRL_MASK and ALT_MASK.
>  



--
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-4192) The Gui builder uses deprecated InputEvent *_MASK constant

2020-05-17 Thread John Lemcke (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Lemcke resolved NETBEANS-4192.
---
Fix Version/s: Next
   Resolution: Fixed

Fixed by commit 008323bcee88e1fcc878ae1eb0d20a4fc94a6131

> The Gui builder uses deprecated InputEvent *_MASK constant
> --
>
> Key: NETBEANS-4192
> URL: https://issues.apache.org/jira/browse/NETBEANS-4192
> Project: NetBeans
>  Issue Type: Bug
>Reporter: John Lemcke
>Assignee: John Lemcke
>Priority: Major
> Fix For: Next
>
>  Time Spent: 3.5h
>  Remaining Estimate: 0h
>
> When accelerator keys that contain modifiers are defined with the Key stroke 
> editor the generated code uses the deprecated InputEvent._MASK constants. 
> These should be replaced with the InputEvent._DOWN_MASK constants.
>  



--
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-4323) "Create Virtual Device de Android ADV Manager , no funciona correctamente para los dispositivos teléfono

2020-05-17 Thread Ernesto Campos Benitez (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17109620#comment-17109620
 ] 

Ernesto Campos Benitez commented on NETBEANS-4323:
--

Benas tardes Hector Espert.
Gracias por tu pronta respuesta, haré mi reporte en[NBANDRID-V2 plugin 
project],  conrespecto a mi reporte hecho en español, fue error mío, pensé que 
como tieneninternacionalizada su página se podía hacer el reporte en mi idioma, 
después detodo es el tercer idioma más hablado a nivel mundial con más de 
600,000,000personas que lo hablan...  

El domingo, 17 de mayo de 2020 09:42:04 GMT-5, Hector Espert (Jira) 
 escribió:  
 
 
    [ 
https://issues.apache.org/jira/browse/NETBEANS-4323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17109506#comment-17109506
 ] 

Hector Espert comentó en la incidencia NETBEANS-4323:
-

[Spanish]

Hola [~correo_isea]

Deberías abrir una issue en el proyecto del plugin 
[NBANDROID-V2|[https://github.com/NBANDROIDTEAM/NBANDROID-V2/issues]], este 
servicio es solo para problemas relacionados con el IDE de Netbeans.

Por otro lado, deberías usar el inglés para obtener una respuesta.

Saludos.

[English]

Hi [~correo_isea]

You should open an issue on [NBANDROID-V2 plugin 
project|[https://github.com/NBANDROIDTEAM/NBANDROID-V2/issues]], this service 
is only for issues related with the Netbeans IDE.

On the other hand, you should use English if you want to have a response.

Regards




--
Este mensaje fue enviado por Jira de Atlassian
(v8.3.4#803005)


> "Create Virtual Device de  Android  ADV Manager , no funciona correctamente 
> para los dispositivos teléfono
> --
>
> Key: NETBEANS-4323
> URL: https://issues.apache.org/jira/browse/NETBEANS-4323
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.0
> Environment: Mi máquina es W764 Bits, 6GB de memoria RAM Intel (r) 
> Core (TM) 2 Dúo CPU 2.33 MHz. Tiene instalado e ljdk-11.0.3_windows-x64.
>Reporter: Ernesto Campos Benitez
>Assignee: Ernesto Campos Benitez
>Priority: Major
> Fix For: 11.0
>
> Attachments: image-2020-05-10-22-53-24-024.png, 
> image-2020-05-10-22-53-59-660.png
>
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> Buenas noches, estoy empleando NetBeans 11, con el Plugin 
> NVANDROID_v2_master, el problema que tengo es que cuando quiero crear un 
> Android Virtual Device (AVD), la pantalla  "Create Virtual Device" de  
> Android  ADV Manager , no funciona correctamente para los dispositivos 
> teléfono, así es como aparece
>   !image-2020-05-10-22-53-24-024.png!
> Si  despliego el cursor de ratón por toda la ventana van a pareciendo partes 
> de la forma pero definitivamente no se puede hacer nada para continuar con el 
> trabajo de crear el AVD..
> El listado de teléfonos aparece al inicio con items de otro tipo de 
> dispositivo.
>  
> Agrego error indicado por el sistema
> java.lang.NullPointerExceptionjava.lang.NullPointerException at 
> org.netbeans.modules.android.avd.manager.ui.CreateAvdVisualPanel1.getDensityString(CreateAvdVisualPanel1.java:187)
>  at 
> org.netbeans.modules.android.avd.manager.ui.CreateAvdVisualPanel1$DevicesTableModel.getValueAt(CreateAvdVisualPanel1.java:429)
>  at java.desktop/javax.swing.JTable.getValueAt(JTable.java:2706) at 
> java.desktop/javax.swing.JTable.prepareRenderer(JTable.java:5721) at 
> java.desktop/javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2185)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:2087)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1883)
>  at java.desktop/javax.swing.plaf.ComponentUI.update(ComponentUI.java:161) at 
> java.desktop/javax.swing.JComponent.paintComponent(JComponent.java:797) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1074) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JViewport.paint(JViewport.java:737) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> 

[jira] [Closed] (NETBEANS-4323) "Create Virtual Device de Android ADV Manager , no funciona correctamente para los dispositivos teléfono

2020-05-17 Thread Hector Espert (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hector Espert closed NETBEANS-4323.
---
Resolution: Invalid

It is a plugin issue, not a Netbeans issue.

> "Create Virtual Device de  Android  ADV Manager , no funciona correctamente 
> para los dispositivos teléfono
> --
>
> Key: NETBEANS-4323
> URL: https://issues.apache.org/jira/browse/NETBEANS-4323
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.0
> Environment: Mi máquina es W764 Bits, 6GB de memoria RAM Intel (r) 
> Core (TM) 2 Dúo CPU 2.33 MHz. Tiene instalado e ljdk-11.0.3_windows-x64.
>Reporter: Ernesto Campos Benitez
>Assignee: Ernesto Campos Benitez
>Priority: Major
> Fix For: 11.0
>
> Attachments: image-2020-05-10-22-53-24-024.png, 
> image-2020-05-10-22-53-59-660.png
>
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> Buenas noches, estoy empleando NetBeans 11, con el Plugin 
> NVANDROID_v2_master, el problema que tengo es que cuando quiero crear un 
> Android Virtual Device (AVD), la pantalla  "Create Virtual Device" de  
> Android  ADV Manager , no funciona correctamente para los dispositivos 
> teléfono, así es como aparece
>   !image-2020-05-10-22-53-24-024.png!
> Si  despliego el cursor de ratón por toda la ventana van a pareciendo partes 
> de la forma pero definitivamente no se puede hacer nada para continuar con el 
> trabajo de crear el AVD..
> El listado de teléfonos aparece al inicio con items de otro tipo de 
> dispositivo.
>  
> Agrego error indicado por el sistema
> java.lang.NullPointerExceptionjava.lang.NullPointerException at 
> org.netbeans.modules.android.avd.manager.ui.CreateAvdVisualPanel1.getDensityString(CreateAvdVisualPanel1.java:187)
>  at 
> org.netbeans.modules.android.avd.manager.ui.CreateAvdVisualPanel1$DevicesTableModel.getValueAt(CreateAvdVisualPanel1.java:429)
>  at java.desktop/javax.swing.JTable.getValueAt(JTable.java:2706) at 
> java.desktop/javax.swing.JTable.prepareRenderer(JTable.java:5721) at 
> java.desktop/javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2185)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:2087)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1883)
>  at java.desktop/javax.swing.plaf.ComponentUI.update(ComponentUI.java:161) at 
> java.desktop/javax.swing.JComponent.paintComponent(JComponent.java:797) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1074) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JViewport.paint(JViewport.java:737) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JViewport.paint(JViewport.java:737) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JLayeredPane.paint(JLayeredPane.java:590) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paintToOffscreen(JComponent.java:5262) at 
> 

[jira] [Commented] (NETBEANS-4323) "Create Virtual Device de Android ADV Manager , no funciona correctamente para los dispositivos teléfono

2020-05-17 Thread Hector Espert (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17109506#comment-17109506
 ] 

Hector Espert commented on NETBEANS-4323:
-

[Spanish]

Hola [~correo_isea]

Deberías abrir una issue en el proyecto del plugin 
[NBANDROID-V2|[https://github.com/NBANDROIDTEAM/NBANDROID-V2/issues]], este 
servicio es solo para problemas relacionados con el IDE de Netbeans.

Por otro lado, deberías usar el inglés para obtener una respuesta.

Saludos.

[English]

Hi [~correo_isea]

You should open an issue on [NBANDROID-V2 plugin 
project|[https://github.com/NBANDROIDTEAM/NBANDROID-V2/issues]], this service 
is only for issues related with the Netbeans IDE.

On the other hand, you should use English if you want to have a response.

Regards

> "Create Virtual Device de  Android  ADV Manager , no funciona correctamente 
> para los dispositivos teléfono
> --
>
> Key: NETBEANS-4323
> URL: https://issues.apache.org/jira/browse/NETBEANS-4323
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.0
> Environment: Mi máquina es W764 Bits, 6GB de memoria RAM Intel (r) 
> Core (TM) 2 Dúo CPU 2.33 MHz. Tiene instalado e ljdk-11.0.3_windows-x64.
>Reporter: Ernesto Campos Benitez
>Assignee: Ernesto Campos Benitez
>Priority: Major
> Fix For: 11.0
>
> Attachments: image-2020-05-10-22-53-24-024.png, 
> image-2020-05-10-22-53-59-660.png
>
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> Buenas noches, estoy empleando NetBeans 11, con el Plugin 
> NVANDROID_v2_master, el problema que tengo es que cuando quiero crear un 
> Android Virtual Device (AVD), la pantalla  "Create Virtual Device" de  
> Android  ADV Manager , no funciona correctamente para los dispositivos 
> teléfono, así es como aparece
>   !image-2020-05-10-22-53-24-024.png!
> Si  despliego el cursor de ratón por toda la ventana van a pareciendo partes 
> de la forma pero definitivamente no se puede hacer nada para continuar con el 
> trabajo de crear el AVD..
> El listado de teléfonos aparece al inicio con items de otro tipo de 
> dispositivo.
>  
> Agrego error indicado por el sistema
> java.lang.NullPointerExceptionjava.lang.NullPointerException at 
> org.netbeans.modules.android.avd.manager.ui.CreateAvdVisualPanel1.getDensityString(CreateAvdVisualPanel1.java:187)
>  at 
> org.netbeans.modules.android.avd.manager.ui.CreateAvdVisualPanel1$DevicesTableModel.getValueAt(CreateAvdVisualPanel1.java:429)
>  at java.desktop/javax.swing.JTable.getValueAt(JTable.java:2706) at 
> java.desktop/javax.swing.JTable.prepareRenderer(JTable.java:5721) at 
> java.desktop/javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2185)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:2087)
>  at 
> java.desktop/javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1883)
>  at java.desktop/javax.swing.plaf.ComponentUI.update(ComponentUI.java:161) at 
> java.desktop/javax.swing.JComponent.paintComponent(JComponent.java:797) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1074) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JViewport.paint(JViewport.java:737) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> java.desktop/javax.swing.JViewport.paint(JViewport.java:737) at 
> java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907) at 
> java.desktop/javax.swing.JComponent.paint(JComponent.java:1083) at 
> 

[jira] [Assigned] (NETBEANS-3733) Cannot test single method with Maven and Junit 5

2020-05-17 Thread Svatopluk Dedic (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Svatopluk Dedic reassigned NETBEANS-3733:
-

Assignee: Svatopluk Dedic

> Cannot test single method with Maven and Junit 5
> 
>
> Key: NETBEANS-3733
> URL: https://issues.apache.org/jira/browse/NETBEANS-3733
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - JUnit, projects - Maven
>Affects Versions: 11.1, 11.2, 11.3
>Reporter: Bernard
>Assignee: Svatopluk Dedic
>Priority: Critical
>
> All defaults, hello world application as simple as possible.
> How to reproduce:
> Menu|File|New Project|Java with Maven|Java Application|Finish
> Projects|New|java Class|NewClass|Finish
> Add two methods:
> public void hello1() {
>  System.out.println("Hello 1");
>  }
>  
>  public void hello2() {
>  System.out.println("Hello 2");
>  }
> [Ctrl+Shift+U] Create / Update Tests|JUnit|OK
> generates test as expected, adds dependencies to POM as expected:
> 
>  
>  org.junit.jupiter
>  junit-jupiter-api
>  5.3.1
>  test
>  
>  
>  org.junit.jupiter
>  junit-jupiter-params
>  5.3.1
>  test
>  
>  
>  org.junit.jupiter
>  junit-jupiter-engine
>  5.3.1
>  test
>  
>  
> In generated class NewClassTest now I want to test the single method 
> "testHello2()"
> So I put cursor on it and right click, "Run Focused Test Method".
> I get a dialog:
> "Feature requires update of POM"
> "Executing single test method requires Surefire 2.8+ and JUnit in version 4.8 
> and bigger.
> Update your pom.xml?"
> I click "Yes"
> In pom.xml, another dependecy is added:
> 
>  junit
>  junit
>  4.11
>  
> Si I try again. Put cursor on the method and right click, "Run Focused Test 
> Method".
> I get a message
> "No tests executed for mavenproject1"
> This means that I cannot use the default way of NetBeans to quickly create a 
> class and test it.
> This reproduces with all only defaults selected such as Java Maven project, 
> as simple as it can get. This has worked for about 10 years until it was 
> broken with JUnit 5.
> How can we select JUnit 4 until this is mature?



--
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-3733) Cannot test single method with Maven and Junit 5

2020-05-17 Thread Svatopluk Dedic (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17109382#comment-17109382
 ] 

Svatopluk Dedic commented on NETBEANS-3733:
---

Correction: you don't need that Vintage engine at all. Netbeans recognize 
JUnit5 + Surefire 2.22.0 ... but will not suggest it for some reason.

> Cannot test single method with Maven and Junit 5
> 
>
> Key: NETBEANS-3733
> URL: https://issues.apache.org/jira/browse/NETBEANS-3733
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - JUnit, projects - Maven
>Affects Versions: 11.1, 11.2, 11.3
>Reporter: Bernard
>Priority: Critical
>
> All defaults, hello world application as simple as possible.
> How to reproduce:
> Menu|File|New Project|Java with Maven|Java Application|Finish
> Projects|New|java Class|NewClass|Finish
> Add two methods:
> public void hello1() {
>  System.out.println("Hello 1");
>  }
>  
>  public void hello2() {
>  System.out.println("Hello 2");
>  }
> [Ctrl+Shift+U] Create / Update Tests|JUnit|OK
> generates test as expected, adds dependencies to POM as expected:
> 
>  
>  org.junit.jupiter
>  junit-jupiter-api
>  5.3.1
>  test
>  
>  
>  org.junit.jupiter
>  junit-jupiter-params
>  5.3.1
>  test
>  
>  
>  org.junit.jupiter
>  junit-jupiter-engine
>  5.3.1
>  test
>  
>  
> In generated class NewClassTest now I want to test the single method 
> "testHello2()"
> So I put cursor on it and right click, "Run Focused Test Method".
> I get a dialog:
> "Feature requires update of POM"
> "Executing single test method requires Surefire 2.8+ and JUnit in version 4.8 
> and bigger.
> Update your pom.xml?"
> I click "Yes"
> In pom.xml, another dependecy is added:
> 
>  junit
>  junit
>  4.11
>  
> Si I try again. Put cursor on the method and right click, "Run Focused Test 
> Method".
> I get a message
> "No tests executed for mavenproject1"
> This means that I cannot use the default way of NetBeans to quickly create a 
> class and test it.
> This reproduces with all only defaults selected such as Java Maven project, 
> as simple as it can get. This has worked for about 10 years until it was 
> broken with JUnit 5.
> How can we select JUnit 4 until this is mature?



--
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] [Comment Edited] (NETBEANS-3733) Cannot test single method with Maven and Junit 5

2020-05-17 Thread Svatopluk Dedic (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17109375#comment-17109375
 ] 

Svatopluk Dedic edited comment on NETBEANS-3733 at 5/17/20, 7:39 AM:
-

I did reproduce using the steps in the initial comment. I'm not sure if it 
qualifies to {{Critical}} as a workaround exists:
 * you seem to use *JUnit 5*, the added dependency is *JUnit 4*, which is 
probably NOT what you'd want. Remove the added dependency and add Junit's 5 
package to shut NetBeans up:

{code:java}

org.junit.vintage
junit-vintage-engine
5.6.0
test
{code}
 * Despite [Maven 
Documentation|https://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html]
 says that the syntax {{ClassName#method}} works from *surefire 2.7.3*, I was 
able to get it work only for *surefire 2.22.0* and above. I have Maven *3.6.0* 
installed separately and on my installation, *surefire 2.12.4* is used by 
default. Check (run with -X, show debug output) if it is your case. Update your 
{{pom.xml}} with

{code:java}




org.apache.maven.plugins
maven-surefire-plugin
2.22.0





{code}
to force *2.22.0* version

Of course NB JUnit support *should* recognize JUnit Jupiter artifacts and "do 
the right thing". 


was (Author: sdedic):
I did reproduce using the steps in the initial comment. I'm not sure if it 
qualifies to {{Critical}} as a workaround exists:
 * you seem to use *JUnit 5*, the added dependency is *JUnit 4*, which is 
probably NOT what you'd want. Remove the added dependency and add Junit's 5 
package to shut NetBeans up:

{code:java}

org.junit.vintage
junit-vintage-engine
5.6.0
test
{code}

 * Despite [Maven 
Documentation|[https://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html]]
 says that the syntax {{ClassName#method}} works from *surefire 2.7.3*, I was 
able to get it work only for *surefire 2.22.0* and above. I have Maven *3.6.0* 
installed separately and on my installation, *surefire 2.12.4* is used by 
default. Check (run with -X, show debug output) if it is your case. Update your 
{{pom.xml}} with

{code:java}




org.apache.maven.plugins
maven-surefire-plugin
2.22.0





{code}
to force *2.22.0* version

Of course NB JUnit support *should* recognize JUnit Jupiter artifacts and "do 
the right thing". 

> Cannot test single method with Maven and Junit 5
> 
>
> Key: NETBEANS-3733
> URL: https://issues.apache.org/jira/browse/NETBEANS-3733
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - JUnit, projects - Maven
>Affects Versions: 11.1, 11.2, 11.3
>Reporter: Bernard
>Priority: Critical
>
> All defaults, hello world application as simple as possible.
> How to reproduce:
> Menu|File|New Project|Java with Maven|Java Application|Finish
> Projects|New|java Class|NewClass|Finish
> Add two methods:
> public void hello1() {
>  System.out.println("Hello 1");
>  }
>  
>  public void hello2() {
>  System.out.println("Hello 2");
>  }
> [Ctrl+Shift+U] Create / Update Tests|JUnit|OK
> generates test as expected, adds dependencies to POM as expected:
> 
>  
>  org.junit.jupiter
>  junit-jupiter-api
>  5.3.1
>  test
>  
>  
>  org.junit.jupiter
>  junit-jupiter-params
>  5.3.1
>  test
>  
>  
>  org.junit.jupiter
>  junit-jupiter-engine
>  5.3.1
>  test
>  
>  
> In generated class NewClassTest now I want to test the single method 
> "testHello2()"
> So I put cursor on it and right click, "Run Focused Test Method".
> I get a dialog:
> "Feature requires update of POM"
> "Executing single test method requires Surefire 2.8+ and JUnit in version 4.8 
> and bigger.
> Update your pom.xml?"
> I click "Yes"
> In pom.xml, another dependecy is added:
> 
>  junit
>  junit
>  4.11
>  
> Si I try again. Put cursor on the method and right click, "Run Focused Test 
> Method".
> I get a message
> "No tests executed for mavenproject1"
> This means that I cannot use the default way of NetBeans to quickly create a 
> class and test it.
> This reproduces with all only defaults selected such as Java Maven project, 
> as simple as it can get. This has worked for about 10 years until it was 
> broken with JUnit 5.
> How can we select JUnit 4 until this is mature?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: 

[jira] [Commented] (NETBEANS-3733) Cannot test single method with Maven and Junit 5

2020-05-17 Thread Svatopluk Dedic (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17109375#comment-17109375
 ] 

Svatopluk Dedic commented on NETBEANS-3733:
---

I did reproduce using the steps in the initial comment. I'm not sure if it 
qualifies to {{Critical}} as a workaround exists:
 * you seem to use *JUnit 5*, the added dependency is *JUnit 4*, which is 
probably NOT what you'd want. Remove the added dependency and add Junit's 5 
package to shut NetBeans up:

{code:java}

org.junit.vintage
junit-vintage-engine
5.6.0
test
{code}

 * Despite [Maven 
Documentation|[https://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html]]
 says that the syntax {{ClassName#method}} works from *surefire 2.7.3*, I was 
able to get it work only for *surefire 2.22.0* and above. I have Maven *3.6.0* 
installed separately and on my installation, *surefire 2.12.4* is used by 
default. Check (run with -X, show debug output) if it is your case. Update your 
{{pom.xml}} with

{code:java}




org.apache.maven.plugins
maven-surefire-plugin
2.22.0





{code}
to force *2.22.0* version

Of course NB JUnit support *should* recognize JUnit Jupiter artifacts and "do 
the right thing". 

> Cannot test single method with Maven and Junit 5
> 
>
> Key: NETBEANS-3733
> URL: https://issues.apache.org/jira/browse/NETBEANS-3733
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - JUnit, projects - Maven
>Affects Versions: 11.1, 11.2, 11.3
>Reporter: Bernard
>Priority: Critical
>
> All defaults, hello world application as simple as possible.
> How to reproduce:
> Menu|File|New Project|Java with Maven|Java Application|Finish
> Projects|New|java Class|NewClass|Finish
> Add two methods:
> public void hello1() {
>  System.out.println("Hello 1");
>  }
>  
>  public void hello2() {
>  System.out.println("Hello 2");
>  }
> [Ctrl+Shift+U] Create / Update Tests|JUnit|OK
> generates test as expected, adds dependencies to POM as expected:
> 
>  
>  org.junit.jupiter
>  junit-jupiter-api
>  5.3.1
>  test
>  
>  
>  org.junit.jupiter
>  junit-jupiter-params
>  5.3.1
>  test
>  
>  
>  org.junit.jupiter
>  junit-jupiter-engine
>  5.3.1
>  test
>  
>  
> In generated class NewClassTest now I want to test the single method 
> "testHello2()"
> So I put cursor on it and right click, "Run Focused Test Method".
> I get a dialog:
> "Feature requires update of POM"
> "Executing single test method requires Surefire 2.8+ and JUnit in version 4.8 
> and bigger.
> Update your pom.xml?"
> I click "Yes"
> In pom.xml, another dependecy is added:
> 
>  junit
>  junit
>  4.11
>  
> Si I try again. Put cursor on the method and right click, "Run Focused Test 
> Method".
> I get a message
> "No tests executed for mavenproject1"
> This means that I cannot use the default way of NetBeans to quickly create a 
> class and test it.
> This reproduces with all only defaults selected such as Java Maven project, 
> as simple as it can get. This has worked for about 10 years until it was 
> broken with JUnit 5.
> How can we select JUnit 4 until this is mature?



--
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-4334) IDE does not index generated Sources in Gradle Project

2020-05-17 Thread Laszlo Kishalmi (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Laszlo Kishalmi resolved NETBEANS-4334.
---
Resolution: Duplicate

Well, unfortunately generated sources is not really supported at the moment. It 
will be available after 12.1. Hopefully in the early dev builds after 12.0 is 
out.

> IDE does not index generated Sources in Gradle Project
> --
>
> Key: NETBEANS-4334
> URL: https://issues.apache.org/jira/browse/NETBEANS-4334
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.3
>Reporter: Ulrich Mayring
>Priority: Major
> Attachments: screenshot1.png, screenshot2.png
>
>
> I have a gradle project (actually a subproject, if that matters), where 
> sources are generated via swagger-codegen. The folder with the generated 
> sources is configured as a source folder in the Properties under Sources (see 
> screenshot1).
> However, the generated sources are not recognized and, I suppose, not indexed 
> by the IDE (see screenshot 2 - folder is displayed as "Error Node").
> The effect of this error is that the IDE thinks these packages do not exist 
> and it displays everything with the wavy red underline.
> Gradle itself has no problem with these packages at compile-time and the 
> build works fine.



--
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