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 255247 - RuntimeException: Unexpected node: <mismatched token: [@221,792:802=''init_game'',<90>,46:28], resync='init_game'>
Summary: RuntimeException: Unexpected node: <mismatched token: [@221,792:802=''init_ga...
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P4 normal (vote)
Assignee: Jenselme
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-12 19:07 UTC by Jenselme
Modified: 2015-11-29 12:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219899


Attachments
stacktrace (3.39 KB, text/plain)
2015-09-12 19:07 UTC, Jenselme
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jenselme 2015-09-12 19:07:37 UTC
This issue was reported manually by ralphbenjamin.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build nbms-and-javadoc-184-on-20150804)
VM: OpenJDK 64-Bit Server VM, 25.60-b23, OpenJDK Runtime Environment, 1.8.0_60-b27
OS: Linux

User Comments:
Jenselme: - Open a file that contains yield from
- Exception must appear at once.


Example:

import asyncio

yield from asyncio.wait()




Stacktrace: 
java.lang.RuntimeException: Unexpected node: <mismatched token: [@221,792:802=''init_game'',<90>,46:28], resync='init_game'>
   at org.python.antlr.PythonTree.accept(PythonTree.java:268)
   at org.python.antlr.ast.ImportFrom.traverse(ImportFrom.java:184)
   at org.python.antlr.Visitor.traverse(Visitor.java:12)
   at org.python.antlr.ast.VisitorBase.visitImportFrom(VisitorBase.java:150)
   at org.python.antlr.ast.ImportFrom.accept(ImportFrom.java:177)
   at org.python.antlr.ast.Module.traverse(Module.java:129)
Comment 1 Jenselme 2015-09-12 19:07:39 UTC
Created attachment 156129 [details]
stacktrace
Comment 2 Jenselme 2015-09-12 19:52:50 UTC
Corrections: the above code spinet doesn't cause the problem. This one does:

Arena of Titans — API
Comment 3 Jenselme 2015-09-12 19:57:50 UTC
Wrong copy/paste, my apologies:

yield from toto('')
Comment 4 Jenselme 2015-10-12 20:32:16 UTC
changeset:   18338:ce6a389be3f0
bookmark:    main
tag:         tip
user:        Julien Enselme <jenselme@netbeans.org>
date:        Mon Oct 12 22:30:53 2015 +0200
summary:     #255247 Fix RuntimeException: Unexpected node: <mismatched token. …>