All library snapshots are added to com.intellij.openapi.roots.libraries.Library source roots.
When I start find usages of some class, and the class is used by some library of SNAPSHOT version, idea found lots of duplicated usages, for one for every ever downloaded snapshot. Is it a normal behavior?
UPD: Post caption was edited after discovering new details.
Please sign in to leave a comment.
All these usages are the same
We also figured out, that all these snapshots are also added as `Library` root sources. Why not only to add the last snapshot as a `Library` root source?
I didn’t understand the question. Only those libraries are attached that you import into your project explicitly. Please share your build configuration or sources of the entire project to recreate the issue
Hi, Alexander. We are developing a framework. Our test projects import its SNAPSHOT versions. After every snapshot is released, it doesn't simply replace the previous snapshot, but lies next to previous snapshot. And the sources of new snapshot appears in `com.intellij.openapi.roots.libraries.Library` root sources.
> Our test projects import its SNAPSHOT versions.
How? How is it related to `com.intellij.openapi.roots.libraries.Library`?
From the screenshot and the description, it's unclear what's happening and how to recreate the issue.
In this case, Library scope includes source code from lots of snapshots. And when we try to find usages, the search scope includes all these snapshots source codes. As the snapshots typically has the same classes, found usages contains a lot of duplicates.
Steps reproduce: