mvz/ruby-gir-ffi — Issue #17: `find_type': unable to resolve type 'boolean' (TypeError)
Author: cogniti
Created: 2011-11-12 20:03:59+00:00
State: open

System:
* debian squeeze
* gtk-2.0
* libgirepository-1.0-0
* ruby 1.9.2p0

The included example:
require 'gir_ffi'

Crashes with:
/var/lib/gems/1.9.1/gems/ffi-1.0.10/lib/ffi/types.rb:57:in `find_type': unable to resolve type 'boolean' (TypeError)
from /var/lib/gems/1.9.1/gems/ffi-1.0.10/lib/ffi/library.rb:480:in `find_type'
from /var/lib/gems/1.9.1/gems/ffi-1.0.10/lib/ffi/library.rb:365:in `callback'
from /var/lib/gems/1.9.1/gems/gir_ffi-0.1.0/lib/gir_ffi/builder/type/callback.rb:14:in `block in instantiate_class'
from /var/lib/gems/1.9.1/gems/gir_ffi-0.1.0/lib/gir_ffi/builder_helper.rb:15:in `optionally_define_constant'
from /var/lib/gems/1.9.1/gems/gir_ffi-0.1.0/lib/gir_ffi/builder/type/callback.rb:11:in `instantiate_class'
from /var/lib/gems/1.9.1/gems/gir_ffi-0.1.0/lib/gir_ffi/builder/type/base.rb:15:in `build_class'
from /var/lib/gems/1.9.1/gems/gir_ffi-0.1.0/lib/gir_ffi/builder/type.rb:28:in `build'
from /var/lib/gems/1.9.1/gems/gir_ffi-0.1.0/lib/gir_ffi/builder.rb:14:in `build_class'
from /var/lib/gems/1.9.1/gems/gir_ffi-0.1.0/lib/gir_ffi/builder/module.rb:40:in `build_namespaced_class'
from /var/lib/gems/1.9.1/gems/gir_ffi-0.1.0/lib/gir_ffi/module_base.rb:16:in `load_class'
from /var/lib/gems/1.9.1/gems/gir_ffi-0.1.0/lib/ffi-glib.rb:84:in `'
from /var/lib/gems/1.9.1/gems/gir_ffi-0.1.0/lib/ffi-glib.rb:9:in `'
from :29:in `require'
from :29:in `require'
from /var/lib/gems/1.9.1/gems/gir_ffi-0.1.0/lib/gir_ffi.rb:18:in `'
from :33:in `require'
from :33:in `rescue in require'
from :29:in `require'
from exam.rb:1:in `

'