Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

required "enfocus.effects" namespace never provided #53

Closed
gzmask opened this issue Jul 15, 2013 · 7 comments
Closed

required "enfocus.effects" namespace never provided #53

gzmask opened this issue Jul 15, 2013 · 7 comments

Comments

@gzmask
Copy link

gzmask commented Jul 15, 2013

WARNING: 2 error(s), 0 warning(s)
ERROR: JSC_MISSING_PROVIDE_ERROR. required "enfocus.effects" namespace never provided at /Volumes/CAT_Archive_1of2/Users/gzmask/projects/rich-invoice/target/cljsbuild-compiler-0/app/core.js line 3 : 0
ERROR: JSC_MISSING_PROVIDE_ERROR. required "enfocus.events" namespace never provided at /Volumes/CAT_Archive_1of2/Users/gzmask/projects/rich-invoice/target/cljsbuild-compiler-0/app/core.js line 4 : 0

Code:
https://github.com/richever/rich-invoice

@ckirkendall
Copy link
Owner

Change the version in your project.clj to 2.0-SNAPSHOT. The namespaces
were broken out in 2.X. I am working on putting together the alpha release
this weekend.

Creighton Kirkendall

On Mon, Jul 15, 2013 at 6:13 PM, gzmask notifications@github.com wrote:

WARNING: 2 error(s), 0 warning(s)
ERROR: JSC_MISSING_PROVIDE_ERROR. required "enfocus.effects" namespace
never provided at
/Volumes/CAT_Archive_1of2/Users/gzmask/projects/rich-invoice/target/cljsbuild-compiler-0/app/core.js
line 3 : 0
ERROR: JSC_MISSING_PROVIDE_ERROR. required "enfocus.events" namespace
never provided at
/Volumes/CAT_Archive_1of2/Users/gzmask/projects/rich-invoice/target/cljsbuild-compiler-0/app/core.js
line 4 : 0

Code:
https://github.com/richever/rich-invoice


Reply to this email directly or view it on GitHubhttps://github.com//issues/53
.

@gzmask
Copy link
Author

gzmask commented Jul 16, 2013

Thanks for quick reply!

