Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search in dependency #7481

Open
Saljack opened this issue Jun 14, 2024 · 0 comments
Open

Search in dependency #7481

Saljack opened this issue Jun 14, 2024 · 0 comments
Labels
kind:feature A feature request needs:triage Requires attention from one of the committers

Comments

@Saljack
Copy link

Saljack commented Jun 14, 2024

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

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

@Saljack Saljack added kind:feature A feature request needs:triage Requires attention from one of the committers labels Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature A feature request needs:triage Requires attention from one of the committers
Projects
None yet
Development

No branches or pull requests

1 participant