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

Summary: Unresolved #include if I rename a header file twice
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: Code ModelAssignee: Vladimir Kvashin <vkvashin>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.