


error while fetching and matching server issuesjava.lang.IllegalStateException: No issues in cache for file: at org.sonarlint.eclipse.core.internal.tracking.PersistentIssueTrackerCache.getLiveOrFail(PersistentIssueTrackerCache.java:80) at org.sonarlint.eclipse.core.internal.tracking.IssueTracker.matchAndTrackAsBase(IssueTracker.java:64) at org.sonarlint.eclipse.core.internal.tracking.ServerIssueUpdater$IssueUpdateRunnable.run(ServerIssueUpdater.java:111) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)Unable to analyze changed filesjava.lang.NullPointerException at org.sonarlint.eclipse.core.internal.jobs.AnalyzeChangedFilesJob.collectChangedFiles(AnalyzeChangedFilesJob.java:109) at org.sonarlint.eclipse.core.internal.jobs.AnalyzeChangedFilesJob.run(AnalyzeChangedFilesJob.java:59)any chance to get the zipped update site as usual ?
When I open file from project (in connected mode), I saw below exception on console. Note that it still shown me exactly same issue as server (may be with local analyzer)
When in "SonarLint report" view I clicked on "Current project" for SCM change set, I got below errorUnable to analyze changed filesjava.lang.NullPointerExceptionat org.sonarlint.eclipse.core.internal.jobs.AnalyzeChangedFilesJob.collectChangedFiles(AnalyzeChangedFilesJob.java:109)at org.sonarlint.eclipse.core.internal.jobs.AnalyzeChangedFilesJob.run(AnalyzeChangedFilesJob.java:59)
Not sure how is SonarLint identifying changes when no option to configure my SCM. I am using IBM Clear Case 8.0.1 version and have installed eclipse plugin for that.
if I close and reopen editor, the error is still here.
You can find the analysis log when reopening the file: https://gist.github.com/apupier/815a2ceeeaa91ba055e5b8acee5265fb
When in "SonarLint report" view I clicked on "Current project" for SCM change set, I got below errorUnable to analyze changed filesjava.lang.NullPointerExceptionat org.sonarlint.eclipse.core.internal.jobs.AnalyzeChangedFilesJob.collectChangedFiles(AnalyzeChangedFilesJob.java:109)at org.sonarlint.eclipse.core.internal.jobs.AnalyzeChangedFilesJob.run(AnalyzeChangedFilesJob.java:59)
Not sure how is SonarLint identifying changes when no option to configure my SCM. I am using IBM Clear Case 8.0.1 version and have installed eclipse plugin for that.
SonarLint is using standard Eclipse Team Provider API to collect changed files. I don't have much experience with IBM ClearCase so there is maybe some difference in the way the API is implemented. I will add a defensive check to protect against NPE, but that would probably mean the feature will not work for you (no files will be reported as changed). We did our tests with egit only, I will try to test with other SCM implementations (like Subversive) and see how it goes.
Connected mode (using configuration of '...' in server 'sonarts')
Starting analysis with configuration:
[
moduleKey: ...
baseDir: ...
workDir: ...
extraProperties: {sonar.java.source=1.7, sonar.java.target=1.7, sonar.libraries= ...}
inputFiles: [
...
]
]Found 0 issue(s)
Done in 212 ms
fetchServerIssues moduleKey= ...--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/00020fba-773a-4520-9415-940180760e34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I will try to reproduce, but in the meantime, could you please:
- enable verbose output + analyser logs in SonarLint console
- clean SonarLint console, and then close/reopen the offending file
- collect all logs and post them here (or send them to me if you are afraid of possible sensitive data)
fetchServerIssues moduleKey=com.mypackage:myservice:SonarLint, filepath=/myservice/src/main/java/com/mypackage/MyHandler.javaGET 200 http://localhost:9000/batch/issues?key=com.mypackage%3Amyservice%3ASonarLint%3Asrc%2Fmain%2Fjava%2Fcom%2Fmypackage%2FMyHandler.java | time=78msfetchServerIssues moduleKey=com.mypackage:myservice:SonarLint, filepath=/myserviceGET 403 http://localhost:9000/batch/issues?key=com.mypackage%3Amyservice%3ASonarLint%3A | time=32mscuriously the issues for the custom rules where fetched when i did the update after
popup "Updates available .." appeared.
Seems like that update is different from "Update all Project bindings" ?
--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/7a7f2042-01f2-4bae-b52f-a2aa49029705%40googlegroups.com.
Hi guys,I just published a new milestone (2.5.0.201612131345) on the same update site. We tried to fix most of the reported issues:- fix NPE when using "analyze changed files" with ClearCase (but it will not report any changed file)- improve performance of "analyze changed files"- fix progress monitor when doing "analyze changed files"- fix stacktrace reporter by Alpesh when opening filePlease test again and if everything goes well we will release tomorrow.++Julien
2016-12-13 14:47 GMT+01:00 <janos....@sonarsource.com>:
Hi Alpesh,The logs helped a lot tracking down the problem. It is fixed and will be in the next release.Note that the stack trace you get is simply noise, it doesn't affect the analysis in any way.Cheers,Janos
--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/7ac95eb7-c553-40a6-a61b-269353feb674%40googlegroups.com.
Thanks a lot for the update Alpesh. I will proceed with the release. If you manage to find a way to support ClearCase, we would add that to next version.
I upgraded my clear case eclipse plugin version as old version had issue mentioned earlier. I saw that now with new Clear Case plugin I have implementation for getSubscriber() which was missing in earlier version.
However, with new version when I click on Current project for report for SCM change set, I don't get anything but popup saying "An internal error occurred during: "Analyze changeset". java.lang.StackOverflowError". No log on console and not a single line in log. Any idea ? Same behavior for both snapshot and released version of 2.5.0 Sonarlint eclipse plugin. Note that the fly feedback working properly.
- Do you have anything special in your project that would make visiting project files stuck in an infinite loop? For example some kind of virtual resource or symbolic link?
Would have been great to start a new thread dedicated to investigate ClearCase issue since RFF period is over.