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 270951 - Exceptions when trying to type two left curly braces in editor, leads to editor being completely borked
Summary: Exceptions when trying to type two left curly braces in editor, leads to edit...
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P1 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2017-06-23 19:03 UTC by rosenation
Modified: 2017-06-23 19:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description rosenation 2017-06-23 19:03:30 UTC
This happened sometimes on Netbeans 8.1 but when I updated to Netbeans 8.2 it seems to be a constant issue, that is going to force me to be unable to use the IDE for this project.

When editing an HTML file (it's actually a .hbs file that I assigned to being HTML, dunno if this matters) you are incapable of typing "{{" on any line in the editor.

I tried to circumvent this by copying a pre-existing "{{" and paste it, then I went to type in "link-to" but it refused to allow the hyphen to be typed.

I tried several more times then I hit backspace and was shocked as the editor inserted empty lines below the current one each time backspace was pressed.

I was not able to replicate this issue upon restarting Netbeans, however, the inability to type "{{link-to" remains as it will not allow the second left curly brace or the dash between link and to after copying, then I noticed the following exception is occurring while trying to do the second curly brace, and this happens all the time, even upon restarting the IDE:

	at org.netbeans.lib.lexer.TokenHierarchyOperation.textModified(
	at org.netbeans.spi.lexer.TokenHierarchyControl.textModified(
	at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.removeUpdate(
	at javax.swing.text.AbstractDocument.fireRemoveUpdate(
	at org.netbeans.editor.BaseDocument.fireRemoveUpdate(
	at org.netbeans.editor.BaseDocumentEvent.undo(
	at org.netbeans.editor.GuardedDocumentEvent.undo(
	at org.netbeans.modules.editor.lib2.document.StableCompoundEdit.undo(
	at org.netbeans.editor.BaseDocument$AtomicCompoundEdit.undo(
	at org.netbeans.editor.BaseDocument.undoAtomicEdits(
	at org.netbeans.editor.BaseDocument.breakAtomicLock(
	at org.netbeans.editor.GuardedDocument.runAtomicAsUser(
	at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(
	at org.netbeans.editor.ext.ExtKit$ExtDefaultKeyTypedAction.actionPerformed(
	at org.netbeans.editor.BaseAction.actionPerformed(
	at javax.swing.SwingUtilities.notifyAction(
	at javax.swing.JComponent.processKeyBinding(
	at javax.swing.JComponent.processKeyBindings(
	at javax.swing.JComponent.processKeyEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.KeyboardFocusManager.redispatchEvent(
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$500(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at org.netbeans.core.TimableEventQueue.dispatchEvent(
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(