Welcome! Please see the About page for a little more info on how this works.

0 votes
ago in ClojureScript by

Trying to compile any namespace including + fails in clojurescript

e.g.:

(ns test+.core)

(println "Hello, World!")

compiled with clojurescript "1.12.42"

clj -M --main cljs.main --compile test+.core

results in

 `Namespace test+.core does not exist.`

Trying to include the namespace from another gives:

Unexpected error (ExceptionInfo) compiling at (REPL:1).
No such namespace: test+.core, could not locate test_PLUS_/core.cljs, test_PLUS_/core.cljc, or JavaScript source providing "test+.core" (Please check that namespaces with dashes use underscores in the ClojureScript file name) in file /home/sigvesn/clojure/cljs-test/src/other.cljs

Note that it is possible to compile the namespace from regular clojure.

This is relevant because the clojure walk library uses + in the namespace

Repo with code to reproduce

1 Answer

+1 vote
ago by
...