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.
This issue was reported manually by mkristofic. It already has 7 duplicates Build: NetBeans IDE Dev (Build 2012-09-10_00-04-28 ) VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b10 OS: Linux User Comments: 452: create java class (.java), del template header, ctrl+x in last line ( } - to last line) 452: ctrl+x .xhtml 452: ctrl+x Stacktrace: javax.swing.text.BadLocationException: Invalid offset=1561 not within <0, 1509> at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1345) at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1340) at org.netbeans.editor.Utilities.getRowStart(Utilities.java:198) at org.netbeans.editor.Utilities.getRowStart(Utilities.java:181) at org.netbeans.modules.showtodos.TodoSourceParsing.parse(TodoSourceParsing.java:73) at org.netbeans.modules.showtodos.HighlightTodos.getHighlights(HighlightTodos.java:97)
Created attachment 124295 [details] stacktrace
org.netbeans.modules.showtodos.TodoSourceParsing.parse(TodoSourceParsing.java:73)
Created attachment 127232 [details] stacktrace deleting lines with Ctrl+Del
Created attachment 129955 [details] stacktrace
Steps: * open a GIT-committed file * make changes to the file -> diff-sidebar should show changes * keep editor open and revert the modification (right click on node in projects view -> GIT->Revert->Revert Modifications...) -> Exception pops up javax.swing.text.BadLocationException: Invalid offset=39026 not within <0, 9993> at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1345) at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1340) at org.netbeans.editor.Utilities.getRowStart(Utilities.java:198) at org.netbeans.editor.Utilities.getRowStart(Utilities.java:181) at org.netbeans.modules.showtodos.TodoSourceParsing.parse(TodoSourceParsing.java:73) at org.netbeans.modules.showtodos.HighlightTodos.getHighlights(HighlightTodos.java:97) at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.(DirectMergeContainer.java:185) at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer.getHighlights(DirectMergeContainer.java:92) at org.netbeans.modules.editor.lib2.highlighting.HighlightsReader.(HighlightsReader.java:62) at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.restart(HighlightsViewFactory.java:185) at org.netbeans.modules.editor.lib2.view.ViewBuilder$FactoryState.init(ViewBuilder.java:1327) at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:723) at org.netbeans.modules.editor.lib2.view.ViewBuilder.createReplaceRepaintViews(ViewBuilder.java:684) at org.netbeans.modules.editor.lib2.view.ViewUpdates.viewsRebuildOrMarkInvalidNeedsLock(ViewUpdates.java:402) at org.netbeans.modules.editor.lib2.view.DocumentViewOp$1.run(DocumentViewOp.java:283) at org.netbeans.modules.editor.lib2.view.DocumentView.runTransaction(DocumentView.java:226) at org.netbeans.modules.editor.lib2.view.DocumentView$1.run(DocumentView.java:239) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1383) at org.netbeans.modules.editor.lib2.view.DocumentView.runReadLockTransaction(DocumentView.java:236) at org.netbeans.modules.editor.lib2.view.DocumentViewOp.viewsRebuildOrMarkInvalid(DocumentViewOp.java:279) at org.netbeans.modules.editor.lib2.view.ViewUpdates$RebuildViews.run(ViewUpdates.java:599) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1477) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2071)
Created attachment 130289 [details] stacktrace reverting local changes via the left margin SVN modified/added lines marks.
This bug already has 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=192393
This bug is present in the dev version.
I imagine it's present in any version where the "editor TODO highlighting" is installed.
Created attachment 132257 [details] stacktrace Did a paste and copy of the whole file content then pressed ctrl+z to revert to the old version
Created attachment 132347 [details] stacktrace
Created attachment 134327 [details] stacktrace CommentAction on empty line of the .phtml file
Pretty much of duplicates. Reassigning to the last person who maintained this module. Jardo please feel free to reassign it if you are not the owner of this module anymore. Thanks a lot.
Michel, please, could you check this bug. Thank you.
(In reply to comment #14) > Michel, please, could you check this bug. Thank you. I've moved exception reports related to TODO Highlighting to bug 229772. Exceptions.printStackTrace() was changed to logging of an INFO message.
All exception reports from various places were assigned to more specific bugs. Closing this issue.