-
Notifications
You must be signed in to change notification settings - Fork 34
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
Scan all available roots when no configuration file can be found by JAS scanners #435
Conversation
src/main/java/com/jfrog/ide/idea/scan/data/applications/JFrogApplicationsConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/com/jfrog/ide/idea/scan/data/applications/JFrogApplicationsConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/com/jfrog/ide/idea/scan/data/applications/JFrogApplicationsConfig.java
Show resolved
Hide resolved
@@ -97,8 +95,8 @@ public void startScan() { | |||
scanner.asyncScanAndUpdateResults(); | |||
} | |||
executor.shutdown(); | |||
if (!executor.awaitTermination(SCAN_TIMEOUT_MINUTES, TimeUnit.MINUTES)) { | |||
logError(Logger.getInstance(), "Scan timeout of " + SCAN_TIMEOUT_MINUTES + " minutes elapsed. The scan is being canceled.", true); | |||
if (!executor.awaitTermination(Long.MAX_VALUE, TimeUnit.MINUTES)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree with that approach. In a developer environment, it's better to end the scan after a few minutes. Plus, users don't get any feedback or indication about the ongoing scan during this prolonged period. But ultimately, it's up to you to decide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will remove the timeout, add more logging, and add progress bars to enhance the user experience as discussed on Zoom
This reverts commit 7b5f760.
This pull request resolves an issue in the JAS scanners. Previously, in the absence of a configuration file, the scanners would only scan the root project of the opened workspace. This fix ensures that when no configuration is available, the scanners will now comprehensively scan all roots detected by IDEA.