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 156328

Summary: org.python.antlr.ParseException: 'return' with argument inside generator
Product: python Reporter: lexon <lexon>
Component: CodeAssignee: Lou Dasaro <mr_lou_d>
Status: RESOLVED FIXED    
Severity: blocker CC: itsadok, speijnik
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=141483
Issue Type: DEFECT Exception Reporter: 141483
Attachments: stacktrace

Description lexon 2009-01-06 08:17:30 UTC
Build: NetBeans IDE Dev (Build 20090106034821)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments:
GUEST: Added Mercurial as a project with existing sources.

itsadok: first time task scanning

rombeh: when indexing PYTHON_PATH

GUEST: Task scanning on first creation of python project with existing sources.



Stacktrace: 
org.python.antlr.ParseException: 'return' with argument inside generator
        at org.netbeans.modules.python.editor.scopes.ScopeInfo.defineAsGenerator(ScopeInfo.java:563)
        at org.netbeans.modules.python.editor.scopes.ScopesCompiler.visitYield(ScopesCompiler.java:568)
        at org.python.antlr.ast.Yield.accept(Yield.java:116)
        at org.python.antlr.ast.Expr.traverse(Expr.java:121)
        at org.python.antlr.Visitor.traverse(Visitor.java:12)
        at org.netbeans.modules.python.editor.scopes.ScopesCompiler.traverse(ScopesCompiler.java:98)
Comment 1 lexon 2009-01-06 08:17:44 UTC
Created attachment 75472 [details]
stacktrace
Comment 2 Lou Dasaro 2015-05-18 05:49:24 UTC
Unable to replicate anomaly. Was probably fixed long, long ago. If not, was certainly fixed by porting Python Editor APIs from GSF to CSL.
http://hg.netbeans.org/main/contrib/rev/94fd635a7eb3