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 77563 - Renaming a field in source code "hides" carret
Summary: Renaming a field in source code "hides" carret
Status: RESOLVED DUPLICATE of bug 77219
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-08 09:44 UTC by lpintilie
Modified: 2008-12-22 15:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log file, compressed with jar utility (6.87 KB, application/octet-stream)
2006-06-12 07:07 UTC, lpintilie
Details
The log from JDK1.5 - JDK1.4 combination (8.98 KB, application/octet-stream)
2006-06-12 07:24 UTC, lpintilie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lpintilie 2006-06-08 09:44:25 UTC
Steps to reproduce:

1. Place carret on field to be renamed.
2. Alt-Shift-R to rename it.
3. Fill the new name, select "Preview all changes" then "Next"
4. In preview pane, hit "Alt-R" (Do Refactoring)
5. The field is renamed, but attempts to move the carret do nothing - the carret
is not visible, not even after hitting "Ctrl-0" (Select source window")

Clicking in the editor windows restores the carret. Sometimes I've seen the
carret in output window...
Comment 1 Miloslav Metelka 2006-06-09 14:11:17 UTC
I can't reproduce the problem on my FC3 with Gnome 2.8. Could you please
describe your Linux config in a more detail? Thanks.
There is a debug that can dump how the caret gets and loses focus. Please edit
netbeans.conf and add -J-Dnetbeans.debug.editor.caret.focus=true and run NB.
Please attach the messages.log with the debug messages to this issue. Thanks.

As this is a focus issue reassigning to core/winsys for further evaluation.
Comment 2 lpintilie 2006-06-12 07:06:30 UTC
My Linux box is runing Fedora Core 5, updated regularly. 

uname -a yields: 
Linux <hostname-greyed-out> 2.6.16-1.2122_FC5 #1 Sun May 21 15:01:01 EDT 2006
i686 i686 i386 GNU/Linux

rpm -qa|grep glibc

glibc-headers-2.4-8
glibc-kernheaders-3.0-5.2
glibc-devel-2.4-8
glibc-2.4-8
glibc-common-2.4-8

Gnome is 2.14, patched to whatever the current patch level available in FC5 yum
repositories.

I'll attache the compressed messages.log. 
What I did again: I've created a new project, tried to reproduce the bug again,
the problem didn't appear. Thinking there must be something I did in the other
project, I tried to use Jalopy formatter (that one keeps crashing since couple
of days before seeing the carret problem), but the problem still didn't appear.
Then I've opened a previous project, changed its Java Platform for runtime to
JDK1.5 (different than what the IDE uses - 1.6beta2) and I repeated the initial
steps. The carret re-appeared in the output window.
Comment 3 lpintilie 2006-06-12 07:07:50 UTC
Created attachment 30954 [details]
messages.log file, compressed with jar utility
Comment 4 lpintilie 2006-06-12 07:13:44 UTC
I've tried also the following combination:
IDE with JDK1.5
Project set up to use JDK1.4.2

and again the carret showed up in Output Window...
Comment 5 lpintilie 2006-06-12 07:24:08 UTC
Created attachment 30955 [details]
The log from JDK1.5 - JDK1.4 combination
Comment 6 David Simonek 2006-08-09 15:00:17 UTC
Yes I reproduced this issue on my Win XP, from my experiences it has nothing to
do with source level of project, but there has to be output window opened prior
to operations described above and output window has to be in regular, not
auto-hide state.
As a result, focus (and caret) is inside output window, but editor is activated
in window system, which leads to problem.
Comment 7 David Simonek 2006-08-09 15:06:32 UTC
Actually this is a duplicate of 77219

*** This issue has been marked as a duplicate of 77219 ***