I've changed to 2.0.0-snapshot. only core can be used. effects and events are still giving me errors:
Compiling "js/app.js" failed.
clojure.lang.ExceptionInfo: failed compiling file:cljs/app/core.cljs
core.clj:4327 clojure.core/ex-info
compiler.clj:891 cljs.compiler/compile-file
compiler.clj:953 cljs.compiler/compile-root
closure.clj:398 cljs.closure/compile-dir
closure.clj:430 cljs.closure/eval1956[fn]
closure.clj:299 cljs.closure/eval1883[fn]
closure.clj:444 cljs.closure/eval1943[fn]
closure.clj:299 cljs.closure/eval1883[fn]
compiler.clj:43 cljsbuild.compiler.SourcePaths/fn
core.clj:2485 clojure.core/map[fn]
LazySeq.java:42 clojure.lang.LazySeq.sval
LazySeq.java:60 clojure.lang.LazySeq.seq
RT.java:484 clojure.lang.RT.seq
core.clj:133 clojure.core/seq
core.clj:617 clojure.core/apply
core.clj:2514 clojure.core/mapcat
RestFn.java:423 clojure.lang.RestFn.invoke
compiler.clj:43 cljsbuild.compiler/cljsbuild.compiler.SourcePaths
closure.clj:955 cljs.closure/build
compiler.clj:57 cljsbuild.compiler/compile-cljs[fn]
compiler.clj:56 cljsbuild.compiler/compile-cljs
compiler.clj:140 cljsbuild.compiler/run-compiler
NO_SOURCE_FILE:1 user/eval2273[fn]
LazySeq.java:42 clojure.lang.LazySeq.sval
LazySeq.java:60 clojure.lang.LazySeq.seq
RT.java:484 clojure.lang.RT.seq
core.clj:133 clojure.core/seq
core.clj:2780 clojure.core/dorun
core.clj:2796 clojure.core/doall
NO_SOURCE_FILE:1 user/eval2273
Compiler.java:6619 clojure.lang.Compiler.eval
Compiler.java:6609 clojure.lang.Compiler.eval
Compiler.java:6582 clojure.lang.Compiler.eval
core.clj:2852 clojure.core/eval
main.clj:308 clojure.main/eval-opt
main.clj:327 clojure.main/initialize
main.clj:362 clojure.main/null-opt
main.clj:440 clojure.main/main
RestFn.java:421 clojure.lang.RestFn.invoke
Var.java:419 clojure.lang.Var.invoke
AFn.java:163 clojure.lang.AFn.applyToHelper
Var.java:532 clojure.lang.Var.applyTo
main.java:37 clojure.main.main
Caused by: clojure.lang.ExceptionInfo: Assert failed: Only :refer-clojure, :require, :require-macros, :use and :use-macros libspecs supported
(#{:import :use-macros :require-macros :require :use} k) at line 1 cljs/app/core.cljs
core.clj:4327 clojure.core/ex-info
analyzer.clj:128 cljs.analyzer/error
analyzer.clj:933 cljs.analyzer/analyze-seq
analyzer.clj:989 cljs.analyzer/analyze
analyzer.clj:980 cljs.analyzer/analyze
compiler.clj:822 cljs.compiler/compile-file*
compiler.clj:888 cljs.compiler/compile-file
Caused by: java.lang.AssertionError: Assert failed: Only :refer-clojure, :require, :require-macros, :use and :use-macros libspecs supported
(#{:import :use-macros :require-macros :require :use} k)
analyzer.clj:697 cljs.analyzer/eval394[fn]
protocols.clj:143 clojure.core.protocols/fn
protocols.clj:19 clojure.core.protocols/fn[fn]
protocols.clj:31 clojure.core.protocols/seq-reduce
protocols.clj:54 clojure.core.protocols/fn
protocols.clj:13 clojure.core.protocols/fn[fn]
core.clj:6177 clojure.core/reduce
analyzer.clj:703 cljs.analyzer/eval394[fn]
MultiFn.java:241 clojure.lang.MultiFn.invoke
analyzer.clj:935 cljs.analyzer/analyze-seq

@ckirkendall
Copy link
Owner

Somehow you are getting enfocus 1.x on your classpath. What version of
lein are you using? Make sure enfocus 1.x is removed from your project lib
folder and if you still have problems delete the entire enfocus directory
in your .m2/repo.

CK

On Tue, Jul 16, 2013 at 4:50 PM, gzmask notifications@github.com wrote:

Thanks for quick reply!

I've changed to 2.0.0-snapshot. only core can be used. effects and events
are still giving me errors:
Compiling "js/app.js" failed.
clojure.lang.ExceptionInfo: failed compiling file:cljs/app/core.cljs
core.clj:4327 clojure.core/ex-info
compiler.clj:891 cljs.compiler/compile-file
compiler.clj:953 cljs.compiler/compile-root
closure.clj:398 cljs.closure/compile-dir
closure.clj:430 cljs.closure/eval1956[fn]
closure.clj:299 cljs.closure/eval1883[fn]
closure.clj:444 cljs.closure/eval1943[fn]
closure.clj:299 cljs.closure/eval1883[fn]
compiler.clj:43 cljsbuild.compiler.SourcePaths/fn
core.clj:2485 clojure.core/map[fn]
LazySeq.java:42 clojure.lang.LazySeq.sval
LazySeq.java:60 clojure.lang.LazySeq.seq
RT.java:484 clojure.lang.RT.seq
core.clj:133 clojure.core/seq
core.clj:617 clojure.core/apply
core.clj:2514 clojure.core/mapcat
RestFn.java:423 clojure.lang.RestFn.invoke
compiler.clj:43 cljsbuild.compiler/cljsbuild.compiler.SourcePaths
closure.clj:955 cljs.closure/build
compiler.clj:57 cljsbuild.compiler/compile-cljs[fn]
compiler.clj:56 cljsbuild.compiler/compile-cljs
compiler.clj:140 cljsbuild.compiler/run-compiler
NO_SOURCE_FILE:1 user/eval2273[fn]
LazySeq.java:42 clojure.lang.LazySeq.sval
LazySeq.java:60 clojure.lang.LazySeq.seq
RT.java:484 clojure.lang.RT.seq
core.clj:133 clojure.core/seq
core.clj:2780 clojure.core/dorun
core.clj:2796 clojure.core/doall
NO_SOURCE_FILE:1 user/eval2273
Compiler.java:6619 clojure.lang.Compiler.eval
Compiler.java:6609 clojure.lang.Compiler.eval
Compiler.java:6582 clojure.lang.Compiler.eval
core.clj:2852 clojure.core/eval
main.clj:308 clojure.main/eval-opt
main.clj:327 clojure.main/initialize
main.clj:362 clojure.main/null-opt
main.clj:440 clojure.main/main
RestFn.java:421 clojure.lang.RestFn.invoke
Var.java:419 clojure.lang.Var.invoke
AFn.java:163 clojure.lang.AFn.applyToHelper
Var.java:532 clojure.lang.Var.applyTo
main.java:37 clojure.main.main
Caused by: clojure.lang.ExceptionInfo: Assert failed: Only :refer-clojure,
:require, :require-macros, :use and :use-macros libspecs supported
(#{:import :use-macros :require-macros :require :use} k) at line 1
cljs/app/core.cljs
core.clj:4327 clojure.core/ex-info
analyzer.clj:128 cljs.analyzer/error
analyzer.clj:933 cljs.analyzer/analyze-seq
analyzer.clj:989 cljs.analyzer/analyze
analyzer.clj:980 cljs.analyzer/analyze
compiler.clj:822 cljs.compiler/compile-file*
compiler.clj:888 cljs.compiler/compile-file
Caused by: java.lang.AssertionError: Assert failed: Only :refer-clojure,
:require, :require-macros, :use and :use-macros libspecs supported
(#{:import :use-macros :require-macros :require :use} k)
analyzer.clj:697 cljs.analyzer/eval394[fn]
protocols.clj:143 clojure.core.protocols/fn
protocols.clj:19 clojure.core.protocols/fn[fn]
protocols.clj:31 clojure.core.protocols/seq-reduce
protocols.clj:54 clojure.core.protocols/fn
protocols.clj:13 clojure.core.protocols/fn[fn]
core.clj:6177 clojure.core/reduce
analyzer.clj:703 cljs.analyzer/eval394[fn]
MultiFn.java:241 clojure.lang.MultiFn.invoke
analyzer.clj:935 cljs.analyzer/analyze-seq


Reply to this email directly or view it on GitHubhttps://github.com//issues/53#issuecomment-21072639
.

@gzmask
Copy link
Author

gzmask commented Jul 16, 2013

I am using lein 2.2.0 on java 1.6.0 with osx 10.8

I tried http://ckirkendall.github.io/enfocus-site/ with 1.0.1 and things has been working.

I guess the readme.md documentation and 2.0.0-snapshot needs some work.

For now I'll stick with 1.0.1

@gzmask gzmask closed this as completed Jul 16, 2013
@ckirkendall
Copy link
Owner

@gzmask
I have quite a few people using 2.0.0-SNAPSHOT and I have not heard any
issues with the readme. The namespaces should be present in the 2.X
release. If I do have something wrong I would love some help figuring it
out. Is it possible for you to crack open the 2.0.0-SNAPSHOT in your local
repo and make sure that clj files for effect.clj and events.clj are in
there? I had some issues with clojars getting a corrupted file awhile ago
but I believe those issues are resolved. The enfocus-site does not work
with 2.0.0-SNAPSHOT, I am currently working on a new documentation site for
2.X.

CK

On Tue, Jul 16, 2013 at 5:15 PM, gzmask notifications@github.com wrote:

I am using lein 2.2.0 on java 1.6.0 with osx 10.8

I tried http://ckirkendall.github.io/enfocus-site/ with 1.0.1 and things
has been working.

I guess the readme.md documentation and 2.0.0-snapshot needs some work.

For now I'll stick with 1.0.1


Reply to this email directly or view it on GitHubhttps://github.com//issues/53#issuecomment-21074533
.

@ckirkendall
Copy link
Owner

On another note you can use the enfocus-template now to create a new project for 2.0.0-SHAPSHOT. This setup has been validated to work. Just execute the following commands:

lein new enfocus-template my-project
cd my-project
lein cljsbuild once
lein ring server

@gzmask
Copy link
Author

gzmask commented Jul 17, 2013

thanks ckirkendall. I found out that I was naming the enfocus.events as events where I was using event in my code. Enfocus 2.0.0 is fully working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants