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.
Member variables of a class don't appear in the code completion popup window. The list entries are visible, and so is the type of the variables. The variable names themselves are invisible, unless highlighted by the selection bar. Methods, operators, etc, are correctly displayed. This happens on OpenSuse 10.3 Linux. The issue did not appear in NB 6.1. The issue will also not appear when triggering code completion of a Java class, in which case member variables are correctly displayed in green. Screenshot of the problem is attached.
Created attachment 74832 [details] Code completion variable display problem
Alex, we can not reproduce the issue neither on SUSE 10 nor on SUSE 9. Unfortunately OpenSUSE is not supported platform for now. Did you experience this issue on other platforms? Could you please provide more details or just a sample project where this issue was found.
As workaround I can propose: - Tools->Options->Fonts&Colors - Select "C++" language - change color for "Fields" elements to something - close Options - restart IDE
It seems unrelated to OpenSuse. I was able to reproduce the same effect on an older Ubuntu. After additional tests, the issue seems to arise from the fact that I imported my settings from a previous 6.1 installation. When removing ~/.netbeans/6.5 and starting with a clean profile, code completion works as expected. I will investigate further if I can find the offending setting(s).
I identified the setting causing the issue. In ~/.netbeans/6.5/config/Editors/text/x-c++/FontsColors/NetBeans/org-netbeans-modules-editor-settings-CustomFontsColors-tokenColorings.xml The previous 6.1 profile contained the following line: <fontcolor default="default" foreColor="ffafaf00" name="cc-highlighting-class-fields"/> When importing the 6.1 profile into 6.5, the foreground property was removed, resulting in: <fontcolor default="default" name="cc-highlighting-class-fields"/> This makes the member variables in the code completion popup invisible. Manually adding a foreColor="ff009900" property fixes the problem. Creating a new 6.5 profile will automatically add this property.
thanks for investigation! Editor team, could someone evaluate why fonts were incorrectly ported? Thanks, Vladimir
We will look at it.
Bug still present as of v7.2.1. Seems like an odd bug to go unfixed for such a long time, it really cripples the code completion feature! Occurs for me on Linux Mint 13 XFCE, default theme. Can confirm that the workaround by Vladimir Voskresensky worked for me.
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