Shards rake update error

I’m trying to install the Shards extension, but when I run the update
rake task, I get the error, “Don’t know how to build task
‘radiant:extensions:shards:update’”.

Here’s the text from my console window:

C:\Users\Ben\BitNami RubyStack projects\concretedesigncenter>rake
radiant:extensions:shards:update --trace
(in C:/Users/Ben/BitNami RubyStack projects/concretedesigncenter)
rake aborted!
Don’t know how to build task ‘radiant:extensions:shards:update’
C:/Program Files/BitNami
RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1634:in
[]' C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1930:ininvoke_task’
C:/Program Files/BitNami
RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in
top_level' C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:ineach’
C:/Program Files/BitNami
RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in
top_level' C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:instandard_exception_handling’
C:/Program Files/BitNami
RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in
top_level' C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:inrun’
C:/Program Files/BitNami
RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
standard_exception_handling' C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:inrun’
C:/Program Files/BitNami
RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
C:/Program Files/BitNami RubyStack/ruby/bin/rake:16:in `load’
C:/Program Files/BitNami RubyStack/ruby/bin/rake:16

Any ideas?

Ben

Ben,

Shards doesn’t use or provide that task. No need to run it!

Sean

Thanks, Sean.

I was having trouble installing the Reorder extension, and thought the
cause might have been that I didn’t run the update task on the
Shardsextension since it is required for Reorder.

I had the error: ## undefined method `page’ for
#Radiant::AdminUI:0x40804734

The solution was to edit Radiant’s environment.rb file:

config.extensions = [:shards, :all]

I found that information on the Reorder extension announcement
(http://www.ruby-forum.com/topic/132171). It was also available on the
“Using the Shards Extension” article in the Wiki
(http://wiki.radiantcms.org/Using_the_Shards_Extension).

In my defense, I had not yet read the Wiki article because I was really
only interested in installing Reorder and not in developing for Shards.

I did on the other hand read the README file in the Shards directory
prior to posting, so maybe adding the bit about how you must edit the
envirironment.rb file would help people who struggle with this in the
future.

Thanks once again for all your hard work!

Ben

The requirement for shards is hard to catch sometimes which is why I
can’t wait for it to be integrated into core.

(hint at seancribbs) lol.