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.
Given the Ruby code: i=1 j = i == 1 ? true : false puts j the IDE states that the value of j is nil while the puts correctly shows 'true'. This only happens if the conditional returns true and false. The IDE has the same problem with these related code fragments: Fragment1: i=1 j = case i when 1 true else false end Fragment 2: i=1 j = if i == 1 then true else false end
Seems to be fixed now, likely was a problem in the backend. Please reopen if you can still reproduce this with a 6.7 build (http://bits.netbeans.org/dev/nightly/latest/).
Forgot to add that please make sure you have the latest debug gems installed before testing.