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 150853

Summary: "abstract" class and MismatchTokenException
Product: python Reporter: Jiri Vagner <jvagner>
Component: CodeAssignee: ardavis26 <ardavis26>
Status: CLOSED INVALID    
Severity: blocker CC: Jenselme
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: testers.py
abstract-01-pydev.jpg
abstract-02-pydev.jpg
abstract-01-nbpython.jpg
abstract-02-nbpython.jpg

Description Jiri Vagner 2008-10-21 12:47:25 UTC
There is an easy and simple way how to "emulate" abstract classes in python, see the attached source file. I have no
problem with code completion inside or outside abstract class body using pyDev, the screenshots attached. While invoking
code completion using NBPython, there is something wrong while ide is parsing file, it shows error annotation icon and
underlined row.

Steps to reproduce:
 - open testers.py source file
 - add new line to method setInfo(), type "self." and invoke code completion
 - delete changes and  go to at the and of last line
 - add "." and invoke code completion
Comment 1 Jiri Vagner 2008-10-21 12:48:32 UTC
Created attachment 72376 [details]
testers.py
Comment 2 Jiri Vagner 2008-10-21 12:49:27 UTC
Created attachment 72377 [details]
abstract-01-pydev.jpg
Comment 3 Jiri Vagner 2008-10-21 12:49:49 UTC
Created attachment 72378 [details]
abstract-02-pydev.jpg
Comment 4 Jiri Vagner 2008-10-21 12:50:55 UTC
Created attachment 72379 [details]
abstract-01-nbpython.jpg
Comment 5 Jiri Vagner 2008-10-21 12:51:24 UTC
Created attachment 72381 [details]
abstract-02-nbpython.jpg
Comment 6 Jiri Vagner 2008-10-21 13:02:39 UTC
Product Version: NetBeans IDE 6.5 RC1 (Build 20081020164434)
Java: 1.6.0_10-rc2; Java HotSpot(TM) Client VM 11.0-b15
Python: jython 2.5a3+
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Comment 7 Jiri Vagner 2008-10-21 13:07:28 UTC
No need to invoke code completion dialog, it shows errors while typing "." char.
Comment 8 Jenselme 2017-06-22 17:43:56 UTC
Not sure it is still relevant with the current version. Closing this as old bug. If this is still a thing, please reopen and accept my apologies.
Comment 9 Jiri Kovalsky 2017-06-22 17:59:16 UTC
Thanks for your evaluation Julien. Closing then.