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 178442 - syntax errors while editing line
Summary: syntax errors while editing line
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-10 12:36 UTC by nbphpuser
Modified: 2010-03-09 10:26 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of error (18.83 KB, image/png)
2009-12-10 12:36 UTC, nbphpuser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nbphpuser 2009-12-10 12:36:43 UTC
Created attachment 92392 [details]
screenshot of error

using latest dev build I get syntax errors if I change a line of code
example:

class Test:
    def myfunc(self, bla):
        print 'bla'
        pass

    def myfunct_two(self):
        pass



Now try to insert new param between self and bla, after typing "newparam," syntax error: mismatched input expecting RPAREN, see screenshot

same error ocurs if editing other lines, disappears after adding newline.

Pet
Comment 1 dhalbert 2009-12-14 08:26:01 UTC
Two similar cases:


from Module import DEF
ABC()
DEF()

# separate case

from Module import (DEF)
ABC()
DEF()

Inserting "ABC, " before DEF in import gives a syntax error. Sometimes saving the file will force a reparse which fixes the problem, sometimes not.
Comment 2 nbphpuser 2010-02-24 10:37:00 UTC
could it be fixed, please? It's very contra-productive...
You get error where no one is and this makes editor even more slowly
Comment 3 Torbjorn Norbye 2010-02-28 22:51:47 UTC
Fixed in changeset d21d1d22215f
Comment 4 Torbjorn Norbye 2010-02-28 22:53:50 UTC
P.S. Thanks for the detailed bug reports!
Comment 5 Torbjorn Norbye 2010-03-02 08:39:19 UTC
People have expressed that this was an important bug to them so bumping the priority for inclusion in update center.
Comment 6 pgebauer 2010-03-02 09:48:31 UTC
Could QE verify this issue in the trunk in order that it can be ported into the release68_fixes branch?
Comment 7 rbalada 2010-03-09 10:26:27 UTC
Any updates regarding verification of the fix for this bug?