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 186542

Summary: javax.swing.text.BadLocationException: docLength=203: Invalid offset+length=1561
Product: python Reporter: bladedu
Component: EditorAssignee: Jenselme
Status: VERIFIED FIXED    
Severity: normal CC: Jenselme
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 148589
Attachments: stacktrace

Description bladedu 2010-05-22 17:43:16 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-5216-on-100521)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-10M3025
OS: Mac OS X

User Comments:
GUEST: Goto definition

GUEST: used ctrl-click to navigate to function

GUEST: working with python editor




Stacktrace: 
javax.swing.text.BadLocationException: docLength=203:  Invalid offset+length=1561
   at org.netbeans.editor.DocumentContent.checkBounds(DocumentContent.java:347)
   at org.netbeans.editor.DocumentContent.getChars(DocumentContent.java:154)
   at javax.swing.text.AbstractDocument.getText(AbstractDocument.java:797)
   at org.netbeans.editor.BaseDocument.find(BaseDocument.java:1249)
   at org.netbeans.modules.python.editor.PythonAstUtils.getNameRange(PythonAstUtils.java:228)
   at org.netbeans.modules.python.editor.PythonDeclarationFinder.getDeclarationLocation(PythonDeclarationFinder.java:602)
Comment 1 bladedu 2010-05-22 17:43:21 UTC
Created attachment 99341 [details]
stacktrace
Comment 2 Jenselme 2015-10-02 14:41:05 UTC
Cannot reproduce. Downgrading priority to P4. This should be close with the next release of nbpython.
Comment 3 Jenselme 2015-11-27 16:50:42 UTC
Presumed fixed in Python .151118 (for IDE 8.1)