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.
Build: NetBeans IDE Dev (Build 200908022240) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.24-24-generic, i386 User comments: edit one function.... Stacktrace: javax.swing.text.BadLocationException: Invalid offset=18827 not within <0, 18826> at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1367) at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1362) at org.netbeans.editor.Utilities.getRowStart(Utilities.java:154) at org.netbeans.editor.Utilities.getRowStart(Utilities.java:137) 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.CompoundHighlightsContainer.updateCache(CompoundHighlightsContainer.java:301) at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.getHighlights(CompoundHighlightsContainer.java:170) at org.netbeans.editor.HighlightingDrawLayer.processOffset(HighlightingDrawLayer.java:618) at org.netbeans.editor.HighlightingDrawLayer.isActive(HighlightingDrawLayer.java:344) at org.netbeans.editor.DrawEngine.updateOffsetReached(DrawEngine.java:432)
Reassigning to "contrib" product for evaluation. Still looking for responsible owner.
Michel, you did some commits to this module. Can you please fix this exception? Thanks a lot!
Yes, I will take a look at this. This happens some times but I just can't solve it yet. Thanks for the report. Just to be clear, probably I will take a look at this next week.
Created attachment 91848 [details] stacktrace
Created attachment 91996 [details] stacktrace
Created attachment 92343 [details] stacktrace Used autocompletition of #endif in recently opened empty file
Created attachment 92623 [details] stacktrace Removing lines of a file
Created attachment 92665 [details] stacktrace
Created attachment 92696 [details] stacktrace - Copy the code to the JavaFX editor: ---------------------------------------------------------------------------------- abstract class MyCustomNode extends CustomNode { public var onMouseClickedEvents:( function (s : MouseEvent): Void)[]; override var onMouseClicked = function (s: MouseEvent): Void { for(event in onMouseClickedEvents){ event(s); } } } ---------------------------------------------------------------------------------- The exception pops up.
Created attachment 92701 [details] stacktrace I see too match .BadLocationException using the JavaFX editor.
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=159008
Well, some errors here are not related with showtodos plugin. The lastest, about JavaFX, the plugin is not even installed. How to proceed with it?
Please fix only the part in showtodos module and then we can reassign it to JavaFX team.
Created attachment 92766 [details] stacktrace I typed "renderer.draw", pressed ctrl+space, choosed option "drawString(String, int, int, int)" and pressed enter. Everything happened as it should plus i got exception in IDE.
Created attachment 93106 [details] stacktrace Editing .cpp file
Created attachment 93233 [details] stacktrace
Created attachment 93548 [details] stacktrace While editing JavaFX code.
I know that the issue is not really the P1 issue. But it has 11 attached stacktraces from different modules. Could the issue be fixed in the first place?
Created attachment 93568 [details] stacktrace
Created attachment 93659 [details] stacktrace
Some of the recent exceptions come from org.netbeans.modules.editor.url.HighlightURLs.getHighlights(HighlightURLs.java:105). The exceptions from 6.8 builds usually come from org.netbeans.editor.CodeFoldingSideBar.traverseForward(CodeFoldingSideBar.java:332). I'll have a look.
http://hg.netbeans.org/jet-main/rev/a2773547af97
Integrated into 'main-golden', will be available in build *201002040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a2773547af97 User: Vita Stejskal <vstejskal@netbeans.org> Log: #172884: attempting to fix BadLocationExceptions thrown from highlighting layers; also adding more consistency checks for cache update boundaries