GithubHelp home page GithubHelp logo

Invalid type derivation about sidekiq.cr HOT 5 CLOSED

hugopl avatar hugopl commented on August 15, 2024
Invalid type derivation

from sidekiq.cr.

Comments (5)

mperham avatar mperham commented on August 15, 2024

@jhass @asterite Any ideas? If you have sidekiq.cr locally, just do this:

git pull
git co json_mapping
make

from sidekiq.cr.

asterite avatar asterite commented on August 15, 2024

Sidekiq::JobProxy#retry returns this

from sidekiq.cr.

asterite avatar asterite commented on August 15, 2024

I'm thinking of ways to improve the error message, but it's hard. Basically retry got that type from that method and it was passed to a method. Traces are already very long.

The way I found the error was:

  1. The compiler seems to believe retry has a type I didn't expect
  2. Is retry redefined in Job, or any subclass of Job redefines this method?
  3. Found Sidekiq::JobProxy#retry returning the result of an each method.

from sidekiq.cr.

mperham avatar mperham commented on August 15, 2024

Thanks, that was it. Now I seem to have an infinite loop. Is it possible to dump a current backtrace when running crystal spec?

from sidekiq.cr.

mperham avatar mperham commented on August 15, 2024

crystal spec -v gave me the hint I needed.

from sidekiq.cr.

Related Issues (20)

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.