sigasi confused about window focus

Hi,

I always use at least two editor windows side by side in sigasi.

Sometimes sigasi gets confused about which window should get the focus.

scenario:
- copied text in block selection mode of right editor window
- placed cursor in left editor window
- pressed 'Pos1' key
- sigasi changed cursor Position of right window !!?
tough you can't see the cursor in rigth window
sigasi is updating this window. This can be seen because sigasi is
updating the word-highlighting.
- placed cursor back to right window -> normal behaviour
- placed cursor back to left window -> 'Pos1' end 'End' update right window
- closed right window
- pressed 'Pos1' in the single editor window still opened
- sigasi throws NullPointer Exception:

"Line Start" did not complete normally. Please see the log for more information.
java.lang.NullPointerException

The same behaviour can also be seen without split window.
When switching between open files cursor sometimes stays stuck in previous file.
It's interesting that character-keys are not affected. Only 'Pos1' and 'End' key show strange behaviour.

regards
Josef

window focus

Hi Josef,

--I do not have a 'Pos1' key on my keyboard, but I assume it is the 'Home' key on a US keyboard--

Is this on Windows, Linux or Mac?
Can you send me the log? Then I can check where the NullPointerException comes from.

window focus - continued

Hi,

I'm using Windows XP.
And I sent you the log file per email.

Still a problem?

Hi Josef,

do you still encounter this problem?
No matter what I try, I can not reproduce your problem on my test machines...

Hendrik.

reproduce behavior

Hi Hendrik,

I found a way to reliably reproduce it on my computer.

1) open two editor views side by side
2) place cursor into RIGHT view
3) hit CTR+SPACE to open the menu with template suggestions or whatever
The cursor must be at a position where the menu actually opens
4) place cursor into LEFT view (by mouse click)
5) hit Pos1 key (go to beginning of line) text on the RIGHT side scrolls
6) hit End key (go to end of line) text on the RIGHT side scrolls

This time I did not get the NullPointerException when after closing left view. But Eclipse scrolls the wrong window. This can especially be seen when choosing a very long line within RIGHT view before hitting CTR+SPACE.

Regards,
Josef

Bug in Eclipse UI Framework

Hi Josef,

thanks for clarification. I could now reproduce the bug.
It appears to be a bug in the Eclipse UI Framework; I could reproduce it in the vanilla Eclipse distribution.

I filed an upstream bug report (https://bugs.eclipse.org/bugs/show_bug.cgi?id=297834)

Thanks,
Hendrik

Fixed

Hi Josef,

thanks to your bug report, this bug is now fixed for all Eclipse users in the next major release.

Soon after Eclipse.org officially releases the next major version (summer 2010), we will start to update Sigasi HDT too.

Post new comment

The content of this field is kept private and will not be shown publicly.
By submitting this form, you accept the Mollom privacy policy.