This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-01
Channels
- # aatree (1)
- # alda (1)
- # announcements (3)
- # beginners (10)
- # boot (44)
- # braid-chat (6)
- # cbus (5)
- # cider (19)
- # cljs-dev (5)
- # cljsrn (11)
- # clojure (203)
- # clojure-austria (1)
- # clojure-canada (1)
- # clojure-germany (2)
- # clojure-poland (46)
- # clojure-russia (38)
- # clojurescript (79)
- # clojuresque (2)
- # code-reviews (11)
- # core-async (6)
- # cursive (11)
- # datomic (12)
- # dirac (91)
- # hoplon (8)
- # juxt (14)
- # ldnclj (7)
- # lein-figwheel (6)
- # leiningen (18)
- # off-topic (3)
- # om (230)
- # om-next (7)
- # onyx (31)
- # parinfer (1)
- # proton (1)
- # re-frame (44)
- # reagent (2)
- # rethinkdb (10)
- # spacemacs (5)
- # yada (24)
The cljs compiler is trying to load the file as clojure not as clojure script. That is the issue. Were it trying to load the file as cljs it would work.
Hi everyone. I am stuck, getting a simple regular expression to work. (re-matches #"/[^\(]*/" "foo(bar)")
should return foo
becaue it should match everthing until the first (
. i do not know what i am doing wrong.
i am getting nil
@thomasdeutsch try removing the forward slashes.
if i remove the forward slashes.. it somehow creates a loop so that my browser-window freezes
doesn't re-matches
work on the full string? it seems like you want re-find
or to match but throw away the rest of the string
in addition to removing the forward slashes, you don't need to escape the (
in a character class
so (re-find #"[^(]*" "foo(bar)")
returns "foo"
ahh, i get it. thanks @mcgivernsa
Hey all. Looking for some help with working with React and Om to render an svg with a use tag but getting “React.Dom.use not a function” error. (dom/svg #js {:viewBox 0 0 100 100”} (dom/use #js {:xlinkHref “/path/to/icon.svg”}))
@stephenway: there’s an #C06DT2YSY channel now
do people have a recommended development flow for working with ClojureScript libraries that doesn’t involve figwheel?
@venantius: boot has its own reloading tooling, or you can use boot-figwheel
it’s not going to get used in a browser context, which makes me think that the Node REPL is the way to go
@venantius: I will frequently use :reload
like an animal.
I’m always curious about boot but I don’t necessarily want to go through the headache of converting an existing project.clj to a boot file
@venantius: Yes.
@venantius: To be honest, for developing straight ClojureScript code, the REPL that you get with Quick Start is cool. If you put your src
dir in the classpath, you can require
:reload
till your heart is content.
rlwrap java -cp /path/to/cljs.jar:/another/path/to/src clojure.main -m cljs.repl.node
and rock on
stupid question, perhaps, but why is that better than just planck -c /path/to/src
?
@venantius: If you use Planck, then you are necessarily targeting bootstrapped ClojureScript
@venantius: Not in my opinion But… If you are careful, then the result will also work in JVM ClojureScript. Should be OK if you have mild macro usage.
@venantius: If you use Emacs or Cursive, it is also possible to use them with Planck: https://github.com/mfikes/planck/blob/master/site/src/ides.md
I mostly use vim and the terminal. I’ve been toying with Cursive lately when I’ve been working on http-kit
@venantius: If you start using Planck, feel free to ping me via DMs so as to not clog up this channel. I’ll be happy to help.
sounds great. really appreciate the help; this sounds like a really nice workflow. and great job on Planck. stars repo
what is the best way to import JS lib? https://github.com/moroshko/react-autosuggest/tree/dist
found this https://github.com/clojure/clojurescript/commit/ac0b169cb082bd2ff4ac917274cb91628adba947
@venantius: Make sure you check out IdeaVim if you’re not already
@venantius: Also, since Clojure REPL support exists for vim, I suspect the same technique used for Cursive works for any IDE that supports a Clojure REPL: https://github.com/mfikes/tubular (In general, prevalent Socket REPL support is going to be a nice thing IMHO.)
I'm trying to find a function that will take a string of valid(?) clojurescript and return a datastructure. I'm looking at replumb
, but don't really see what I want there