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 - org.python.antlr.ParseException: 'return' with argument inside generator
Summary: org.python.antlr.ParseException: 'return' with argument inside generator
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Lou Dasaro
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-06 08:17 UTC by lexon
Modified: 2015-05-18 05:49 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 141483


Attachments
stacktrace (4.00 KB, text/plain)
2009-01-06 08:17 UTC, lexon
Details

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