[Rubycocoa-devel 1129] Stack errors in oc_import.rb caused by newcocoa gem

アーカイブの一覧に戻る

Benjamin Jackson bhjac****@gmail*****
Sun Jul 22 01:58:02 JST 2007


Hi all,
Not sure if this should go to rubycocoa-talk or this list, so please correct
me if I'm mistaken...

I'm in the middle of transitioning my apps from XCode to Rake, and have
gotten everything to compile and link with a slightly modified Rakefile. One
of my apps compiles and runs fine, but the other crashes with a stack error
when any kvc setters are called (with the trunk from yesterday):

/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb:503:in
`_kvc_internal_hasItems=': stack level too deep (SystemStackError)
from
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb:503:in
`send'
from
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb:503:in
`_kvc_internal_hasItems='
from
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb:503:in
`send'
from
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb:503:in
`_kvc_internal_hasItems='
from
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb:503:in
`send'


etc...

Diffing my working app with the new one narrowed the issue down to the
following line in the main.rb file produced by the newcocoa gem, and
changing it solved the issue:

-    require(file)
+   require(File.basename(file))

Any idea what happened? Thanks,

Ben
-------------- next part --------------
An HTML attachment was scrubbed...
ダウンロード 


More information about the Rubycocoa-devel mailing list
アーカイブの一覧に戻る