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

Error nodes in Gradle subprojects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 12.2
    • None
    • projects - Gradle
    • None

    Description

      I am trying to open

      https://github.com/daemontus/heap-language/

      project in NetBeans 12.2 and this is the result:

      There is a lot of Error Node. This is caused by SourcesNodeFactory:

              @Override
              public Node node(SourceGroup group) {
                  Project owner = FileOwnerQuery.getOwner(group.getRootFolder());
                  if (owner != project) {
                      if (owner == null) {
                          //#152418 if project for folder is not found, just look the other way..
                          Logger.getLogger(SourcesNodeFactory.class.getName()).log(Level.INFO, "Cannot find a project owner for folder {0}", group.getRootFolder()); //NOI18N
                          return null;
                      }
                      AbstractNode erroNode = new AbstractNode(Children.LEAF);
                      String prjText = ProjectUtils.getInformation(owner).getDisplayName();
                      //TODO: Could this happen? Use Bundle.
                      erroNode.setDisplayName("Error Node: " + group.getDisplayName() + " " + prjText);
                      return erroNode;
                  } 

      the group.getRootFolder() belongs to sub project, but the owner is identified as the parent project.

      Attachments

        1. image-2020-12-10-04-55-17-574.png
          37 kB
          Jaroslav Tulach
        2. image-2020-12-11-23-05-54-290.png
          74 kB
          Laszlo Kishalmi

        Activity

          People

            lkishalmi Laszlo Kishalmi
            jtulach Jaroslav Tulach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: