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 257015 - ClassCastException: org.python.antlr.PythonErrorNode cannot be cast to org.python.antlr.base.excepthandler
Summary: ClassCastException: org.python.antlr.PythonErrorNode cannot be cast to org.py...
Status: STARTED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P4 normal (vote)
Assignee: Lou Dasaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-07 09:49 UTC by Exceptions Reporter
Modified: 2015-12-07 16:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 221541


Attachments
stacktrace (5.51 KB, text/plain)
2015-12-07 09:49 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-12-07 09:49:30 UTC
This bug was originally marked as duplicate of bug 250870, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Windows 10

User Comments:
GUEST: I launched Netbeans after installing the plugin "Python4Netbeans802"




Stacktrace: 
java.lang.ClassCastException: org.python.antlr.PythonErrorNode cannot be cast to org.python.antlr.base.excepthandler
   at org.python.antlr.ast.TryExcept.<init>(TryExcept.java:127)
   at org.python.antlr.GrammarActions.makeTryExcept(GrammarActions.java:224)
   at org.python.antlr.PythonParser.try_stmt(PythonParser.java:7257)
   at org.python.antlr.PythonParser.compound_stmt(PythonParser.java:6325)
   at org.python.antlr.PythonParser.stmt(PythonParser.java:2401)
   at org.python.antlr.PythonParser.suite(PythonParser.java:7761)
Comment 1 Exceptions Reporter 2015-12-07 09:49:32 UTC
Created attachment 157691 [details]
stacktrace
Comment 2 Lou Dasaro 2015-12-07 16:51:10 UTC
The plugin "Python4Netbeans802" is for NetBeans IDE 8.0.2 _ONLY_.

The correct plugin to install for IDE 8.1 is "Python", and it is available from inside the IDE. 
Uninstall the old one, and install "Python" from Tools->Plugins->Available Plugins

See also http://plugins.netbeans.org/plugin/61688

I am leaving this open for other users to find, otherwise I would mark it Resolved-Invalid