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.
When I invoke this File | Open Recent Project at first time after IDE start it blocks AWT for about a minute. Next invocation are normal. I think this menu is not invoked very often then it is quite unusable. Though it shouldn't block AWT so long. Threaddump segment: "AWT-EventQueue-1" prio=1 tid=0x0847cac0 nid=0xeb1 runnable [0x5c3ff000..0x5c400580] java.io.UnixFileSystem.getBooleanAttributes0(Native Method) java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228) java.io.File.isFile(File.java:747) org.netbeans.modules.apisupport.project.ModuleList.parseData(ModuleList.java:412) org.netbeans.modules.apisupport.project.ModuleList.scanPossibleProject(ModuleList.java:173) org.netbeans.modules.apisupport.project.ModuleList.doScanNetBeansOrgSources(ModuleList.java:166) org.netbeans.modules.apisupport.project.ModuleList.doScanNetBeansOrgSources(ModuleList.java:167) org.netbeans.modules.apisupport.project.ModuleList.createModuleListFromNetBeansOrgSources(ModuleList.java:148) org.netbeans.modules.apisupport.project.ModuleList.findOrCreateModuleListFromNetBeansOrgSources(ModuleList.java:138) org.netbeans.modules.apisupport.project.ModuleList.getModuleList(ModuleList.java:102) - locked <0x7d3091d0> (a java.lang.Class) org.netbeans.modules.apisupport.project.NbModuleProject.getModuleList(NbModuleProject.java:662) org.netbeans.modules.apisupport.project.NbModuleProject.<init>(NbModuleProject.java:100) org.netbeans.modules.apisupport.project.NbModuleProjectType.createProject(NbModuleProjectType.java:41)
I cannot reproduce any delay over a few seconds. It takes a little disk access to load NBM projects. Are you using an especially slow drive perhaps (e.g. NFS mounted sources)? Also if you already have open some NBM project (or had one open in the same session) it should have already done this scanning before - do you mean accessing the Recent Projects menu when you are *not* working on any NBM projects? May be possible to move some operations out of project load, so that after calling the project's constructor only the display name and icon are available, and everything else is loaded on demand later, which would make Recent Projects faster (but not affect anything else). Not sure.
I don't have any nb project opened only a few applications and a web project. But there are some nb projects in the recent projects list. I'm using only a local disk for all projects.
Now it blocks awt thread after first invocation of File menu. I think loading of recent projects (minor and possible long io action) should not block first invocation of File menu for seconds without any progress, status message or wait cursor.
I think the file menu blocking is gone now, was introduced by me when rewriting the main menu codebase. The Recent Projects submenu is only populated when user expands it.. still a P2?
It seems to me that it is populated when you select, but not expand yet, the "Open Recent Project" submenu. Could be populated when the menu is really expanded (right arrow pressed). Can be actually noticed only when using purely keyboard, not mouse (with mouse it is always immediatelly expanded when a mouse hover over the submenu). But it is rather P5 or better, fixed IMHO (at least according to what subject says).
Can try to defer module list scanning in the evaluator until it is first needed for a specific reason (e.g. classpath computation). So opening a module or showing its list of subprojects will definitely have to scan the module list, but e.g. passing over it in the Recent Projects menu should not.
committed * Up-To-Date 1.123 apisupport/project/src/org/netbeans/modules/apisupport/project/NbModuleProject.java committed * Up-To-Date 1.13 apisupport/project/src/org/netbeans/modules/apisupport/project/ui/ModuleActions.java added * Up-To-Date 1.1 apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/AvoidModuleListInProjectConstructorTest.java committed * Up-To-Date 1.5 apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/queries/JavadocForBinaryImplTest.java committed * Up-To-Date 1.5 apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/queries/SourceForBinaryImplTest.java committed * Up-To-Date 1.6 apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/queries/UpdateTrackingFileOwnerQueryTest.java
v
*** Issue 61579 has been marked as a duplicate of this issue. ***