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 262808 - Incorrect error highlighting in C++ code after "usind"
Summary: Incorrect error highlighting in C++ code after "usind"
Status: REOPENED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-14 08:52 UTC by ExIngus
Modified: 2016-07-20 16:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Журнал среды IDE (118.99 KB, text/plain)
2016-07-14 08:52 UTC, ExIngus
Details
Проект с ошибкой. (12.05 KB, application/zip)
2016-07-18 07:30 UTC, ExIngus
Details
Скриншот ошибки. (15.74 KB, image/png)
2016-07-18 07:32 UTC, ExIngus
Details
Скриншот на базовой конфигурации (129.86 KB, image/png)
2016-07-18 12:12 UTC, ExIngus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ExIngus 2016-07-14 08:52:14 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_92
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.92-b14

Воспроизводимость: Происходит всегда
С++ project
C++ Standart C11

...
void testFunction(){
	std::string("1");
	using std::string;
	string("2"); // <-- mark error
}
.
Comment 1 ExIngus 2016-07-14 08:52:23 UTC
Created attachment 160382 [details]
Журнал среды IDE
Comment 2 petrk 2016-07-14 14:52:39 UTC
I do not see any unresolved identifiers in development version. Can you describe the problem in details? You can do it in Russian, if it is more convenient for you.
Comment 3 ExIngus 2016-07-18 07:30:18 UTC
Created attachment 160421 [details]
Проект с ошибкой.
Comment 4 ExIngus 2016-07-18 07:32:33 UTC
Created attachment 160422 [details]
Скриншот ошибки.
Comment 5 ExIngus 2016-07-18 07:36:06 UTC
Перепроверил, проблема возникает только внутри функции класса.
В main.cpp ошибки нет, в TestClass ошибка есть.
Добавил проект с ошибкой.
Comment 6 petrk 2016-07-18 10:18:08 UTC
Thanks! Unfortunately, the problem occurs only on Windows, so I'll investigate it a bit later (do not have windows on dev machine right now).
Comment 7 petrk 2016-07-18 10:37:28 UTC
And it is also worthy to try that case with fresh userdir (current one is shown at Help->About->User directory).
Comment 8 ExIngus 2016-07-18 12:09:23 UTC
Попробовал с чистыми userdir и сachedir
...\AppData\Local\NetBeans\Cache\
...\AppData\Roaming\NetBeans\8.1\
Ошибка осталась.
Comment 9 ExIngus 2016-07-18 12:12:07 UTC
Created attachment 160424 [details]
Скриншот на базовой конфигурации