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 - Cannot refactor rename variable, hints missing
Summary: Cannot refactor rename variable, hints missing
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-29 23:24 UTC by bht
Modified: 2014-05-30 06:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project in zip file (2.46 KB, application/zip)
2014-05-29 23:24 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
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)