S+; How to replicate..
Submitted by Saturday, 29 September, 2007 - 01:08
on
Hi All,
I thought I'd give you some simple instructions so anybody should be able to
replicate the problem. I'm using Windows XP Pro SP2.
The problem is that if try to type something like:
[TAB]if ()
[TAB][TAB]System.out.println("blah: "+blah);
As soon as you try to type the ':' the whole line will shift over to the
left.
First it has to be saved as a .java file, if it isn't saved as anything
it'll happily work correctly. So create a simple, valid, .java file
and try to add the above lines to it. I have my jEdit set to not use spaces for tabs.
And you have to use tab(s) at the start of the lines.
As soon as you type the ':' The whole line will indent to the left.
Now delete the System.out.println() line, and this time type it
again, but skip typing the ':' and finish the rest of the line, then
go back and add the ':', it will work fine and won't indent the line.
How crazy is that?
I'm looking at the code, and trying some things, but it's still hard to
track down.. It doesn't seem to be a key translation issue, although
it does say:
9:04:13 PM [error] KeyEventTranslator: Invalid key stroke: C+e C+`
Thanks,
Joe Siebenmann
I thought I'd give you some simple instructions so anybody should be able to
replicate the problem. I'm using Windows XP Pro SP2.
The problem is that if try to type something like:
[TAB]if ()
[TAB][TAB]System.out.println("blah: "+blah);
As soon as you try to type the ':' the whole line will shift over to the
left.
First it has to be saved as a .java file, if it isn't saved as anything
it'll happily work correctly. So create a simple, valid, .java file
and try to add the above lines to it. I have my jEdit set to not use spaces for tabs.
And you have to use tab(s) at the start of the lines.
As soon as you type the ':' The whole line will indent to the left.
Now delete the System.out.println() line, and this time type it
again, but skip typing the ':' and finish the rest of the line, then
go back and add the ':', it will work fine and won't indent the line.
How crazy is that?
I'm looking at the code, and trying some things, but it's still hard to
track down.. It doesn't seem to be a key translation issue, although
it does say:
9:04:13 PM [error] KeyEventTranslator: Invalid key stroke: C+e C+`
Thanks,
Joe Siebenmann