Don't know how to build task '#

March 6, 2017

Getting this?

Don't know how to build task '#<Proc:0x007fa30d240c40@/path/projects/project/Rakefile:81 (lambda)>' (see --tasks)

The cause: rake tasks, for some reason, do not take Procs or lambdas as requirements. Only rake rules do. This works:

rule compress: ->(_f) { Dir.entries('.') }

while this does not:

task compress: ->(_f) { Dir.entries('.') }
Don't know how to build task '# - March 6, 2017 - mw