Comments (13)
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.
@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?
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.
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:
It isn´t a connection issue, I could verify the connection with another mvn project.
from jfrog-idea-plugin.
@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?
Please let me know if it helped.
We'd also appreciate any suggestions for usability improvements.
from jfrog-idea-plugin.
@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.
@CzernyJ
Did you click on this refresh button?
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.
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
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.
@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.
Here you are. I just omitted some select files (Jenkinsfile, Readme and ressources).
from jfrog-idea-plugin.
@CzernyJ ,
It works on my environment:
I have Intellij IDEA ultimate 2020.3.2 and MacOS Bug Sur 11.1. Almost like you.
from jfrog-idea-plugin.
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.
@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?
(Change the Npm excluded paths to **/*{.idea,node_modules}*
)
Please let me know if it helped.
from jfrog-idea-plugin.
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)
- NullPointerException when SeverityReasons are missing from vulnerability HOT 1
- Cannot search within any of the jFrog panels HOT 1
- Pushing docker image to jfrog HOT 2
- Unable to connect to Xray using an Artifactory identity token HOT 1
- Xray Scan failed: NullPointerException: Cannot invoke "java.util.List.iterator()" HOT 3
- IntelliJ Plugin is not using proxy for Artifactory requests HOT 1
- Unable to Copy Text from Plugin Info Screens HOT 5
- Problem loading vulnerabilities in Frog CI screen HOT 1
- plugin consistently segfaults IntelliJ when attempting to view dependency report HOT 2
- JFROG Plugin cannot scan the dependency tree HOT 1
- Improve efficiency in source code scanning
- Unsupported class file exception in Gradle scan
- JFrog plugin for Android Studio is unable to correctly scan an Android Gradle project
- Cannot update dependency version using auto fix with Xray scan
- Xray returns Unknown command on trying run scan HOT 1
- Fix Yarn impactedGraph
- ScanConfig: add "indirect-cve-whitelist" to scanner YAML configuration
- Vulnerability details unavailable in current version, previously displayed HOT 2
- Display main dependency originating indirect vulnerable dependency HOT 1
- Scanning of maven pom.xml vs package.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jfrog-idea-plugin.