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.
Code completion doesn't work for attr_accessor and class variables, e.g.: #super song class Song @@songcounter=0 #new comment def initialize(name="test") @@songcounter=@@songcounter+1 @name=name end attr_accessor :age, :name def sing(text="lala") puts text end end ss = Song.new() ss.sing # is completed ss.age # not completed ss.songcounter # is not shown, but ss.@@songcounter # is shown
The attributes part (attr_accessor) has been fixed; "age" does show up in code completion now. Classvars still need to be fixed.
Reassigning this issue to newly created 'ruby' component.
This should be working now. I don't think it's valid to try to access the fields directly like that on an object (indeed if I try to run the code, it gives an error message). The attributes are properly included.