Fork me on GitHub
#clojurescript
<
2018-06-18
>
sofra01:06:23

any have any ideas on how to get started with https://github.com/uber/kepler.gl in cljs? Can NPM dependencies be consumed to be used in browser applications?

sofra01:06:59

thanks @dnolen I will take a look

sofra04:06:32

@jiyinyiyong I am very interested in shadow-cljs but I am trying to use this library in an existing quite large and old cljs code base and to be honest it is a PITA to try to use a different build tool just for this one lib.

Jon05:06:25

I'm quite interested, for a large project you mentioned, is there any feature you are using that is now missing in shadow-cljs?

chrisblom13:06:13

What do people use for tracking errors in ClojureScript apps? We use sentry for tracking errors on our backend Clojure services, is it also good for ClojureScript?

roman01la13:06:27

I think so. We are using Rollbar for both back and front ends

delaguardo13:06:38

We are using sentry for almost 2 months on both sides. Works nice and integration was not so hard

Oliver George02:06:00

We use sentry on the frontend too. Basic functionality works. Haven't pushed it much beyond that.

tungsten15:06:12

I continue to have major issues getting es6 foreign-libs to work with clojurescript. Here is the minimal source code for my example with cljs.main https://bitbucket.org/briangorman2/broken-cljs/src/master/

roman01la15:06:37

have you tried npm i @cljs-oss/module-deps?

tungsten15:06:40

I have not, but my project doesn't use NPM. I will give it a shot anyway

thheller19:06:08

@bfast don't know if you saw but this is all a whole lot easier in shadow-cljs. see https://shadow-cljs.github.io/docs/UsersGuide.html#classpath-js. basically just copy index.js into the src/hello_world folder and (:require ["./index.js" :as math]). no :foreign-libs config required.

tungsten19:06:49

thanks @U05224H0W ill give it a shot

dnolen15:06:23

@bfast your compile command is not right, it must end with -c

vigilancetech20:06:38

hey everyone. I have a clojurescript repl going from boot into chrome but when I give it a command to output anything it shows up on the browser console instead of back into the terminal where the repl is. Anyone know off the top of your head how to remedy that?

spinningtopsofdoom20:06:30

Try using (enable-console-print!)

dnolen21:06:31

@vigilancetech thatโ€™s odd, REPLs should handle that for you

vigilancetech21:06:01

@dnolen yeah, it seems it used to work a few weeks ago. I know I had to hack something to get the newlines right then, but not this problem. Can't think of what changed.

vigilancetech21:06:51

hmmm.. works in chromium. My chrome must be broken somehow

wilkerlucio22:06:52

hello, I'm trying to understand the internals of how cljs.test works, one thing that's bugging me is the :assert-type eq when the assertion is a =, can someone tell where this information come from? I tried searching the whole clojurescript source but I can't find it anywhere

bhauman23:06:27

@wilkerlucio search the cljs/test.clj source as well

bhauman23:06:08

yep ๐Ÿ™‚

wilkerlucio23:06:12

nothing there =/

wilkerlucio23:06:51

I tried searching the whole project, also downloaded and tried to grep on it, or I'm very blind or it's very well hidden ๐Ÿ˜›

bhauman23:06:07

@wilkerlucio where are you seeing this specifically?

wilkerlucio23:06:19

@bhauman when I look at the test report, I wrote a custom reporter (thanks to devcards code, that was really helpful on figuring this part out), and on the reporter I see this information

wilkerlucio23:06:35

it comes out of the test, but I can't find where it's defined