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 191486 - Text sometimes invisible in the sql editor.
Summary: Text sometimes invisible in the sql editor.
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2010-10-30 15:58 UTC by paolosca
Modified: 2011-02-08 16:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of defect. (68.11 KB, image/png)
2010-11-03 11:42 UTC, paolosca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paolosca 2010-10-30 15:58:14 UTC
I'm using netbeans dev (netbeans-trunk-nightly-201010280000-php), I recently noticed that sometimes the text I type in the db editor becomes invisible from a certain colums.

In example, I type the following:

SELECT field1, field2, field3 FROM table1 WHERE field4 = 'value';

but only "SELECT field1, field2, fiel" is visible.

The text is there, if I press enter after field2 the rest of the text becomes visible in the second line. If I move the cursor with the arrow keys on the invisible side I can see the cursor.
Although I can't see the highlight, I can select and copy the hidden text using the mouse and ctrl+c. It's like after a certain column the text is covered.

It happens frequently but not always but. 

Please, let me know if you need more information. Thanks.
Comment 1 Jiri Rechtacek 2010-11-01 12:53:50 UTC
I cannot reproduce it on:
>Log Session: Monday, November 1, 2010 1:48:27 PM CET
>System Info: 
  Product Version         = NetBeans IDE Dev (Build 201011010000) (#391a34ec2ac0)
  Operating System        = Linux version 2.6.32-25-generic running on amd64
  Java; VM; Vendor        = 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_20-b02
  Java Home               = /usr/local/share/java/jdk1.6.0_20/jre
  System Locale; Encoding = en_US (nb); UTF-8
  Home Directory          = /space/home/jirka

Reopen with more details how to reproduce this problem. Thanks
Comment 2 paolosca 2010-11-02 09:00:25 UTC
Did some more test, the problem is present even in a fresh install.

To reproduce it's enough to create a new postgres database connection, connect to it, select "execute command" to open the SQL editor and start typing (I quickly type random characters). So far it happens all the time.

My netbeans details are:

Product Version: NetBeans IDE Dev (Build 201011010000)
Java: 1.6.0_22; Java HotSpot(TM) Client VM 17.1-b03
System: Linux version 2.6.32-5-686 running on i386; UTF-8; en_SG (nb)

Please, let me know if you need more information.

Paolo
Comment 3 paolosca 2010-11-03 11:35:50 UTC
It now seems to happen most of the times, I attach a screenshot of the problem.
A few notes:
- Typing random characters, the text becomes invisible where the line seems to end, in fact the text is well over the 80th column;
- the black vertical line you can see in the second line is the caret, on its left there is text which is not visible;
- Also the thin red line marking the 80th column is not visible if the line contains invisible text.
- Moving the focus away from netbeans (ie on the browser window) and back renders the lines visible again.

Should I reopen this bug report?

I suspect it has something to do with refresh of the editor window, I have a similar problem with the "Select Options to Export" window in Tools->Options where, if I check the "All" checkbox the children checkboxes are marked as checked but appear unchecked. I'm going to open a bug report for it now.
Comment 4 paolosca 2010-11-03 11:42:00 UTC
Created attachment 102772 [details]
Screenshot of defect.

This is the screenshot of the problem I experience in the DB editor.
Comment 5 Jiri Rechtacek 2010-11-04 17:13:38 UTC
Thanks, will be evaluated again.
Comment 6 paolosca 2010-11-04 17:32:50 UTC
Thank you, I opened a bug report also for the checkbox problem, I suspect it may be somewhat related. It's bug #191592 .
Comment 7 Jiri Rechtacek 2010-11-04 19:17:06 UTC
I reproduce it on
Product Version         = NetBeans IDE Dev (Build 101025-c9435c48c841) (#c9435c48c841)
  Operating System        = Linux version 2.6.32-25-generic running on amd64
  Java; VM; Vendor        = 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_20-b02
  Java Home               = /usr/local/share/java/jdk1.6.0_20/jre
with DB connection to local MySQL database.
Comment 8 paolosca 2010-12-03 13:16:40 UTC
Seems to be fixed in latest dev builds, it's a while I can't reproduce this bug.

If you don't mind I would close this bug in a few days.

Regards,

Paolo.
Comment 9 paolosca 2011-02-08 16:58:32 UTC
The problem is solved, closing the bug report.