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 - javax.swing.text.BadLocationException: docLength=203: Invalid offset+length=1561
Summary: javax.swing.text.BadLocationException: docLength=203: Invalid offset+length=...
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Jenselme
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-22 17:43 UTC by bladedu
Modified: 2015-11-27 22:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 148589


Attachments
stacktrace (3.19 KB, text/plain)
2010-05-22 17:43 UTC, bladedu
Details

Note You need to log in before you can comment on or make changes to this bug.
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)