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

pm (pretty print) undefined in clojurescript #347

Open
SolbiatiAlessandro opened this issue Oct 23, 2020 · 1 comment
Open

pm (pretty print) undefined in clojurescript #347

SolbiatiAlessandro opened this issue Oct 23, 2020 · 1 comment

Comments

@SolbiatiAlessandro
Copy link

I love core.matrix in my clojurescript project, and I am using the https://github.com/originrose/aljabr implementation. Everything works, beside pm.

(require '[clojure.core.matrix :as mat])
dev:cljs.user=> (def m (mat/matrix :aljabr [[1 2]]))
#'cljs.user/m
dev:cljs.user=> (mat/esum m)
3
dev:cljs.user=> (mat/pm m)
----  Compiler Warning on   <cljs form>   line:1  column:2  ----

  Use of undeclared Var clojure.core.matrix/pm

  1  (mat/pm m)
      ^---

----  Compiler Warning  ----
#object[TypeError TypeError: Cannot read property 'call' of undefined]
dev:cljs.user=> (doc mat/pm)
nil

The commands above are executed in the lein figwheel repo, in my dependencies I have [net.mikera/core.matrix "0.62.0"] [thinktopic/aljabr "0.1.1"].

Any ideas what's wrong with pm?

@pedrorgirardi
Copy link

@SolbiatiAlessandro pm doesn't seem to be available in ClojureScript - there's a reader conditional for clj, but not for cljs.

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