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 244797

Summary: Cannot refactor rename variable, hints missing
Product: javascript Reporter: bht <bht>
Component: RefactoringAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: project in zip file

Description bht 2014-05-29 23:24:06 UTC
Created attachment 147504 [details]
project in zip file

Please see attached HTML 5 application.

A variable within the scope of an if{} block cannot be refactored safely, and the expected highlighting of uses of it does not work as expected.
Comment 1 Vladimir Riha 2014-05-30 06:21:04 UTC
Reproducible in 8.0 and Dev

Workaround is to move variable declaration outside of if and else block (I believe JavaScript engine does the same actually thanks to hoisting)