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.
Summary: | javax.swing.text.BadLocationException: org.netbeans.modules.showtodos.TodoSourceParsing.parse(TodoSourceParsing.java:73) | ||
---|---|---|---|
Product: | contrib | Reporter: | rozwell |
Component: | Code | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | 452, alied, athompson, cwt137, Debeet, drazisil, eduardoelias, hmichel, marfous, markiewb, misterm, paolosca, Salamander, tnleeuw, tomjnsn, zdenek.rod |
Priority: | P1 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 192393 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
rozwell
2012-09-13 11:38:47 UTC
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. |