missing dependencies
dcdieci opened this issue · comments
I just installed this gem and tried the sample code. I get the following error
You don't have dalli installed in your application. Please add it to your Gemfile and run bundle install
rake aborted!
LoadError: cannot load such file -- dalli
So I was wondering if this gem is supposed to work without dalli ? Because dalli on the other hand needs memcached, and I dont want to include two more gems because of this one. Actually it should mention the dependencies.
I can't find the word dalli (case insensitive) in our project or even in our git history.
Can you provide a full stacktrace?
Like you said dalli is related to MemCache so perhaps is not really a spawnling dependency but something you need with MemCache
it is lib/patches.rb that triggers it. defined?(::ActiveSupport::Cache::MemCacheStore) appears to be true even if MemCacheStore is not used. The MemCacheStore.delegate then triggers an autoload of active_support/cache/mem_cache_store.rb which in turn requires dalli.
Not entirely sure how to fix it since I'm not sure what the delegate thingy is actually supposed to do?
@olemd @dcdieci This has been fixed in 5ff9d13...6880b0a which is part of the latest 2.1.5 gem release.
Excellent!