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 85803 - Text is inserted but blinking caret does not move
Summary: Text is inserted but blinking caret does not move
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks: 87136
  Show dependency tree
 
Reported: 2006-09-26 17:47 UTC by Petr Hrebejk
Modified: 2007-01-17 10:09 UTC (History)
1 user (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 Petr Hrebejk 2006-09-26 17:47:26 UTC
After using Ctrl-E to delete a line, I somehow got the editor into a state
where the caret continues blinking in the middle of the line, but text is
(correctly) inserted at the end - it's just the visualization of the caret that
is not moving.

Typing something that causes insertions into the document, like pressing [ which
will be completed as [] will move the caret's visualization, but additional
typing does not cause it to move, though everything seems to be working correctly.

Arrow keys also work to move the visual caret, but the insertion point moves
away from the caret as you type again. So everything works fine, there's just a
blinking caret that's not moving as you type.

Last logged exception, not sure if it's related:

SEVERE [global]
java.lang.AssertionError: JavaSource.runCompileControlTask called under Document
write lock.
at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.
java:292)
at org.netbeans.api.java.source.JavaSource.getCompilationInfo(JavaSource
.java:909)
at org.netbeans.api.java.source.WorkingCopy.(WorkingCopy.java:55)
at org.netbeans.api.java.source.JavaSource.getWorkingCopy(JavaSource.jav
a:431)
at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.release(Ja
vaCodeTemplateProcessor.java:111)
at org.netbeans.lib.editor.codetemplates.CodeTemplateInsertHandler.relea
se(CodeTemplateInsertHandler.java:622)
at org.netbeans.lib.editor.codetemplates.CodeTemplateInsertHandler.syncI
nsert(CodeTemplateInsertHandler.java:649)
at org.netbeans.lib.editor.codetemplates.CodeTemplateInsertHandler.inser
tUpdate(CodeTemplateInsertHandler.java:464)
at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:679)
at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.insertString(BaseKi
t.java:933)
at org.netbeans.modules.editor.java.JavaKit$JavaDefaultKeyTypedAction.in
sertString(JavaKit.java:244)
at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(Bas
eKit.java:897)
at org.netbeans.editor.ext.ExtKit$ExtDefaultKeyTypedAction.actionPerform
ed(ExtKit.java:874)
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:234)
at org.netbeans.lib.editor.codetemplates.CodeTemplateInsertHandler.defau
ltKeyTypedAction(CodeTemplateInsertHandler.java:374)
at org.netbeans.lib.editor.codetemplates.CodeTemplateOverrideAction.acti
onPerformed(CodeTemplateOverrideAction.java:134)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1633)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2868)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2903)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2831)
at java.awt.Component.processEvent(Component.java:5747)
at java.awt.Container.processEvent(Container.java:1984)
at java.awt.Component.dispatchEventImpl(Component.java:4378)
at java.awt.Container.dispatchEventImpl(Container.java:2042)
at java.awt.Component.dispatchEvent(Component.java:4208)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.ja
va:1828)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboard
FocusManager.java:693)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeybo
ardFocusManager.java:952)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeybo
ardFocusManager.java:824)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFoc
usManager.java:657)
at java.awt.Component.dispatchEventImpl(Component.java:4250)
at java.awt.Container.dispatchEventImpl(Container.java:2042)
at java.awt.Window.dispatchEventImpl(Window.java:2299)
at java.awt.Component.dispatchEvent(Component.java:4208)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Delete this history entry 2) 		 	07/15/2006 02:04:19
	
	Just reproduced this a few minutes after restarting NB. Had exactly the same
stack trace as above - it is the trigger.
Delete this history entry 3) 		 	07/15/2006 02:09:14
	
	Ugh, also in this state, when you edit the document it never gets marked as
modified so you can't save it.
Comment 1 Jiri Prox 2006-10-09 16:46:30 UTC
Cannot reproduce in curret build of retuche, is it still valid?
Comment 2 Jiri Prox 2006-10-16 09:48:35 UTC
closing as WFM for now, if it's still valid, feel free to reopen