Code Monkey home page Code Monkey logo

Comments (6)

benshine avatar benshine commented on August 11, 2024

I get the same issue when calling RandomWord.nouns.next in subsequent requests in Rails 4.

from random-word.

mmhan avatar mmhan commented on August 11, 2024

I got the same issue with this in Rails 4 especially while running cucumber. I was trying to fork this and see if there's anything I can do to contribute (at least write a test), but somehow rake spec isn't running.

Here's my bundle show

  * activesupport (4.2.0)
  * bundler (1.7.4)
  * coderay (1.1.0)
  * diff-lcs (1.1.3)
  * git (1.2.9.1)
  * i18n (0.7.0)
  * jeweler (1.6.4)
  * json (1.8.2)
  * machinist (2.0)
  * method_source (0.8.2)
  * minitest (5.5.1)
  * pry (0.10.1)
  * rake (10.4.2)
  * rspec (2.3.0)
  * rspec-core (2.3.1)
  * rspec-expectations (2.3.0)
  * rspec-mocks (2.3.0)
  * slop (3.6.0)
  * thread_safe (0.3.4)
  * tzinfo (1.2.2)
  * yard (0.6.8)

Below is the error I received when I run rspec

undefined method `run_all' for []:Array

with Unable to find matching line from backtrace message.

from random-word.

mmhan avatar mmhan commented on August 11, 2024

The above problem regarding rspec and undefined method run_all' for []:Array was solved by upgrading rspec to ~> 2.4.0

Still couldn't reproduce the bug in spec though.

from random-word.

jtokoph avatar jtokoph commented on August 11, 2024

I'm getting FiberError (fiber called across threads): when calling next

from random-word.

pezra avatar pezra commented on August 11, 2024

@jtokoph, in what context? fwiw, this gem is not thread safe. a random word instance should only be used in one thread at a time.

from random-word.

jtokoph avatar jtokoph commented on August 11, 2024

Using threads in puma which would explain the issue.

from random-word.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.