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 100322-d21f93e873b9) VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-9M3125 OS: Mac OS X User Comments: dstrupl: Deleted the whole line by Ctrl-X Stacktrace: java.lang.IllegalStateException: startOffset=524, length=0, highlight: <524,525>, newlineOffset=525 at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.createHighlightsView(HighlightsViewFactory.java:143) at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.createView(HighlightsViewFactory.java:137) at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:261) at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:215) at org.netbeans.modules.editor.lib2.view.ViewUpdates.checkRebuild(ViewUpdates.java:417) at org.netbeans.modules.editor.lib2.view.ViewUpdates$FactoriesListener.viewFactoryChanged(ViewUpdates.java:446)
Created attachment 95545 [details] stacktrace
Created attachment 95648 [details] stacktrace typing in editor and the exception appeared...
I have changed the category of the report. Might become P2 if people see it frequently.
Created attachment 95658 [details] stacktrace deleted block of code and the exceptiona appeared...
Created attachment 95673 [details] stacktrace - have a PHP file - select several words - delete them -> exception
*** Bug 182671 has been marked as a duplicate of this bug. ***
Created attachment 95737 [details] stacktrace
This is related to the new view hierarchy. If you start up with -J-Dorg.netbeans.editor.linewrap.disable=true you won't see this (at least it worked for me).
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=166785
Created attachment 95771 [details] stacktrace IllegalStateException: startOffset=1521, length=0, highlight: <1521,1522>, newlineOffset=1522 After typing dollar sign on the new line exeption was thrown. I did not trigger code completition but I guess that it's triggerd automatically.
Created attachment 95774 [details] stacktrace IllegalStateException: startOffset=1481, length=0, highlight: <1481,1489>, newlineOffset=1490 Cutting the line (ctrl+x) is thowing above exceptions. It is not related to file type. Applies for php, js, html and ini files.
Adding -J-Dorg.netbeans.editor.linewrap.disable=true did stop throwing error when cutting line (ctrl+x) but I guess this is just a temporary solution. :)
Created attachment 95785 [details] stacktrace
Created attachment 95804 [details] stacktrace
http://hg.netbeans.org/jet-main/rev/3a1924028683
*** Bug 182771 has been marked as a duplicate of this bug. ***
Created attachment 95837 [details] stacktrace
Created attachment 95843 [details] stacktrace
Created attachment 95904 [details] stacktrace
Created attachment 95905 [details] stacktrace
I have just experienced this bug a number of times in the editor; however, unlike the previous exceptions which indicate this occurs during the cut or delete operation, I am receiving this during paste operations, both with and without overwriting existing code blocks.
Created attachment 96033 [details] stacktrace select 2 lines, press delete an it throws an exception
Created attachment 96035 [details] stacktrace just typing in the java editor
Created attachment 96036 [details] stacktrace just saving while editing a java file
Eric, did you check whether your build contains the fix before reopenning?
Integrated into 'main-golden', will be available in build *201003270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/3a1924028683 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #182504 - IllegalStateException: startOffset=524, length=0, highlight: <524,525>, newlineOffset=525 - ignored empty highlight.
Created attachment 96108 [details] stacktrace
Closing as fixed by Mila. Please reopen only if seen in build that contains Mila's changes.
The issue is still reproduced in build NetBeans IDE Dev (Build 201003290201)
Alexandr, could you please specify how the issue can be reproduced in current build? Thanks.
- Install NetBeans with JavaFX plugin on Windows XP. Build NetBeans-JavaFX-Soma: #203 - Create a JavaFX application - Copy the code to the editor: ---------------------------------------------------- package javafxapplication16; import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.control.ScrollView; Stage { title: "MyApp" onClose: function () { } scene: Scene { width: 200 height: 200 content: [ ScrollView {} ] } } ---------------------------------------------------- - Format the code The exception pops up. See the exception report: http://statistics.netbeans.org/analytics/exception.do?id=363513
See the exception report for NetBeans IDE Dev (Build 201003290201) http://statistics.netbeans.org/analytics/exception.do?id=364231
Created attachment 96595 [details] stacktrace
Created attachment 96744 [details] stacktrace
I have rewritten ViewBuilder considerably and I hope that it should no longer fail (random tests for 20000 iterations showed no failures). Please reopen if there would be any more problems. Thanks. http://hg.netbeans.org/jet-main/rev/b7e78d3bbaa7
Integrated into 'main-golden', will be available in build *201004070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b7e78d3bbaa7 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #182504 - IllegalStateException: startOffset=524, length=0, highlight: <524,525>, newlineOffset=525.
*** Bug 182981 has been marked as a duplicate of this bug. ***