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 20140121-66acce1f24d6) VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b65, Java(TM) SE Runtime Environment, 1.8.0-ea-b123 OS: Windows 7 User Comments: gtzabari: Selected text in editor, then hit DELETE button. jiriprox: IAE when deleting line Stacktrace: java.lang.IllegalArgumentException: Copying to 2963 is greater then its size (2958). at org.netbeans.modules.java.source.pretty.VeryPretty.copyToIndented(VeryPretty.java:552) at org.netbeans.modules.java.source.pretty.VeryPretty.doPrintOriginalTree(VeryPretty.java:534) at org.netbeans.modules.java.source.pretty.VeryPretty.handlePossibleOldTrees(VeryPretty.java:488) at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl(CasualDiff.java:4446) at org.netbeans.modules.java.source.save.CasualDiff.diffTree(CasualDiff.java:4403) at org.netbeans.modules.java.source.save.CasualDiff.diffTree(CasualDiff.java:4391)
Created attachment 144232 [details] stacktrace
> java.lang.IllegalArgumentException: Copying to 2963 is greater then its size (2958). > at org.netbeans.modules.java.source.pretty.VeryPretty.copyToIndented(VeryPretty.java:552) Reassigning to java/Source, please evaluate it. Thank you.
Created attachment 147364 [details] stacktrace Action: delete text in java editor which leads to an syntax error
*** Bug 244627 has been marked as a duplicate of this bug. ***
Could be some 'race' between organize members and user changing the code while the analysis is running ?
Svata, Maybe :) PS: What's the difference between this bug and #217498?
(In reply to _ gtzabari from comment #6) > > PS: What's the difference between this bug and #217498? Stacktraces in this defect contain `handlePossibleOldTrees' and subsequently 'doPrintOriginalTree', which takes a range for the whole tree from the original source text directly to the result. Issue #217498 still diffs individual tree nodes and prints the output piece by piece, does not copy range for the whole subtree.
Created attachment 148487 [details] stacktrace Coding with gradle + libgdx
Sorry I could not reproduce the defect with 8.0 or dev version. I've tried to work with sources printed to the attached message.logs but still no error occured. Should the error happen again, could you please attach your formatting settings as well ? Thanks.
*** Bug 247053 has been marked as a duplicate of this bug. ***
*** Bug 247213 has been marked as a duplicate of this bug. ***
*** Bug 247361 has been marked as a duplicate of this bug. ***
*** Bug 247774 has been marked as a duplicate of this bug. ***
*** Bug 247929 has been marked as a duplicate of this bug. ***
*** Bug 248614 has been marked as a duplicate of this bug. ***
*** Bug 248693 has been marked as a duplicate of this bug. ***
*** Bug 248648 has been marked as a duplicate of this bug. ***
*** Bug 248839 has been marked as a duplicate of this bug. ***
*** Bug 248924 has been marked as a duplicate of this bug. ***
Svata, Is it possible for you to have Netbeans' Error Reporter automatically attach the formatting rules the next time someone runs into this issue? Clearly it is still a problem because reports keep on coming in.
*** Bug 249048 has been marked as a duplicate of this bug. ***
*** Bug 249317 has been marked as a duplicate of this bug. ***
*** Bug 249503 has been marked as a duplicate of this bug. ***
*** Bug 249811 has been marked as a duplicate of this bug. ***
*** Bug 249948 has been marked as a duplicate of this bug. ***
*** Bug 250010 has been marked as a duplicate of this bug. ***
*** Bug 251114 has been marked as a duplicate of this bug. ***
*** Bug 255103 has been marked as a duplicate of this bug. ***
*** Bug 255253 has been marked as a duplicate of this bug. ***
*** Bug 255473 has been marked as a duplicate of this bug. ***
*** Bug 257716 has been marked as a duplicate of this bug. ***