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 257146 - Renaming a file from #include directive does not work
Summary: Renaming a file from #include directive does not work
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-15 07:12 UTC by Vladimir Kvashin
Modified: 2016-07-15 01:48 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:12:41 UTC
I put caret on #include directive and pressed Ctrl-R.
Rename dialogue appeared, but it said that new name is not a valid identifier, until I removed parenthesis ans trailing ".h". 

When I did it, "Refactor" button became enabled, but when I pressed it, the file name in #include changed, but the file was not renamed.

So we should either fix this or disable such rename.
Comment 1 Alexander Simon 2016-07-14 08:29:00 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/0a564bf8e802
Comment 2 Quality Engineering 2016-07-15 01:48:16 UTC
Integrated into 'main-silver', will be available in build *201607150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0a564bf8e802
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #257146 Renaming a file from #include directive does not work