public
Last active

ClojureScript aliasing issue

  • Download Gist
core.clj
Clojure
1 2 3 4
(ns core
(:require [clojure.core.async :as async]))
 
(defmacro some-macro [] nil)
core.cljs
Clojure
1 2 3
(ns core
(:require [cljs.core.async :as async])
(:require-macros [core :refer [some-macro]]))
exception-1918.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
Compiling "test.js" failed.
clojure.lang.ExceptionInfo: Alias async already exists in namespace core, aliasing cljs.core.async at line 1
core.clj:4327 clojure.core/ex-info
analyzer.clj:145 cljs.analyzer/error
analyzer.clj:1024 cljs.analyzer/analyze-seq
analyzer.clj:1086 cljs.analyzer/analyze
analyzer.clj:1077 cljs.analyzer/analyze
compiler.clj:875 cljs.compiler/parse-ns[fn]
compiler.clj:875 cljs.compiler/parse-ns[fn]
compiler.clj:871 cljs.compiler/parse-ns
compiler.clj:866 cljs.compiler/parse-ns
compiler.clj:955 cljs.compiler/to-target-file
compiler.clj:986 cljs.compiler/compile-root
closure.clj:398 cljs.closure/compile-dir
closure.clj:430 cljs.closure/eval2483[fn]
closure.clj:299 cljs.closure/eval2410[fn]
closure.clj:444 cljs.closure/eval2470[fn]
closure.clj:299 cljs.closure/eval2410[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:969 cljs.closure/build
closure.clj:944 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
form-init4804487435585136692.clj:1 user/eval2806[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
form-init4804487435585136692.clj:1 user/eval2806
Compiler.java:6619 clojure.lang.Compiler.eval
Compiler.java:6609 clojure.lang.Compiler.eval
Compiler.java:7064 clojure.lang.Compiler.load
Compiler.java:7020 clojure.lang.Compiler.loadFile
main.clj:294 clojure.main/load-script
main.clj:299 clojure.main/init-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: java.lang.IllegalStateException: Alias async already exists in namespace core, aliasing cljs.core.async
Namespace.java:224 clojure.lang.Namespace.addAlias
core.clj:3870 clojure.core/alias
core.clj:5387 clojure.core/load-lib
RestFn.java:142 clojure.lang.RestFn.applyTo
core.clj:619 clojure.core/apply
core.clj:5413 clojure.core/load-libs
RestFn.java:137 clojure.lang.RestFn.applyTo
core.clj:619 clojure.core/apply
core.clj:5496 clojure.core/require
RestFn.java:408 clojure.lang.RestFn.invoke
core.clj:1 core/eval5166[fn]
core.clj:1 core/eval5166
Compiler.java:6619 clojure.lang.Compiler.eval
Compiler.java:6608 clojure.lang.Compiler.eval
Compiler.java:7064 clojure.lang.Compiler.load
RT.java:370 clojure.lang.RT.loadResourceScript
RT.java:361 clojure.lang.RT.loadResourceScript
RT.java:440 clojure.lang.RT.load
RT.java:411 clojure.lang.RT.load
core.clj:5530 clojure.core/load[fn]
core.clj:5529 clojure.core/load
RestFn.java:408 clojure.lang.RestFn.invoke
core.clj:5336 clojure.core/load-one
core.clj:5375 clojure.core/load-lib[fn]
core.clj:5374 clojure.core/load-lib
RestFn.java:142 clojure.lang.RestFn.applyTo
core.clj:619 clojure.core/apply
core.clj:5413 clojure.core/load-libs
RestFn.java:137 clojure.lang.RestFn.applyTo
core.clj:619 clojure.core/apply
core.clj:5496 clojure.core/require
RestFn.java:408 clojure.lang.RestFn.invoke
analyzer.clj:783 cljs.analyzer/eval910[fn]
MultiFn.java:241 clojure.lang.MultiFn.invoke
analyzer.clj:1026 cljs.analyzer/analyze-seq
exception.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
Compiling "test.js" failed.
clojure.lang.ExceptionInfo: failed compiling file:src-cljs/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/eval1958[fn]
closure.clj:299 cljs.closure/eval1885[fn]
closure.clj:444 cljs.closure/eval1945[fn]
closure.clj:299 cljs.closure/eval1885[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
form-init5635874861181283454.clj:1 user/eval2275[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
form-init5635874861181283454.clj:1 user/eval2275
Compiler.java:6619 clojure.lang.Compiler.eval
Compiler.java:6609 clojure.lang.Compiler.eval
Compiler.java:7064 clojure.lang.Compiler.load
Compiler.java:7020 clojure.lang.Compiler.loadFile
main.clj:294 clojure.main/load-script
main.clj:299 clojure.main/init-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: Alias async already exists in namespace core, aliasing cljs.core.async at line 1 src-cljs/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.IllegalStateException: Alias async already exists in namespace core, aliasing cljs.core.async
Namespace.java:224 clojure.lang.Namespace.addAlias
core.clj:3870 clojure.core/alias
core.clj:5387 clojure.core/load-lib
RestFn.java:142 clojure.lang.RestFn.applyTo
core.clj:619 clojure.core/apply
core.clj:5413 clojure.core/load-libs
RestFn.java:137 clojure.lang.RestFn.applyTo
core.clj:619 clojure.core/apply
core.clj:5496 clojure.core/require
RestFn.java:408 clojure.lang.RestFn.invoke
core.clj:1 core/eval4601[fn]
core.clj:1 core/eval4601
Compiler.java:6619 clojure.lang.Compiler.eval
Compiler.java:6608 clojure.lang.Compiler.eval
Compiler.java:7064 clojure.lang.Compiler.load
RT.java:370 clojure.lang.RT.loadResourceScript
RT.java:361 clojure.lang.RT.loadResourceScript
RT.java:440 clojure.lang.RT.load
RT.java:411 clojure.lang.RT.load
core.clj:5530 clojure.core/load[fn]
core.clj:5529 clojure.core/load
RestFn.java:408 clojure.lang.RestFn.invoke
core.clj:5336 clojure.core/load-one
core.clj:5375 clojure.core/load-lib[fn]
core.clj:5374 clojure.core/load-lib
RestFn.java:142 clojure.lang.RestFn.applyTo
core.clj:619 clojure.core/apply
core.clj:5413 clojure.core/load-libs
RestFn.java:137 clojure.lang.RestFn.applyTo
core.clj:619 clojure.core/apply
core.clj:5496 clojure.core/require
RestFn.java:408 clojure.lang.RestFn.invoke
analyzer.clj:709 cljs.analyzer/eval396[fn]
MultiFn.java:241 clojure.lang.MultiFn.invoke
analyzer.clj:935 cljs.analyzer/analyze-seq
project.clj
Clojure
1 2 3 4 5 6 7 8 9
(defproject cljs-aliasing "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/core.async "0.1.0-SNAPSHOT"]]
:plugins [[lein-cljsbuild "0.3.2"]]
:cljsbuild {:builds {:dev {:source-paths ["src-cljs"]
:compiler {:output-to "test.js"
:optimizations :whitespace
:pretty-print true}}}}
:repositories {"sonatype-oss-public" "https://oss.sonatype.org/content/groups/public/"})

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.