Projects

Ticket #181 (closed defect: fixed)

Opened 21 months ago

Last modified 19 months ago

hotcocoa command with Macruby 0.3, patches attached

Reported by: sandor.szuecs@… Owned by: lsansonetti@…
Priority: critical Milestone: MacRuby 0.4
Component: MacRuby Keywords:
Cc:

Description

Hi,

the hotcocoa commandline program doesn't work as expected.

I get the following:

$ hotcocoa test 
/Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:14:in `initialize:': No such file or directory - test/Rakefile (Errno::ENOENT)
        from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:14:in `open'
        from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:14:in `block in copy_to'
        from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:9:in `each'
        from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/template.rb:9:in `copy_to'
        from /usr/local/bin/hotcocoa:23:in `<main>'
zsh: exit 1     hotcocoa test

Fix is attached.

regards sandor -- P.S. maybe the default priority souldn't be "blocker"

Attachments

hotcocoa.patch Download (238 bytes) - added by sandor.szuecs@… 21 months ago.
patch for lib/hotcocoa.rb
template.patch Download (0.7 KB) - added by sandor.szuecs@… 20 months ago.
patch for lib/hotcocoa/template.rb , it changes also the assignment of short_name to a more stable File.basename() call. Aply it to macruby Versions 0.3 and 0.4.

Change History

Changed 21 months ago by sandor.szuecs@…

patch for lib/hotcocoa.rb

Changed 20 months ago by sandor.szuecs@…

The same issue appeares in MacRuby-Trunk (0.4). template.patch will fix it.

I can not change the ticket's milestone to 0.4. Should I open a new ticket for this or do you will fix it like that?

Changed 20 months ago by sandor.szuecs@…

patch for lib/hotcocoa/template.rb , it changes also the assignment of short_name to a more stable File.basename() call. Aply it to macruby Versions 0.3 and 0.4.

Changed 19 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from MacRuby 0.3 to MacRuby 0.4

Thanks for the report. I merged the first changeset of your patch but not the second because it doesn't produce the same result (I tried to generate a hotcocoa project with it but the config/build.yml file wasn't copied).

Change revision is r824.

Note: See TracTickets for help on using tickets.