Affects Version/s: None
Fix Version/s: None
Component/s: projects - Gradle
Let the issue 1 identified in
NETBEANS-4938 live here.
Issue number 1 is much harder and requires a good knowledge on how the Lookup system works.
So the Lookup of NBGradleProjectImpl consists of a basic lookup created at: https://github.com/apache/netbeans/blob/3a2cad159a2a60665653ce83a67547f6744449ec/extide/gradle/src/org/netbeans/modules/gradle/NbGradleProjectImpl.java#L161 and a plugin dependent ProxyLookup at https://github.com/apache/netbeans/blob/3a2cad159a2a60665653ce83a67547f6744449ec/extide/gradle/src/org/netbeans/modules/gradle/NbGradleProjectImpl.java#L330
The issue is the following:
- Project loads with no plugins, the base set of lookups registers a SourcesMerger
- Initially the only Sources implementation is for GENERIC_SOURCE_TYPE for the project folder.
- On reload through the PluginDependentLookup a new Sources implementation become available org.netbeans.modules.gradle.java.classpath.GradleSourcesImpl from the Gradle Java project
- Unfortunately the SourceMerger is not pick up the new Sources implementations