This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-08
Channels
- # aws-lambda (2)
- # beginners (66)
- # calva (7)
- # cider (1)
- # clj-kondo (1)
- # cljs-dev (4)
- # cljsrn (2)
- # clojure (79)
- # clojure-android (1)
- # clojure-spec (8)
- # clojure-sweden (3)
- # clojure-uk (12)
- # clojurescript (6)
- # datomic (18)
- # duct (1)
- # emacs (31)
- # fulcro (8)
- # hoplon (5)
- # joker (4)
- # luminus (9)
- # off-topic (7)
- # reagent (6)
- # rewrite-clj (8)
- # shadow-cljs (9)
- # spacemacs (42)
- # tools-deps (9)
- # yada (4)
hi, I am trying to try
library from here: https://github.com/thi-ng/geom
I have added
in my deps.edn
and just included [thi.ng.geom.webgl.core :as gl]
in require section of one of my cljs file.
I get the following compilation error:
Status
X Compilation failed.
------ ERROR -------------------------------------------------------------------
File: jar:file:/home/user/.m2/repository/thi/ng/geom-webgl/0.0.908/geom-webgl-0.0.908.jar!/thi/ng/geom/webgl/core.cljs:628:40
--------------------------------------------------------------------------------
625 | (let [ctx (.getContext canvas (first ids) attribs)]
626 | (set! (.-onselectstart canvas) (constantly false))
627 | (if ctx ctx (recur (next ids))))
628 | (catch js/Error e (recur (next ids))))))]
----------------------------------------------^---------------------------------
Error in phase :compilation
Can't recur here at line 628 thi/ng/geom/webgl/core.cljs
--------------------------------------------------------------------------------
629 | (or ctx (err/unsupported! "WebGL not available")))))
630 | (defn clear-color-buffer
631 | [^WebGLRenderingContext gl r g b a]
632 | (.clearColor gl r g b a)
--------------------------------------------------------------------------------
The version you're using is a few years outdated, have you tried with the latest 1.0.0-RC3?
@qythium yes!! thank you very much. There are a lot of changes on the latest snapshot including refactoring of namespaces as well. I got past all the compilation errors now.
@thheller I’ve run into an issue where I can’t get a macro to update. I tried adding :cache-blockers to config, but no go (it’s not a side-effecting macro, but it is split as helper functions among files)
which is really weird to me…all I can think of is that it can’t see that the helper function in another namespace should affect the macro
yeah, confirmed: If I write supporting code for a macro in a CLJ namespace, then write the top-level macro in a CLJC namespace (with conditional compile of the macro to CLJ only), then changing anything in the CLJ impl namespace is not picked up. If I move them together into the same file it works as expected.