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

   ### Description
   
   I would like to search in project dependencies. I have a maven project and 
this project has some dependencies. I can browse them because there are sources 
jar (`-sources.jar`). Then I select a dependency and press Find (`Ctrl+F`) and 
try search some text in this dependency but it returns nothing (Search in 
Archives and Generated Sources is checked). It searches only in `META-INF` and 
totally ignores `.class` files. I would expect that it would find searched text 
at least in `.class` files if it finds it in `META-INF`. But the best option 
would be to search in connected `-sources.jar` instead of a regular jar 
dependency. 
   
   My proposal is:
   * If user search in a dependency without Sources it search in `.class` files 
   * If there is a connected Sources Jar (`-sources.jar`) then this archive is 
used for search text
       * If dependency is selected directly
       * If any package or class is selected
   
   
![image](https://github.com/apache/netbeans/assets/614424/db83a6bc-9da6-47c6-9577-145181aba877)
   
   
   
   ### Use case/motivation
   
   I regularly work with Spring Boot and often search for an autoconfiguration 
and I have to search in its Github repository or clone it. Another workaround 
is to add a `-sources.jar` to Favorites and select it for search then the 
Search works. 
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


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