Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5609

Gradle project (re)loaded after close.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • projects - Gradle

    Description

      When Gradle project is closed, its props are immediately reloaded back because of calls from RepositoryUpdater. RepositoryUpdater is closing / removing indexed roots and needs just URLs; but the now-closed project performs a new loadProject

      
      
      INFO [org.netbeans.modules.gradle.loaders.GradleProjectLoaderImpl]: Load aiming FALLBACK for Unloaded Gradle Project: GradleFiles[projectDir=/space/src/micronaut/micronaut-test/test-junit5, rootDir=/space/src/micronaut/micronaut-test]INFO [org.netbeans.modules.gradle.loaders.GradleProjectLoaderImpl]: Load aiming FALLBACK for Unloaded Gradle Project: GradleFiles[projectDir=/space/src/micronaut/micronaut-test/test-junit5, rootDir=/space/src/micronaut/micronaut-test]java.lang.Throwable at org.netbeans.modules.gradle.loaders.GradleProjectLoaderImpl.loadProject(GradleProjectLoaderImpl.java:50) at org.netbeans.modules.gradle.NbGradleProjectImpl.loadProject(NbGradleProjectImpl.java:259) at org.netbeans.modules.gradle.NbGradleProjectImpl.loadProject(NbGradleProjectImpl.java:254) at org.netbeans.modules.gradle.NbGradleProjectImpl.getGradleProject(NbGradleProjectImpl.java:184) at org.netbeans.modules.gradle.api.NbGradleProject.projectLookup(NbGradleProject.java:182) at org.netbeans.modules.gradle.java.api.GradleJavaProject.get(GradleJavaProject.java:125) at org.netbeans.modules.gradle.java.classpath.ClassPathProviderImpl.findClassPath(ClassPathProviderImpl.java:107) at org.netbeans.modules.csl.core.ProjectClassPathProvider.findClassPath(ProjectClassPathProvider.java:45) at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:667) at org.netbeans.modules.java.source.indexing.JavaCustomIndexer.ensureSourcePath(JavaCustomIndexer.java:1338) at org.netbeans.modules.java.source.indexing.JavaCustomIndexer.access$200(JavaCustomIndexer.java:132) at org.netbeans.modules.java.source.indexing.JavaCustomIndexer$Factory.rootsRemoved(JavaCustomIndexer.java:1201) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.notifyRootsRemoved(RepositoryUpdater.java:5221) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:5125) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3420) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6183) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$4300(RepositoryUpdater.java:5834) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2$1.run(RepositoryUpdater.java:6099) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)

      Attachments

        Issue Links

          Activity

            People

              lkishalmi Laszlo Kishalmi
              sdedic Svatopluk Dedic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: