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.

Bug 193419 - [70cat] ArrayIndexOutOfBoundsException at org.netbeans.editor.DocumentContent.copySpanChars
Summary: [70cat] ArrayIndexOutOfBoundsException at org.netbeans.editor.DocumentContent...
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Lou Dasaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-15 03:24 UTC by simpatico
Modified: 2015-12-05 13:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 147104


Attachments
stacktrace (2.07 KB, text/plain)
2010-12-15 03:24 UTC, simpatico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description simpatico 2010-12-15 03:24:44 UTC
Build: NetBeans IDE 6.9.1 (Build 201007282301)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06
OS: Windows 7

User Comments:
speijnik: Entering a newline after a python decorator (without arguments).

GUEST: HELP!




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException
   at org.netbeans.editor.DocumentContent.copySpanChars(DocumentContent.java:287)
   at org.netbeans.editor.DocumentContent.getChars(DocumentContent.java:165)
   at javax.swing.text.AbstractDocument.getText(AbstractDocument.java:797)
   at org.netbeans.editor.BaseDocument.find(BaseDocument.java:1271)
   at org.netbeans.modules.python.editor.PythonAstUtils.getNameRange(PythonAstUtils.java:228)
   at org.netbeans.modules.python.editor.PythonSemanticHighlighter$SemanticVisitor.visitFunctionDef(PythonSemanticHighlighter.java:133)
Comment 1 simpatico 2010-12-15 03:24:47 UTC
Created attachment 104100 [details]
stacktrace
Comment 2 Lou Dasaro 2015-05-24 21:34:19 UTC
Likely fixed as a result of the GSF-to-CSL port, based on reporter's stacktrace. I will attempt to replicate using NetBeans IDE Dev 201505170001
Comment 3 Jenselme 2015-10-02 16:16:47 UTC
Cannot reproduce.

Downgrading priority to P4. This should be close with the next release of nbpython.
Comment 4 Lou Dasaro 2015-11-27 20:44:25 UTC
Fixed in Python Plugin version .151118 
If you get this error, and are using NetBeans IDE 8.0.x, please upgrade to IDE 8.1 and install the latest Python plugin from the Update Center (Tools->Plugins).

If you are using NetBeans 8.1 with Python Plugin version .151118 or greater, and you receive this error, please reopen with a duplicable test case and my apologies.