This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-14
Channels
- # announcements (6)
- # architecture (5)
- # aws (4)
- # beginners (79)
- # boot (3)
- # boot-dev (7)
- # calva (21)
- # cider (17)
- # cljdoc (12)
- # clojure (83)
- # clojure-art (2)
- # clojure-belgium (2)
- # clojure-brasil (1)
- # clojure-estonia (2)
- # clojure-europe (3)
- # clojure-finland (5)
- # clojure-india (2)
- # clojure-italy (49)
- # clojure-losangeles (1)
- # clojure-nl (12)
- # clojure-spec (120)
- # clojure-sweden (2)
- # clojure-switzerland (4)
- # clojure-uk (31)
- # clojurescript (80)
- # data-science (17)
- # datavis (2)
- # datomic (31)
- # emacs (31)
- # figwheel-main (28)
- # fulcro (6)
- # jobs (2)
- # liberator (7)
- # luminus (1)
- # nrepl (2)
- # off-topic (51)
- # overtone (2)
- # pathom (4)
- # re-frame (28)
- # reitit (1)
- # rum (6)
- # shadow-cljs (26)
- # specter (2)
- # tools-deps (33)
- # yada (3)
update: It was the :preloads [rebl.browser]
that interfered with the preloads the cljs.main -r added
FWIW, we have a site update that will help clarify which options on the REPL options page go into compiler options https://github.com/clojure/clojurescript-site/pull/258
Is there a way I can get figwheel to reload when I change a file in my resources directory? I want to load a text file containing a WebGL shader (e.g. by slurp inside a macro), and would like hot-reload to still work in this case. (I'm using figwheel-main)
@mseddon I have this option for when I change my css :figwheel { :css-dirs ["resources/public/css"]}
must be some other key as well that does general when this resource change, call "on-js-reload"
I just wrote a translation macro that collects all usages of static strings, then at the end of the compilation phase spits out a gettext .pot file. Everything seems to be working very nicely, should I feel dirty that I my macro uses an atom ??
In most cases I can imagine, I would like to do this job whenever I release the code anyway. So I don’t care at all for this in development mode, but for release it saves me doing a post-process on the files.
the closure compiler has some options to do translations and related things. still need to expose those properly in shadow-cljs
"closure compiler has some options to do translations" do you have any link for more info about this?
Yeah I investigated that - something to do with getMsg which would be nice to have. I’m using the ICU MessageFormat for now, which is nice but Closure only has limited functionality for it... so I might go to something else in the end.
hi, compiling our reagent project with clojurescript version 1.10.439 o even some version lower than this, we get Caused by: java.lang.NoClassDefFoundError: com/google/common/collect/Streams. Meanwhile we got back to an older one (1.9.946) where everything compiles well. Any ideas how to fix that error?
@thheller I've excluded guava everywhere lein deps :tree
was suggesting but still get the same error
there's a way to include plugins in the deps computation. not sure what it is though
@tomaas you are probably excluding the wrong version. try to use the version the closure-compiler wants
should be [com.google.guava/guava "25.1-jre"]
, can just add it manually do your deps to avoid getting a different version
hello folks! is there any lib that does what clj->js
is doing but with a :depth
param or something for controlling how nested it should go?
basically like util.inspect
I want to throw a clojurescript datastructure into a function and get a dom that I can visualize it with, kinda like this: https://www.npmjs.com/package/react-json-tree. Is there a library that does this? I could also convert it to json first, which is quite tempting.
cljs-devtools given a cljs value can provide you JsonML representation, but you would have to render it yourself
@d4hines I’ve used this in the past: https://github.com/Odinodin/data-frisk-reagent
I used it primarily for debugging, now I use re-frisk which integrates with re-frame
That’s perfect. I’ve seen that before, I just couldn’t remember it.
I'm also working on something similar to REBL for CLJS that I think fits this niche quite nicely too. should be releasable soon-ish 😜
way betting then pprinting and trying to have CIDER handle it, or using the Emacs inspector, like I have in the past
the beginning is kind of slow but the payoff is near the middle / end when stu explains how datafy and nav fit into this and the actual tool itself
that being said, I haven't used REBL for anything other than a replacement for pretty-printing
this sounds like my friday afternoon this weekend then. setting this up. does it work with cljs yet or is it just for clj right now?
when I use .setQuery
from Google Closure to set a query string to a Uri
I notice that it doesn’t encode (
, )
and +
, why is that?
should I encode parens in query parameters? I forgot why I did it in the first place
I wanted to tweet this example, but that didn’t work when I removed the encoding of parens: https://re-find.it/?args=%2B%20%5B1%202%203%5D&ret=%28%2B%201%202%203%29
maybe use a trailing character on parens? (,
-> (
and ),
-> )
. You might not even have to decode that since commas are just whitespace
it seems to be especially the case with query params: https://en.wikipedia.org/wiki/Disambiguation_(disambiguation) works but https://en.wikipedia.org/wiki/Disambiguation_(disambiguation)?q=(foo) not, then the last paren gets chopped. Same with trailing comma.
it might be a bug in the http://t.co url shortener
i think it would be way nicer if you had more readable url's (just my opinion). Parens are way more prevalent in clojure snippets than github snippets.
@dpsutton I agree and I’ve thought about it but I haven’t found a nice solution to this
@dpsutton e.g. you can make up some scheme where you replace chars that normally would be percent encoded with some other char, but what if that other char is in the input?
yeah you need something that would never be in the input. maybe ~
, !
, or something like that
you mean the other way around right? if the user types (foo)
the query param will be (!foo)!
?
maybe ~
or ^
will work, since I don’t expect those to be of use… this may work out well
@dpsutton spaces and square brackets will also need their unique encoding. I think it gets complicated
it might be nice to have a general library which can encode clojure expressions as pretty url query params. I also tried base64, but these aren’t all pretty to see either and become longer
Made an issue for it, in case I get some better ideas: https://github.com/borkdude/re-find.web/issues/67
@dpsutton thought a little bit more about it: https://github.com/borkdude/re-find.web/issues/67