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

"show in project descriptor" option is not displayed #210

Open
kakakpy opened this issue Apr 12, 2022 · 5 comments
Open

"show in project descriptor" option is not displayed #210

kakakpy opened this issue Apr 12, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@kakakpy
Copy link

kakakpy commented Apr 12, 2022

Describe the bug
After scanning, in the lower left tree, select a component--right click, and "show in project descriptor" option is not displayed

To Reproduce
After scanning, in the lower left tree, select a component--right click, and "show in project descriptor" option is not displayed

Expected behavior

Screenshots

Versions

  • JFrog IDEA plugin version:1.9.2
  • Operating system:Windows 10
  • Xray version:3.34.1
  • idea version: 2020.3

Additional context

@kakakpy kakakpy added the bug Something isn't working label Apr 12, 2022
@yahavi
Copy link
Member

yahavi commented Apr 12, 2022

@kakakpy,
Thanks for reporting this issue.

To help us resolve this quickly, please provide the following information:
What is your project's package type? (Maven? Gradle? npm? Python? ...)
1.9.2 is an old version. Does this issue reproduce in the latest version, 1.14.1?

@kakakpy
Copy link
Author

kakakpy commented Apr 12, 2022

I also tried it on another windows11, idea version: 2021.2.3 maven
Tried 1.9.2 and 1.14.1 two versions, I can reproduce this problem, right click, still can't show
B15826E1-3D3B-46C7-B591-8106DBE14D18

@yahavi
Copy link
Member

yahavi commented Apr 30, 2022

Hi @kakakpy,
Thanks for providing the information.

Per your request, we did some fundamental research to understand this issue.
To reduce CPU and memory resources, the Navigation map of the plugin is initialized only after a full inspection of the pom.xml file. The process is triggered by IntelliJ IDEA after opening the pom.xml file.
In other words - the relevant pom.xml file should be opened once and only then it will show the option. This is tricky in multi-pom projects, but inspecting all pom.xml files concurrently is a costly operation that should be avoided.

Nevertheless - displaying the vulnerabilities in the tree and in the pom.xml are not impacted by this behavior - there are the core functionality of the JFrog IDEA plugin.

In your case -
If the dependency does not appear in the opened pom.xml in your editor it is not expected to show the "Show in Project Descriptor" option. It can be in a child pom.xml or in a parent pom.

Here is example for this button in this project:
image

Please let me know if that helped.
We'd appreciate your feedback on that.

@yahavi
Copy link
Member

yahavi commented Oct 28, 2022

@kakakpy,
JFrog IDEA plugin 1.16.2 is released. This version includes an improvement that should fix this issue - we run inspections on package descriptors of project we scanned.
Feel free to upgrade - we'd appreciate your feedback on that.

@gyzong1
Copy link

gyzong1 commented Jan 3, 2023

Hi,
"show in project descriptor" option is not displayed in Android Studio

versions:
JFrog IDEA plugin: 1.16.5
Android Studio: Android Studio Dolphin | 2021.3.1 Patch 1
Xray version: 3.63.2
Mac OS: 13.0.1

Project example: https://github.com/jfrog/project-examples/tree/master/gradle-examples/gradle-android-example

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants