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 155188 - Member variables invisible in code completion popup
Summary: Member variables invisible in code completion popup
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 6.x
Hardware: All Linux
: P4 blocker (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-10 21:57 UTC by alexh
Modified: 2016-07-07 07:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code completion variable display problem (22.81 KB, image/png)
2008-12-10 21:59 UTC, alexh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alexh 2008-12-10 21:57:53 UTC
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.
Comment 1 alexh 2008-12-10 21:59:56 UTC
Created attachment 74832 [details]
Code completion variable display problem
Comment 2 Alexander Pepin 2008-12-11 12:11:05 UTC
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.
Comment 3 Vladimir Voskresensky 2008-12-11 13:34:54 UTC
As workaround I can propose:
- Tools->Options->Fonts&Colors
- Select "C++" language
- change color for "Fields" elements to something
- close Options
- restart IDE
Comment 4 alexh 2008-12-11 13:50:24 UTC
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).
Comment 5 alexh 2008-12-11 22:43:14 UTC
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.
Comment 6 Vladimir Voskresensky 2008-12-12 08:21:24 UTC
thanks for investigation!
Editor team, could someone evaluate why fonts were incorrectly ported?
Thanks,
Vladimir
Comment 7 Jan Jancura 2008-12-12 10:30:52 UTC
We will look at it.
Comment 8 Remdul 2012-11-28 22:05:45 UTC
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.
Comment 9 Martin Balin 2016-07-07 07:30:49 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