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 257147 - Unresolved #include if I rename a header file twice
Summary: Unresolved #include if I rename a header file twice
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-15 07:40 UTC by Vladimir Kvashin
Modified: 2016-07-21 20:25 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 Vladimir Kvashin 2015-12-15 07:40:13 UTC
I created a managed project with one source and one header file and included the header into the source.

Then I renamed the header from projects tab - perfect, the file was renamed and the name in the #include directive changed as well, and the #include was resolved.

When I renamed it again, both the file name and the text in the #include directive changed, but #include became unresolved. And stayed unresolved until I edited file, once I edited it, the #include directive became resolved.

This happened with old code model and repeated several times.
Comment 1 Vladimir Kvashin 2015-12-15 07:43:11 UTC
It isn't very stable, unfortunately.
With new model, it behaved differently, most times everything went smoothly, but several times the text in the #include directive was not changed.
Comment 2 Vladimir Kvashin 2016-07-21 20:25:13 UTC
Surprisingly, I can not reproduce it any more.