can't run rake tasks (Rucola 0.0.3, RubyCocoa 0.13.0)

0 views
Skip to first unread message

electric

unread,
Dec 19, 2007, 9:38:28 PM12/19/07
to Rucola
Hey guys - just installed Rucola and RubyCocoa and get this error when
i try to run a rake on a new rucola project

erus-computer:~/Projects/PasswordManager electric$ rake --trace
(in /Users/electric/Projects/PasswordManager)
RUNNING IN MODE: DEBUG

** Invoke default (first_time)
** Invoke xcode:build (first_time)
** Execute xcode:build
rake aborted!
undefined method `[]' for nil:NilClass
/usr/local/lib/ruby/gems/1.8/gems/rucola-0.0.3/lib/rucola/tasks/
xcode.rake:11:in `build_dir'
/usr/local/lib/ruby/gems/1.8/gems/rucola-0.0.3/lib/rucola/tasks/
xcode.rake:15:in `build_root'
/usr/local/lib/ruby/gems/1.8/gems/rucola-0.0.3/lib/rucola/tasks/
xcode.rake:20
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in
`invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in
`synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in
`invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in
`invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in
`each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in
`send'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in
`each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in
`invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in
`invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in
`synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in
`invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in
`top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in
`each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in
`top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in
`top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19

As you can tell I'm using rake 0.7.3 - also on Mac OS 10.4.11

any ideas ?

electric

unread,
Dec 19, 2007, 10:13:57 PM12/19/07
to Rucola
Duhh....


I ran Xcode for the first time (installed it ages ago, but had never
opened it) and then tried the rake again - works a charm

Eloy Duran

unread,
Dec 24, 2007, 5:06:54 AM12/24/07
to ruc...@googlegroups.com
Hi,

Sorry I hadn't replied yet, I just now see your message...
Anyways, I'm glad you were able to resolve this yourself.

The reason this happens is because we use the preferences that the user
has set in XCode.app for the build dir, some people like to keep the
builds
in the source dir some people like to have one big build dir where all
projects
get build.
But of course the default preferences file is only created when XCode
is launched for the first time.

So this is actually somewhat of a bug.
We should either assume the current working dir (the source dir) or
we could warn the user that he/she has to run xcode once.... Any ideas?

Cheers,
Eloy

Jelle

unread,
Feb 19, 2008, 8:44:46 AM2/19/08
to Rucola
Hi,

You could use a Makefile and run make. Skip xcode completely.
Reply all
Reply to author
Forward
0 new messages