Uninitialized constant Time::DateAndTime (NameError)


#1

Seeing this error with our MacOS application on startup:

2018-11-05 08:50:57.006 Sku IQ[2235:26378] /Users/mohith/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/motion-support-1.2.0/motion/core_ext/t: uninitialized constant Time::DateAndTime (NameError)
	from /Users/mohith/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/motion-support-1.2.0/motion/core_ext/t
2018-11-05 08:50:57.009 Sku IQ[2235:26378] *** Terminating app due to uncaught exception 'NameError', reason: '/Users/mohith/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/motion-support-1.2.0/motion/core_ext/t: uninitialized constant Time::DateAndTime (NameError)
	from /Users/mohith/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/motion-support-1.2.0/motion/core_ext/t
'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff52d6023b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00007fff79ff1c76 objc_exception_throw + 48
	2   Sku IQ                              0x00000001003e8510 _ZL10__vm_raisev + 336
	3   Sku IQ                              0x00000001003e85a0 rb_vm_raise + 80
	4   Sku IQ                              0x00000001002f3d89 rb_exc_raise + 9
	5   Sku IQ                              0x00000001002ee238 rb_name_error + 216
	6   Sku IQ                              0x00000001003a7040 rb_mod_const_missing + 80
	7   Sku IQ                              0x00000001003ce5ec rb_vm_dispatch + 5564
	8   Sku IQ                              0x00000001003a7edc rb_const_get_0 + 1084
	9   Sku IQ                              0x00000001001e5f0d vm_get_const + 269
	10  Sku IQ                              0x00000001001ea88a rb_scope2 + 74
	11  Sku IQ                              0x00000001001ea7eb rb_scope1 + 123
	12  Sku IQ                              0x00000001001ef6b9 MREP_D58F020EA5EF43E9909DB11D2852F609 + 3465
	13  Sku IQ                              0x000000010003c924 RubyMotionInit + 1348
	14  Sku IQ                              0x000000010003cb8b main + 107
	15  libdyld.dylib                       0x00007fff7ac0b015 start + 1
	16  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NameError

Anyone seen this error? We are using motion 5.15, motion-support 1.2.0.


#2

I believe it was fixed in this: https://github.com/rubymotion/motion-support/issues/38