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 118654 - off-by-one error on number of characters highlighted for alias
Summary: off-by-one error on number of characters highlighted for alias
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@ruby
Depends on:
Reported: 2007-10-12 05:49 UTC by jamespb
Modified: 2011-01-28 20:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description jamespb 2007-10-12 05:49:03 UTC

alias :xyz :to_s

Put the cursor on either :xyz.  For the first :xyz, only :xy are colored yellow/gold.

Product Version: NetBeans Ruby IDE 20071011160242
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nbrubyide)
Userdir: C:\Users\James\AppData\Roaming\.nbrubyide\dev
Comment 1 Torbjorn Norbye 2007-10-30 21:48:44 UTC
I can reproduce this. The problem is that the AST does no produce offsets for AliasNodes. The code here was too
simplistic; it needs to go into the document and search for the actual symbol references like the refactoring engine
dones. This will have to wait for the update release.
Comment 2 Erno Mononen 2009-09-17 08:11:40 UTC
Still valid. Seems like a rather minor annoyance though, so downgrading to a P4.