Skip to content
This repository has been archived by the owner on Dec 14, 2017. It is now read-only.

Specifying :tasks key causes Unable to resolve symbol: deftask #2

Closed
devn opened this issue Jul 23, 2010 · 2 comments
Closed

Specifying :tasks key causes Unable to resolve symbol: deftask #2

devn opened this issue Jul 23, 2010 · 2 comments

Comments

@devn
Copy link

devn commented Jul 23, 2010

project.clj:
...
:tasks [foo.tasks]
...

foo/src/foo/tasks.clj:
(ns foo.tasks)
(deftask hello-world
(println "hello world."))

$ cake help

Exception in thread "main" java.lang.Exception: Unable to resolve symbol: deftask in this context (tasks.clj:3)
at clojure.lang.Compiler.analyze(Compiler.java:5200)
at clojure.lang.Compiler.analyze(Compiler.java:5146)
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3031)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5366)

@lancepantz
Copy link
Contributor

Try (ns foo.tasks (:use cake) )

@ninjudd
Copy link
Owner

ninjudd commented Aug 2, 2010

closing

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants