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.
This only affects javascript code inside a <script> tag in an HTML file. It seems to work fine in a .js file. In Netbeans 7.3 the rename (Ctrl + R) refactoring worked perfectly for both variables and functions but in Netbeans 7.4 this action gives the message "The Rename refactoring cannot be applied in this context."
Thank you for reporting, reproducible
Possible patch candidate?
Fixed in web-main: http://hg.netbeans.org/web-main/rev/4d2a950c7713 I agree that this should go to the patch.
Thank you!
Verifed Product Version: NetBeans IDE Dev (Build 201311040001) Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
The change was transplanted to the releases: http://hg.netbeans.org/releases/rev/0f94f21c7ff1
Integrated into 'releases/release74', will be available in build *201311141216* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/0f94f21c7ff1 User: Petr Pisl <ppisl@netbeans.org> Log: #237578 - Refactor rename for inline javascript stopped working in Netbeans 7.4
Verified in patch Product Version: NetBeans IDE 7.4 (Build 201311142201) Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)