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 259124

Summary: AssertionError: Unsupported removeType=RETAIN_LAST_CARET in nested transaction
Product: editor Reporter: Exceptions Reporter <exceptions_reporter>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: BlameFate, JohannesU, sidtj
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 223873
Attachments: stacktrace

Description Exceptions Reporter 2016-05-04 13:39:30 UTC
This bug was originally marked as duplicate of bug 259061, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201605040002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 10

User Comments:
JohannesU: tried to realign a line containing a // comment using tabs (which expand to spaces).

sidtj: Indenting the code, just after tab key be pressed, inside a @foreach in a blade php file.

BlameFate: Encountering lots of these problems while trying to indent/remove indentation in PHP source.

GUEST: Tried to indent a comment on a source file with errors/broken imports.

GUEST: Press TAB key at any where within Java source editor or HTML editor, then got this error; while a tab is inserted instead of 4 whitespaces.

GUEST: BUG STILL HERE IN LAST NIGHTLY (201605040002)

GUEST: Tabing over closing div tag




Stacktrace: 
java.lang.AssertionError: Unsupported removeType=RETAIN_LAST_CARET in nested transaction
   at org.netbeans.api.editor.caret.EditorCaret.runTransaction(EditorCaret.java:1600)
   at org.netbeans.api.editor.caret.EditorCaret.setDot(EditorCaret.java:561)
   at org.netbeans.api.editor.caret.EditorCaret.setDot(EditorCaret.java:533)
   at org.netbeans.api.editor.caret.EditorCaret$ListenerImpl.implicitSetDot(EditorCaret.java:2540)
   at org.netbeans.api.editor.caret.EditorCaret$ListenerImpl.modifiedUpdate(EditorCaret.java:2526)
   at org.netbeans.api.editor.caret.EditorCaret$ListenerImpl.insertUpdate(EditorCaret.java:2471)
Comment 1 Exceptions Reporter 2016-05-04 13:39:33 UTC
Created attachment 159532 [details]
stacktrace