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.
In the following code, the line "found = true" shows up incorrectly with "found" in the light gray of an unused variable. foo = "d" found = false alreadyFound = ["a", "b", "c", "d"] alreadyFound.each_with_index {|item, index| if (foo.eql?item) found = true end } print "Found? " + found.to_s
Created attachment 38882 [details] Screen shot
Fixed. Thanks for the testcase. This happened when the block was in top-level scope (not inside any methods). In the case that there is no surrounding method I now search from the top level scope.
Reassigning this issue to newly created 'ruby' component.
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.