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 137327 - selection invisible in output
Summary: selection invisible in output
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: t_h
URL:
Keywords: RANDOM
: 142115 146123 147360 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-16 15:56 UTC by martijn_
Modified: 2008-12-22 11:36 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martijn_ 2008-06-16 15:56:39 UTC
When i run some ruby code that generates output, it nicely appears in the output window. When i then try to select 
this code, i can't see what i have selected. The selection does work though, since when i click 'copy' it copies the 
selected zone to the clipboard.


version: 200806040005
Comment 1 Martin Krauskopf 2008-06-16 16:34:20 UTC
Yes, this also happens to me from time to time. Seems like regression.
Comment 2 Martin Krauskopf 2008-06-16 16:39:51 UTC
Just reproduced with:

Product Version: NetBeans IDE Dev (Build 080616)
Java: 1.5.0_15; Java HotSpot(TM) Client VM 1.5.0_15-b04
System: Linux version 2.6.24-18-generic running on i386; UTF-8; en_US (nb)
Comment 3 t_h 2008-06-17 14:42:42 UTC
Is it in plain or wrapped mode? Any hints how to reproduce?
Comment 4 martijn_ 2008-06-19 09:12:08 UTC
reproduce: 
# test.rb
puts "something very long so it doesn't fit in the window and wrapping is needed, something very long so it doesn't 
fit in the window and wrapping is needed, something very long so it doesn't fit in the window and wrapping is needed, 
something very long so it doesn't fit in the window and wrapping is needed"

=> run test.rb
=> switch off 'wrap text' in the output window
=> try to select the text
=> bingo! it's selected (try copy) but not visible
Comment 5 t_h 2008-06-19 10:40:57 UTC
I still cannot reproduce, I tried to output your long line in both plain/wrapped mode, switch mode back and forth but
the selection worked for me all the time. It happens to you only if you switch from wrapped to plain and try select
something?
Comment 6 martijn_ 2008-06-19 10:48:35 UTC
no it gives the error both for switching and having the wrap-text off before generating the output
Comment 7 Martin Krauskopf 2008-06-19 10:55:08 UTC
Now happens to me, with lines which fits into the output windows. It happens to me only in non-wrapped mode. Only with
JDK 5, with JDK 6 cannot reproduce so far.
Comment 8 Martin Krauskopf 2008-06-19 10:56:30 UTC
But now, with the same output, same JDK 5, I can't reproduce. So there is some random element so far.
Comment 9 Martin Krauskopf 2008-06-19 10:58:01 UTC
Um. And now I've reproduced with JDK 6 in another NetBeans instance. Just pressing Ctrl-R, trying to select, Ctrl-R
trying to select, and from time to time I reproduce. So non-JDK sensitive. Reproduce on both 5 and 6.
Comment 10 Martin Krauskopf 2008-06-19 10:59:13 UTC
Only what is valid, that it is happening only in non-wrapped mode. In wrapped-mode, selection always works fine for me.
Comment 11 t_h 2008-06-24 12:33:52 UTC
Can you check please if the problem still exists after integration of 7a28a9d992a9?
Comment 12 martijn_ 2008-06-30 10:02:24 UTC
cool! can't reproduce anymore with 20080630 . Thanks! 

Comment 13 t_h 2008-06-30 13:20:04 UTC
Thanks for verification...closing as fixed (by 7a28a9d992a9)
Comment 14 Martin Krauskopf 2008-06-30 13:25:20 UTC
I can still reproduce, still the same (own fresh build).

Moreover in Wrapped Mode there is a new strange selection bug that lines are jumping up and down when doing selection
with mouse. Hard to describe. I can show you this new one in the office directly (should come some day this week).
Comment 15 t_h 2008-07-01 12:36:39 UTC
Text corruption in wrapped mode should be fixed (#138392). However, I am not able to reproduce selection error (it would
be nice if you could show me how to reproduce).
Comment 16 Martin Krauskopf 2008-07-03 10:41:53 UTC
Cau Tomasi. Still reproducible as I've shown you yesterday in the office, with today's fresh build.
Comment 17 t_h 2008-09-09 14:12:35 UTC
*** Issue 146123 has been marked as a duplicate of this issue. ***
Comment 18 rdelaplante 2008-09-09 14:20:25 UTC
Try leaving NetBeans open with GlassFish started for a very long period of time such as 12 hours.  Then, try to
highlight in the code window.

Simply starting up NetBeans, then GlassFish, then trying to highlight in the output window does not reproduce the
problem for me.  I don't know what triggers it but I know after some period of time it starts to happen.  I don't know
if it's something I'm doing in the IDE or just being open for a long time. 
Comment 19 rdelaplante 2008-09-09 14:22:00 UTC
FYI this has also happened in the Maven2 output window for me
Comment 20 rdelaplante 2008-09-09 18:42:04 UTC
I've had NetBeans 6.5 open since I entered my last comment.  Highlighting in the output windows worked fine.  I've been
doing a bunch of maven2 builds/run all morning.  Just now I decided to check if the problem is back yet.  In the Maven2
output window I could highlight.  In the GlassFish output window I could not highlight.  When I switched back to the
Maven2 output window I could no longer highlight. 
Comment 21 twolf2919 2008-09-09 20:54:10 UTC
I'm running the 09/05 daily under Ubuntu 8.04 (with GTK L&F) and it happened a couple times today.
The only new piece of information I have is that I just have a plain J2SE distribution - i.e. no Ruby, Glassfish, etc. 
Both times, I was just debugging a standard J2SE application and was trying to highlight a region to copy.  Instead of
highlighting th region, it simple moved the cursor to the end of each line I was sweeping out.

On the NB users mailing list someone suggested turning on line-wrap.  Doing that let me at least do the copy.

I'm running JDK 1.6.0_10.

Comment 22 t_h 2008-09-10 14:01:47 UTC
*** Issue 142115 has been marked as a duplicate of this issue. ***
Comment 23 Quality Engineering 2008-09-11 17:40:20 UTC
Integrated into 'main-golden', will be available in build *200809111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/01350cf95c99
User: Tomas Holy <t_h@netbeans.org>
Log: #137327: selection invisible in output
Comment 24 t_h 2008-09-22 14:05:38 UTC
01350cf95c99
Comment 25 t_h 2008-10-20 12:58:27 UTC
*** Issue 147360 has been marked as a duplicate of this issue. ***