charly4711 opened a new issue, #5418:
URL: https://github.com/apache/netbeans/issues/5418

   ### Apache NetBeans version
   
   Apache NetBeans 16
   
   ### What happened
   
   so, this is on NB 16 with OpenJDK 17 in a Maven project.
   
   I'm trying to have a java module of my own with test classes in the same 
module/packages.
   
   Now, I have already added org.junit.jupiter.junit-jupiter-api to my 
dependencies.
   So, in my test class I expect to type in TestInfo and be able to hit 
ALT-ENTER and get a suggestion for the import, but all I get are suggestions to 
add classes or search for dependencies.
   
   So I remove the manually added dependency and let NB do the job ... still no 
cookie.
   Then I close NB and remove the entire cache directory, restart and it 
rebuild the cache ... no change.
   
   I can hit CMD-O and type in TestInfo and it actually _finds_ the right 
interface.
   When I manually type in the right import, everything compiles just fine.
   
   Attaching a short project to demonstrate the issue. 
   
   [permute.zip](https://github.com/apache/netbeans/files/10579180/permute.zip)
   
   
   ### How to reproduce
   
   - In the attached project go to 
src/test/java/net/jarre_de_the/permute/PermuteTest.java
   - comment out statements like the following and try to get them added back 
from suggestions of fix imports:
   
   import org.junit.jupiter.api.Test;
   import org.junit.jupiter.api.TestInfo;
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   MacOS 13.2
   
   ### JDK
   
   JDK 17.0.6 as provided by Oracle
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   always
   
   ### Are you willing to submit a pull request?
   
   Yes
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to