This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Yes, you probably shouldn't do it (but if you make a second copy of a module for a more advanced version of a tutorial, well you have to do something). Probably could be a little more graceful about this, since project.xml is user-editable... Love the error message, though. java.lang.AssertionError: Cannot find myself at org.netbeans.modules.apisupport.project.NbModuleProject.createEvaluator(NbModuleProject.java:314) at org.netbeans.modules.apisupport.project.NbModuleProject.access$600(NbModuleProject.java:93) at org.netbeans.modules.apisupport.project.NbModuleProject$2.run(NbModuleProject.java:545) at org.openide.util.Mutex.writeAccess(Mutex.java:352) at org.netbeans.modules.apisupport.project.NbModuleProject.evaluator(NbModuleProject.java:542) at org.netbeans.modules.apisupport.project.NbModuleProject.getClassesDirectory(NbModuleProject.java:594) at org.netbeans.modules.apisupport.project.queries.ClassPathProviderImpl.findClassPath(ClassPathProviderImpl.java:80) at org.netbeans.modules.java.project.ProjectClassPathProvider.findClassPath(ProjectClassPathProvider.java:38) at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:445) at org.netbeans.modules.java.JavaNode.resolveIcons(JavaNode.java:573)
Makes my want to buy the apisupport module a weekend at a meditation retreat or something...
How do you reproduce exactly?
cd platform/samples cp -R paint-application paint-application-2 Edit manifests for everything, fixing cnbs in project.xml and manifest to be $WHATEVERMODULE2 (so the build won't fail complaining about duplicate modules), but forget to do it for paint-application/Paint/nbproject/project.xml Open paint-application-2 See the complaint when you try to build it, and fix paint-application/Paint/nbproject/project.xml in the editor in NB.
1. The assertion message you mention no longer exists, so the behavior cannot be the same any more; hopefully better. 2. I cannot decipher your steps to reproduce, too vague. If you can still see something like this, please reopen with precise instructions - what files you edited and how.