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 270158 - Editor does not highlight and refactor variables defined with "const" and "var"
Summary: Editor does not highlight and refactor variables defined with "const" and "var"
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-21 16:34 UTC by dusty
Modified: 2017-03-21 16:34 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 dusty 2017-03-21 16:34:17 UTC
If I have a code like:

let x = 2
console.log('x: '+x)

and I put the cursor under the "x", netbeans correctly automatically highlights all the x instances, ans hence the x on both lines. I can also refactor the name correctly.

If instead I define it as "const" or "var", for example:

const x = 2
console.log('x: '+x)

netbeans does not highlight them, even if it should.

Also, I suppose for the same problem, I'm unable to correctly refactor its name: all the usages are not renamed correctly
Comment 1 dusty 2017-03-21 16:34:51 UTC
I verified the problem both in NB 8.2 and netbeans-dev-201703210002