Created
November 4, 2017 18:28
-
-
Save aibrahim/f78e6bb6ff1e41bd35883ead380db615 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##foo.clj | |
(def one 1) | |
(def two 2) | |
(def three 3) | |
(def numbers '(one two three)) | |
##core.clj | |
(:use test.foo) | |
(println (map eval numbers)) ;;;why not working | |
## error | |
(Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: one in this context, compiling:(/tmp/form-init4049630399760684393.clj:1:113) | |
at clojure.lang.Compiler.analyze(Compiler.java:6688) | |
at clojure.lang.Compiler.analyze(Compiler.java:6625) | |
at clojure.lang.Compiler.eval(Compiler.java:6931) | |
at clojure.lang.Compiler.eval(Compiler.java:6890) | |
at clojure.core$eval.invokeStatic(core.clj:3105) | |
at clojure.core$eval.invoke(core.clj:3101) | |
at clojure.core$map$fn__4785.invoke(core.clj:2646) | |
at clojure.lang.LazySeq.sval(LazySeq.java:40) | |
at clojure.lang.LazySeq.seq(LazySeq.java:49) | |
at clojure.lang.RT.seq(RT.java:521) | |
at clojure.core$seq__4357.invokeStatic(core.clj:137) | |
at clojure.core$print_sequential.invokeStatic(core_print.clj:46) | |
at clojure.core$fn__6072.invokeStatic(core_print.clj:153) | |
at clojure.core$fn__6072.invoke(core_print.clj:153) | |
at clojure.lang.MultiFn.invoke(MultiFn.java:233) | |
at clojure.core$pr_on.invokeStatic(core.clj:3572) | |
at clojure.core$pr.invokeStatic(core.clj:3575) | |
at clojure.core$pr.invoke(core.clj:3575) | |
at clojure.lang.AFn.applyToHelper(AFn.java:154) | |
at clojure.lang.RestFn.applyTo(RestFn.java:132) | |
at clojure.core$apply.invokeStatic(core.clj:646) | |
at clojure.core$prn.invokeStatic(core.clj:3612) | |
at clojure.core$prn.doInvoke(core.clj:3612) | |
at clojure.lang.RestFn.applyTo(RestFn.java:137) | |
at clojure.core$apply.invokeStatic(core.clj:646) | |
at clojure.core$println.invokeStatic(core.clj:3631) | |
at clojure.core$println.doInvoke(core.clj:3631) | |
at clojure.lang.RestFn.invoke(RestFn.java:408) | |
at test.core$_main.invokeStatic(core.clj:7) | |
at test.core$_main.doInvoke(core.clj:4) | |
at clojure.lang.RestFn.invoke(RestFn.java:397) | |
at clojure.lang.Var.invoke(Var.java:375) | |
at user$eval5.invokeStatic(form-init4049630399760684393.clj:1) | |
at user$eval5.invoke(form-init4049630399760684393.clj:1) | |
at clojure.lang.Compiler.eval(Compiler.java:6927) | |
at clojure.lang.Compiler.eval(Compiler.java:6917) | |
at clojure.lang.Compiler.load(Compiler.java:7379) | |
at clojure.lang.Compiler.loadFile(Compiler.java:7317) | |
at clojure.main$load_script.invokeStatic(main.clj:275) | |
at clojure.main$init_opt.invokeStatic(main.clj:277) | |
at clojure.main$init_opt.invoke(main.clj:277) | |
at clojure.main$initialize.invokeStatic(main.clj:308) | |
at clojure.main$null_opt.invokeStatic(main.clj:342) | |
at clojure.main$null_opt.invoke(main.clj:339) | |
at clojure.main$main.invokeStatic(main.clj:421) | |
at clojure.main$main.doInvoke(main.clj:384) | |
at clojure.lang.RestFn.invoke(RestFn.java:421) | |
at clojure.lang.Var.invoke(Var.java:383) | |
at clojure.lang.AFn.applyToHelper(AFn.java:156) | |
at clojure.lang.Var.applyTo(Var.java:700) | |
at clojure.main.main(main.java:37) | |
Caused by: java.lang.RuntimeException: Unable to resolve symbol: one in this context | |
at clojure.lang.Util.runtimeException(Util.java:221) | |
at clojure.lang.Compiler.resolveIn(Compiler.java:7164) | |
at clojure.lang.Compiler.resolve(Compiler.java:7108) | |
at clojure.lang.Compiler.analyzeSymbol(Compiler.java:7069) | |
at clojure.lang.Compiler.analyze(Compiler.java:6648) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment