Giter VIP home page Giter VIP logo

Comments (13)

yahavi avatar yahavi commented on August 25, 2024 1

Thanks for your feedback @CzernyJ.

I created jfrog/ide-plugins-common#23 to log the excluded paths and prevent future confusions.

from jfrog-idea-plugin.

yahavi avatar yahavi commented on August 25, 2024

@CzernyJ
Thanks for reporting this issue.
Before the scan is started, the plugin searches for package.json files under your workspace. If the package.json file added after IntelliJ started, the plugin does not aware of it. It will be after the next IntelliJ restart or a scan refresh.
Please be also noticed that the plugin expects the npm project to be installed, running npm install. However, it looks like in your case the plugin didn't recognize yet your project.

Does this issue consist after clicking on the refresh button? image
Does this issue consist after restarting IntelliJ?

If it doesn't work, can you please try to run it on our npm-example?

Looking forward to your feedback.

from jfrog-idea-plugin.

CzernyJ avatar CzernyJ commented on August 25, 2024

Ok looks like a restart of IntelliJ did solve it.

However I still get no results in the plugin although the XRay watch web view is showing several.
Here an example:

Plugin Results
Web View on sample violation

It isn´t a connection issue, I could verify the connection with another mvn project.

from jfrog-idea-plugin.

yahavi avatar yahavi commented on August 25, 2024

@CzernyJ,
After installing the npm dependencies and refreshing the scan, the project's dependency tree should appear. Once the plugin detects the package-lock.json file, it will watch for change and automatically rerun a quick Xray scan.
I believe the pacakge-lock.json file was missing when the plugin ran the Xray scanning.

Did you click on the refresh/restated IntelliJ after running npm install?
Do you see any errors in the Event Log?
image

Please let me know if it helped.
We'd also appreciate any suggestions for usability improvements.

from jfrog-idea-plugin.

CzernyJ avatar CzernyJ commented on August 25, 2024

@yahavi
I gave it another test run:

  • npm install (via IntelliJ Run configuration)
  • package-lock.json is present
  • refreshed
  • no events were logged in Event Log
    but still no scan results.

Is there some kind of debug logging for the plugin that can be enabled?

from jfrog-idea-plugin.

yahavi avatar yahavi commented on August 25, 2024

@CzernyJ
Did you click on this refresh button?
image
After a click on the above refresh button you should see the following message in the event log:

15:16	JFrog Xray: [INFO] Found npm project: <path-to-project>

Can you please try to use our npm-example project?

Is there some kind of debug logging for the plugin that can be enabled?

Yes, see the Troubleshooting.

from jfrog-idea-plugin.

CzernyJ avatar CzernyJ commented on August 25, 2024

Ok looks like I´m back at the original problem.

If I run your npm-example it works.

However if I then close your project go back to my test-project it seems that it is considered a non npm project. Even after I again ran npm install

MyTestProject

This could explain why the plugins refresh button does nothing in my example (also no log entry in the IntelliJ log) vs. your npm-example.

from jfrog-idea-plugin.

yahavi avatar yahavi commented on August 25, 2024

@CzernyJ,
Can you please share with us your x-ray-test project?
You can also choose to share only the package.json file.
Thanks.

from jfrog-idea-plugin.

CzernyJ avatar CzernyJ commented on August 25, 2024

Here you are. I just omitted some select files (Jenkinsfile, Readme and ressources).

x-ray-test.zip

from jfrog-idea-plugin.

yahavi avatar yahavi commented on August 25, 2024

@CzernyJ ,
It works on my environment:
image

I have Intellij IDEA ultimate 2020.3.2 and MacOS Bug Sur 11.1. Almost like you.

from jfrog-idea-plugin.

CzernyJ avatar CzernyJ commented on August 25, 2024

Ok I´m really puzzled by this. I already deleted the .iml file and the .idea folder (several times) and created a new project from the existing source. The behavior on my machine did not change.

The plugin seems not be misconfigured, because with your npm-example I got results.

The only difference I can think of is that I have already put some docker images of this project into artifactory for testing. But I have no idea why this should have an influence on the plugin....

from jfrog-idea-plugin.

yahavi avatar yahavi commented on August 25, 2024

@CzernyJ,
I think I understand now. The plugin has default excluded paths with the following Ant pattern:

**/*{.idea,test,node_modules}*

Your project name is x-ray-test which is filtered out by the default *test* filter.
Can you please try to delete the test from the excluded paths list?
image
(Change the Npm excluded paths to **/*{.idea,node_modules}*)

Please let me know if it helped.

from jfrog-idea-plugin.

CzernyJ avatar CzernyJ commented on August 25, 2024

Ok that was it. Guess I have to choose better project names in the future...

Thanks so much for the help.

from jfrog-idea-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.