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 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)
Created attachment 71582 [details] stacktrace
Reassigning to python.
Fixed a while ago.
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)