Jaroslav Tulach created NETBEANS-5134:
-----------------------------------------

             Summary: Error nodes in Gradle subprojects
                 Key: NETBEANS-5134
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5134
             Project: NetBeans
          Issue Type: Bug
          Components: projects - Gradle
    Affects Versions: 12.2
            Reporter: Jaroslav Tulach
            Assignee: Laszlo Kishalmi
         Attachments: image-2020-12-10-04-55-17-574.png

I am trying to open

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

project in NetBeans 12.2 and this is the result:

!image-2020-12-10-04-55-17-574.png!

There is a lot of Error Node. This is caused by
{code:java}
        @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;
            } {code}
the {{group.getRootFolder()}} belongs to sub project, but the {{owner}} is 
identified as the parent project.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to