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 188544

Summary: line-by-line muting of reported errors (when no error exists)
Product: python Reporter: edgimar <edgimar>
Component: EditorAssignee: Torbjorn Norbye <tor>
Status: CLOSED FIXED    
Severity: normal CC: Jenselme
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description edgimar 2010-07-09 13:59:28 UTC
It should be possible for one to add a special comment at the end of a line which disables error checking for that line.

As an example of where this is helpful, the following python code-snippet shows up as having an error (on the first return line), when in fact it does not:

    def amethod(self):       
        deltas=(0,6,12,18,24)
        def sgen(*endpoints):
            endpoints = [pt-18 for pt in endpoints]
            return somefunc(*endpoints, deltas=deltas)
        
        return self.othermethod(sgen)


The bottom line is that there will always be room for bugs in the error-parsing code, so when a human knows better than the parser, s/he should be able to tell it to shut up.
Comment 1 Jenselme 2017-06-22 22:11:14 UTC
Possible in the next release planned for August. Closing this.
Comment 2 Jiri Kovalsky 2017-06-23 08:06:12 UTC
Thanks for your evaluation Julien. Reporter, if you think your issue is still valid and needs to be addressed, don't hesitate to reopen it with additional information. Closing for now.