Rspec windows gem not running on 1.9 ?

M

Michel Demazure

Hi All,

My spec files work on 1.8.
Running on 1.9.1-p243 (mingw) with rspec-1.2.9, I get a GC error :

----
F:\dev\ruby\DMX>rake ruby19:spec
(in F:/dev/ruby/DMX)
1.9.1
[BUG] cross-thread violation on rb_gc()
ruby 1.8.6 (2009-08-04) [i386-mingw32]


This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
---

My spec main file starts by printing RUBY_VERSION (gives 1.9.1), but the
bug report speaks of 1.8.6.

I understand the rspec gem installed by 'gem install' is not compatible
with 1.9. If this is the correct explanation, how can I get a correct
one (without a mingw compiler) ?

Thanks for your help.
 
M

Michel Demazure

Michel Demazure wrote:

Sorry, the bug comes from the json gem I use in my project


F:\Ruby19\bin>irb
irb(main):001:0> puts RUBY_VERSION
1.9.1
=> nil
irb(main):002:0> require 'json'
[BUG] cross-thread violation on rb_gc()
ruby 1.8.6 (2009-08-04) [i386-mingw32]


This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.


So, same question for 'json'. How to get a correct one ?
 
M

Michel Demazure

Michel said:
Michel Demazure wrote:

Sorry, the bug comes from the json gem I use in my project

Solved : json is packed with 1.9. and uninstalling the gem solves the
problem...

Sorry for the noise added to the forum.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top