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

Error nodes in Gradle subprojects

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment