jfrog/jfrog-idea-plugin

"show in project descriptor" option is not displayed

Opened this issue · 5 comments

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

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

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.

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

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