[MacRuby] #1327: Ruby Constants in Lion

MacRuby ruby-noreply at macosforge.org
Mon Jun 13 12:08:21 PDT 2011


#1327: Ruby Constants in Lion
-------------------------------------------+--------------------------------
 Reporter:  harry@…                        |       Owner:  lsansonetti@…        
     Type:  defect                         |      Status:  new                  
 Priority:  critical                       |   Milestone:                       
Component:  MacRuby                        |    Keywords:  Lion                 
-------------------------------------------+--------------------------------
 I've been trying to test my app on the latest version of Lion (Build
 11A459e) with the latest developer preview of Xcode 4 and both the 0.10
 and latest nightly build of MacRuby. I've searched both MacRuby.org and
 apples dev forums but haven't found any reference to whether MacRuby
 supports Lion yet... but I thought it worth logging this bug.

 To find it in it's simplest state I started be creating a standard MacRuby
 app from Xcode's template, and then modified the AppDelegate file so that
 it looked like the following:

 class AppDelegate
         attr_accessor :window

         Constant_Number = 3


         def applicationDidFinishLaunching(a_notification)
                 # Insert code here to initialize your application
                 print "#{Constant_Number}"
         end
 end



 Which produces the following error in the console when the application is
 run:

 unknown: warning: already initialized constant DDMap
 2011-06-13 19:50:59.987 Io[1011:503]
 /Users/harry/Library/Developer/Xcode/DerivedData/Io-
 dqbjbwecwbbpzmbqqzwbrodltwxd/Build/Products/Debug/Io.app/Contents/Resources/AppDelegate.rb:17:in
 `applicationDidFinishLaunching': uninitialized constant Constant_Number
 (NameError)
         from /Users/harry/Library/Developer/Xcode/DerivedData/Io-
 dqbjbwecwbbpzmbqqzwbrodltwxd/Build/Products/Debug/Io.app/Contents/Resources/rb_main.rb:23:in
 `<main>'


 I hope you don't feel this contravenes the NDA.. I don't think it should..
 as it's not really revealing anything about Lion.
 I hope support for Lion isn't too far down the list.
 All the best
 Harry

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1327>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list