[MacRuby-devel] [MacRuby] #688: IB fails to read classfile in Ruby Cocoa project

MacRuby ruby-noreply at macosforge.org
Wed May 5 12:38:17 PDT 2010


#688: IB fails to read classfile in Ruby Cocoa project
----------------------------------+-----------------------------------------
 Reporter:  tmowlem@…             |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  major                 |   Milestone:  MacRuby 0.5          
Component:  MacRuby               |    Keywords:  IB XCode project     
----------------------------------+-----------------------------------------
 Had a problem with Interface Builder parsing a XCode project using
 MacRuby. Raised a bug in Radar but Apple Engineering have responded that
 the issue is with macruby. Therefore raised as a ticket here. Full text of
 email thread reproduced below:

 Hi Timothy,

 This is a courtesy email regarding Bug ID# 7464509.

 Engineering has determined that this issue originates with MacRuby
 mailing-list.

 There is information here: http://www.macruby.org/contact-us.html

 The IB parser has been tested many times recently (especially the last few
 days), so we would be tempted to say that this is a problem with the
 project.

 Bug reports requiring your attention will appear under ‘My Originated
 Problems’.  Please review this bug report and provide the requested
 information via the Apple Bug Reporter. Once your report has been updated,
 Engineering will be alerted of the new information.

 <http://bugreport.apple.com>

 Thank you for your assistance in helping us discover and isolate bugs
 within our products.

 Best Regards,

 Yvonne Villa
 Apple Developer Support
 Worldwide Developer Relations
 **************************************************************************
 THE INFORMATION CONTAINED IN THIS MESSAGE IS UNDER NON-DISCLOSURE
 **************************************************************************
 -------------------------------------------------------
 Bug ID #: 7464509
 Bug Title: IB fails to read classfile in Ruby Cocoa project
 -------------------------------------------------------
 <GMT11-Dec-2009 18:01:20GMT>
 Summary:
 I have a Ruby Cocoa application project created using the template. At
 first IB was correctly seeing the .rb file as a class and discovering its
 outlets. But it has stopped doing so. Now if I select File->Read Class
 Files to force a re-read it parses the file then shows a red dimple in the
 IB project window at the bottom and displays an error message saying
 "Parsed 1 source file, but no classes were found or changed".

 I tried editing the source .rb and saving it. I also closed and reopened
 both IB and XCode but IB will not read the source any more.

 I did a Clean Build at some point before this behaviour started that could
 be related although I have no evidence to show that this was the cause.

 Steps to Reproduce:
 1. Create a Ruby Cocoa project
 2. Create a .rb class add some code and save it
 3. Add some GUI objects eg buttons, popups, etc to the window in the main
 NIB
 4. Add an Object to the NIB project window from the Library
 5. Show the inspector, go the Identity tab and look  for the ruby class in
 the Class popup

 Expected Results:
 The .rb class should show up and be selectable to set the class as the
 type of the object added to the IB project in step 4

 Actual Results:

 IB completely refuses to see the .rb as a class.
 Also editing and saving the .rb file in XCode, reopening the apps or
 File->Reread class files should all cause a sync between XCode and IB. The
 .rb should then show up in the popup. It doesn't as described.

 Regression:
 none

 Notes:
 Please note that the project was working normally. Then it stopped working
 for no obvious reason.
 I can provide the project zipped up if required. But the code is
 proprietary (I am doing contract work for a client) so confidentiality
 would need to be respected in that case.

 <GMT03-Feb-2010 23:01:25GMT>
 Yes I can see the class in the classes tab of the IB Library window. It
 shows as a blue cube. The Lineage, Definitions, Outlets and Actions tabs
 also show what appears to be correct content yet the bug as described on
 File -> Read Class Files persists.

 <GMT12-Feb-2010 19:59:25GMT>
 'GenRegData.zip' was successfully uploaded

 <GMT12-Feb-2010 19:59:25GMT>
 See attached. I have obfuscated the code to protect client confidentiality
 but the problem was still present.

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



More information about the MacRuby-devel mailing list