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 254477 - If first line in editor is "#include <stdio.h>", then IDE doesn't highlight errors in printf()
Summary: If first line in editor is "#include <stdio.h>", then IDE doesn't highlight e...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: danilasergeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-18 10:01 UTC by soldatov
Modified: 2015-09-04 01:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-08-18 10:01:56 UTC
if first line in editor is "#include <stdio.h>", then IDE doesn't highlight errors in printf().

For example:
#include <stdio.h>

int main() {
    int x = 1;
    printf("%d\n", &x);
    return 0;
}

Workaround: add empty line before #include <stdio.h>
Comment 1 danilasergeyev 2015-08-31 09:21:32 UTC
fixed in change set:
https://hg.netbeans.org/cnd-main/rev/fe7ab75c2801
Comment 2 Quality Engineering 2015-09-01 01:25:27 UTC
Integrated into 'main-silver', will be available in build *201509010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fe7ab75c2801
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: fix bug #254477 If first line in editor is "#include <stdio.h>", then IDE doesn't highlight errors in printf()
Comment 3 danilasergeyev 2015-09-02 15:30:21 UTC
additional fix:
https://hg.netbeans.org/cnd-main/rev/18fd9d9b7b93
Comment 4 Quality Engineering 2015-09-04 01:24:05 UTC
Integrated into 'main-silver', will be available in build *201509040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/18fd9d9b7b93
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: additional fix bug #254477 if first line in editor is "#include <stdio.h>", then IDE doesn't highlight errors in printf()