GithubHelp home page GithubHelp logo

Comments (4)

mperham avatar mperham commented on August 15, 2024

I thought I fixed this this morning. Are you using the latest master?

On Sep 8, 2016, at 15:06, Tanner Donovan [email protected] wrote:

Issue with assignment of default context in personal Crystal app, however when adding an example spec to sidekiq.cr all passing.

Following the instructions from this Wiki entry.

https://github.com/mperham/sidekiq.cr/wiki/Getting-Started#create-some-jobs-using-the-client-api

$ crystal src/tasks/async_price.cr playground/price.csv
Error in ./src/tasks/async_price.cr:22: instantiating 'Sidekiq::Client::Context:Class#new()'

Sidekiq::Client.default_context = Sidekiq::Client::Context.new
^~~

instantiating 'Sidekiq::Client::Context#initialize()'

in ./libs/sidekiq/sidekiq/client.cr:16: instantiating 'Sidekiq::Logger:Class#build()'

    @logger = Sidekiq::Logger.build
                              ^~~~~

instantiating 'build(IO::FileDescriptor)'

in ./libs/sidekiq/sidekiq/logger.cr:48: undefined constant Logger::INFO

  logger.level = Logger::INFO

$ crystal --version
Crystal 0.19.0 (2016-09-02)
Example of spec/client_spec.cr passing.

describe "Sidekiq::Client" do
it "must allow assignment for a default context" do
Sidekiq::Client.default_context = Sidekiq::Client::Context.new
Sidekiq::Client.default_context.class.should eq(Sidekiq::Client::Context)
end
end

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from sidekiq.cr.

ttdonovan avatar ttdonovan commented on August 15, 2024

Hmm very strange in my project when I run crystal deps it keeps installing version 0.5.0.

$ crystal deps update
Updating https://github.com/mperham/sidekiq.cr.git
Updating https://github.com/stefanwille/crystal-redis.git
Updating https://github.com/ysbaddaden/pool.git
Updating https://github.com/sdogruyol/kemal.git
Updating https://github.com/luislavena/radix.git
Updating https://github.com/jeromegn/kilt.git
Updating https://github.com/mperham/baked_file_system.git
Installing sidekiq (0.5.0)
Using redis (1.6.7)
Using pool (0.2.3)
Using kemal (0.14.1)
Using radix (0.3.0)
Installing kilt (0.3.3)
Installing baked_file_system (master)

from sidekiq.cr.

ttdonovan avatar ttdonovan commented on August 15, 2024

OK I fixed it by specifying the master branch.

dependencies:
  sidekiq:
    github: mperham/sidekiq.cr
    branch: master

from sidekiq.cr.

mperham avatar mperham commented on August 15, 2024

Maybe I forgot to push my changes, I was having Wi-Fi problems this morning.

On Sep 8, 2016, at 16:24, Tanner Donovan [email protected] wrote:

Hmm very strange in my project when I run crystal deps it keeps installing version 0.5.0.

$ crystal deps update
Updating https://github.com/mperham/sidekiq.cr.git
Updating https://github.com/stefanwille/crystal-redis.git
Updating https://github.com/ysbaddaden/pool.git
Updating https://github.com/sdogruyol/kemal.git
Updating https://github.com/luislavena/radix.git
Updating https://github.com/jeromegn/kilt.git
Updating https://github.com/mperham/baked_file_system.git
Installing sidekiq (0.5.0)
Using redis (1.6.7)
Using pool (0.2.3)
Using kemal (0.14.1)
Using radix (0.3.0)
Installing kilt (0.3.3)
Installing baked_file_system (master)

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

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.