This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-22
Channels
- # admin-announcements (4)
- # bangalore-clj (1)
- # beginners (28)
- # boot (16)
- # clara (4)
- # cljs-dev (28)
- # cljsrn (63)
- # clojure (136)
- # clojure-berlin (7)
- # clojure-gamedev (1)
- # clojure-nl (4)
- # clojure-russia (47)
- # clojure-sg (8)
- # clojure-spec (39)
- # clojure-uk (132)
- # clojurescript (66)
- # clojurex (5)
- # clojutre (2)
- # code-reviews (14)
- # core-logic (1)
- # cursive (13)
- # datavis (1)
- # datomic (35)
- # dirac (1)
- # editors (1)
- # hoplon (46)
- # jobs (1)
- # lambdaisland (5)
- # lein-figwheel (1)
- # mount (10)
- # off-topic (3)
- # om (67)
- # onyx (54)
- # planck (7)
- # proton (15)
- # protorepl (1)
- # re-frame (174)
- # ring (4)
- # ring-swagger (3)
- # specter (14)
- # untangled (15)
cljs.reader/read-string?
I think that ones safe
Hi All, I am new to Clara and clojure. Trying to implement a simple rule. Experiencing below issues, 1) created a global variable using def. But the variable not accessible inside defrule. 2) The output of QueryResult, how to set into a Java object. 3) how to access inner object parameter in defrule. In detail, a parent object having several child object, I.e. cobj1, cobj2. one of the rule check is based on parameter available in cobj1. I have to access field x. The transferal from parent to child object field not happening. Please suggest
@shaunlebron Thanks!
hi @ramji013, welcome 🙂 I’d try asking that question in the #clara channel
quick question: How do you people resolve circular dependencies in clojurescript? I have a situation i can't seem to resolve view (cljc) -> history (html5) -> routes -> view (cljc)
Not really a clojurescript problem - Can happen in any code. Usually means you need to refactor code so A->B->A becomes A->C, B->C
Hey, guys, how you compile scss -> css?
hi everybody, when trying to compile clojurecript with
lein cljsbuild once
i get lein cljsbuild once
Compiling ClojureScript...
and stops.
The project.clj file is found here https://gist.github.com/kokosro/2ae855d03a34f85abec7cf128ae2fab4
This has worked before and now stopped all of a sudden.
I have removed all of my ~/.m2/reposotory/* and tried again with same result, the compilation doesn't go through and outputs no errors.
Any idea why is this happening or how I can debug this further?
thank youyes @jethroksy with same result
is there any other way i could debug this, to see where the compilation stops ? the :verbose true option doesn't display an information at this point
@jethroksy i'm going to try the configuration found here
and see what it does@jethroksy i've changed to :optimizations :none new project.clj is now looking like this https://gist.github.com/kokosro/2ae855d03a34f85abec7cf128ae2fab4 and it's starting to compile with
lein cljsbuild auto
but lein cljsbuild once
isn't working still, also no luck on :optimizations :advanced .
ty for your input@andrewtropin: I use Boot-SASS in my pipeline
does anyone know about any smooth setups for working with different clojurescript libraries at a time without too much hackery and custom scripting? I have a very ordinary cljs app, but also a cljs lib in a different project. When I work on the lib, I would like my cljs app boot process (with cljs compilation) to pick it up immediately and rebuild the necessary parts as it would do if the namespaces of the library were in the app project..
@molstt check the checkout task boot checkout -h
looks like a nice solution. It will require a transition from lein to boot in the lib project, but it's probably a good investment anyway. Thanks!
a slightly hacky approach would be to add the lib to :source-paths
but that doesn't account for an transitive deps
no need to move the lib from lein to boot, checkout task works fine with libs build using lein
btw. checkout task is replaced by checkout env property in 2.6
right but you don't have the watch install stuff
haha, confused them 🙈
yeah, there is benefit in using Boot for lib project
does macroexpand-1 always expand macro with the namespaces in clojure? I call macroexpand-1 in CLJS, then I saw clojure.core/let
, clojure.core/->>
, and this macro can not work in CLJS, but it works in CLJ. there's no third party library dependencies in it.
@doglooksgood: it’s not clear to me what your question is? namespaced symbols is from using syntax-quote, the backtick
I try to macroexpand-1
in .cljs, and I got, for example, clojure.core/->>
instead of cljs.core/->>
@doglooksgood right that’s because we reuse some macros from Clojure
and also clojure.core
is treated as an alias for cljs.core
in the ClojureScript compiler
does anyone have a good tutorial on compiling / deploying boot projects (cljs / clj) ?
@dimovich I've only heard praise for @magomimmo's modern-cljs tutorials: https://github.com/magomimmo/modern-cljs
another question.... on compiling cljs with advanced compilation, the js/mina easing functions seem to stop working
where does mina come from?
as a workaround you can use ((aget js/global "mina") ...)
but yeah, an externs file is the proper solution
@dimovich: (aget js/window “mina” “backout”)
is fine too
(goog.object/getValueByKeys js/window “mina” “backout”)
is good too: http://cljs.github.io/api/cljs.core/aget
If I have a cljc namespace in which I define a macro, I cannot use that macro later in the same namespace right?
@moxaj you can
having a foo/core.cljc
CLJC file where you have (CLJ) macros and CLJS code is no different than having separate foo/core.clj
and foo/core.cljs
files
you just need to #?(:cljs (:require-macros foo.core))
@anmonteiro thanks for the help, turns if it was an other issue (or a host of issues...)
some svg with clojurescript ... https://dimovich.github.io
@anmonteiro hmm... I have
...
#?(:clj (defmacro foo <...>))
(foo <...>)
When compiling, I get "can't take value of macro foo ...". 😞
Edit: nvm .. sigh@dimovich: nice color filters 🙂, not seeing how that works with opacity: 1...