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 149805 - AssertionError: Invalid offsets for FunctionDef: start=58 and end=1
Summary: AssertionError: Invalid offsets for FunctionDef: start=58 and end=1
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: ardavis26
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 20:08 UTC by tonybeckham
Modified: 2009-01-15 01:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 95643


Attachments
stacktrace (2.00 KB, text/plain)
2008-10-10 20:08 UTC, tonybeckham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2008-10-10 20:08:17 UTC
Build: NetBeans IDE Dev (Build 200810080201)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.5, x86_64

User Comments:
tonybeckham: Pasted code from a sample into the editor.

GUEST: Pasting some python code over old code

codahale: Trying to write Python code -- beginning an if statement.

GUEST: Opened a python file.

tonybeckham: Pasted code from a sample into the editor.



Stacktrace: 
java.lang.AssertionError: Invalid offsets for FunctionDef: start=58 and end=1
        at net.java.dev.nbpython.editor.PythonAstUtils.getRange(PythonAstUtils.java:261)
        at net.java.dev.nbpython.editor.PythonStructureScanner$FoldVisitor.addFoldRange(PythonStructureScanner.java:132)
        at net.java.dev.nbpython.editor.PythonStructureScanner$FoldVisitor.visitFunctionDef(PythonStructureScanner.java:156)
        at org.python.antlr.ast.FunctionDef.accept(FunctionDef.java:98)
        at org.python.antlr.ast.Module.traverse(Module.java:65)
        at org.python.antlr.Visitor.traverse(Visitor.java:12)
Comment 1 tonybeckham 2008-10-10 20:08:30 UTC
Created attachment 71582 [details]
stacktrace
Comment 2 Peter Pis 2008-10-10 20:42:59 UTC
Reassigning to python.
Comment 3 Torbjorn Norbye 2008-10-28 16:37:13 UTC
Fixed a while ago.
Comment 4 tonybeckham 2008-10-29 21:53:38 UTC
Fix Verified

Product Version: NetBeans IDE 6.5 RC2 (Build 20081029163756)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.5 running on i386; MacRoman; en_US (nb)