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.

Bug 178888 - empty entry in menu after right clicking project
Summary: empty entry in menu after right clicking project
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Petr Dvorak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-19 13:09 UTC by ep-nb
Modified: 2016-07-07 08:39 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (68.58 KB, image/png)
2009-12-19 13:09 UTC, ep-nb
Details
screenshot empty menu entry in tools menu (netbeans 7.2.1) (19.31 KB, image/png)
2013-02-19 08:03 UTC, ep-nb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ep-nb 2009-12-19 13:09:30 UTC
Created attachment 92782 [details]
screenshot

When doing a right click on a project, sometimes there appears an empty entry below "properties" (as shown in the screenshot).
This appeared with different types of projects (NetBeans Modules, Java Projects, JavaFX Projects,...). This also doesn't appear in a periodic way, but while working with the IDE it appears still often.
Comment 1 Petr Dvorak 2009-12-19 13:36:41 UTC
Hmmm... yes - this is the result of the Kenai action "lazy-check"...

Basically, if you invoke the popup menu for the first time on given project (only for the first time), an item "Checking for Kenai support" shows up (background action is started at the same time) and it is hidden after the Kenai support is not found on the project (or replaced by the Kenai submenu if the project is hosted on Kenai). This is why there is the empty space (one item of the menu is hidden)...

Problem is that the check for the Kenai support takes some time (the check for the repository URL can take up to 3 seconds, according to VCS guys) and thus it is not possible to do the check synchronously (you would not see the empty space but you would wait up to 3 seconds for the popup menu for the first time).

So there are 3 possibilities:

- get rid of Kenai actions on the Project node (separate the functionality in a separate module Kenai Extras, for example?)
- leave it as it is and close the issue
- do a synchronous check, risking the action takes longer for the very first time

I don't see any other options... Stando, is there a nice way to show an item in the projects popup menu if it takes long to determine the item's state?

Can you please check your JDK version? Just copy the info from "Help>About" here... Thank you.
Comment 2 Petr Dvorak 2009-12-19 13:38:12 UTC
Honzo, any ideas?
Comment 3 ep-nb 2009-12-19 13:39:23 UTC
> Can you please check your JDK version? Just copy the info from "Help>About"
> here... Thank you.

Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 4 Petr Dvorak 2009-12-19 13:43:02 UTC
Thanks for the light-speed reply, I will try to replicate your environment...
Comment 5 ep-nb 2009-12-20 11:27:30 UTC
(In reply to comment #4)
> Thanks for the light-speed reply, I will try to replicate your environment...

Today I installed a new version of jdk and it appears again:

Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 6 ep-nb 2009-12-23 14:56:58 UTC
Appears also on my linux box:

Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_0; OpenJDK Client VM 1.6.0_0-b12
System: Linux version 2.6.27-16-generic running on i386; UTF-8; en_US (nb)
Comment 7 ep-nb 2013-02-19 08:03:17 UTC
Created attachment 131553 [details]
screenshot empty menu entry in tools menu (netbeans 7.2.1)

.. does also happen on 7.2.1 while entering the tools menu for the very first time after ide startup. 

Product Version: NetBeans IDE 7.2.1 (Build 201210100934)
Java: 1.7.0_13; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 8 Martin Balin 2016-07-07 08:39:41 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss