kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
dominicm 2020-02-24T14:39:41.002700Z

Unrelated. I'm having issues, without my library, where commented out tests are being run. I've bumped all the versions. I'm using ; comments. I've run lein clean. I'm very confused. Any hints?

dominicm 2020-02-24T14:45:48.003600Z

Ah. Lein clean is useless because it's down to wherever your compiler writes to, eg out/

dominicm 2020-02-24T14:46:48.004900Z

Oh, and latest version of kaocha doesn't work for me because it doesn't depend on a version of glogi, only "release", which is deprecated and not supported by my proxy.

plexus 2020-02-24T15:58:30.005400Z

oh, that should be fixed, I'll put out a release. You're talking about kaocha-cljs right?

dominicm 2020-02-24T16:02:00.005700Z

Yeah. I raised an issue.

plexus 2020-02-24T16:03:42.006200Z

thanks, I released kaocha-cljs 0.0-71 with a specific glogi version

dominicm 2020-02-24T16:29:44.006500Z

Thanks, I can straight bump that.

plexus 2020-02-24T17:13:53.006600Z

😂 1
dominicm 2020-02-24T17:18:25.007500Z

Are there situations where :bindings don't work?

dominicm 2020-02-24T17:18:39.007900Z

I'm not seeing the raw socket data printed out for cljs

dominicm 2020-02-24T17:23:20.010100Z

Tbh, I'm pretty confused. I'm still seeing old builds despite deleting out, I'm not seeing files go into "out2" despite setting it as my output dir in cljs/compiler-options

dominicm 2020-02-24T17:24:01.010800Z

I'm also getting invalid token errors during the tests, but I'm certain the code compiles because it tests fine without kaocha

plexus 2020-02-24T17:31:15.012Z

that is confusing... I would start with git clean -nxfd (that's a dry run with -n) to see what's lying around, and then git clean -xfd <specific paths you want to clean out>

plexus 2020-02-24T17:31:49.012500Z

for good measure you can also wipe ~/.cljs/.aot_cache

plexus 2020-02-24T17:32:23.013Z

re. :bindings those are Clojure bindings. Are you expecting them in Clojure or in ClojureScript?

plexus 2020-02-24T17:33:09.013600Z

make sure to disable output capturing so it's not swallowing some useful info (warnings etc)

plexus 2020-02-24T17:33:54.013800Z

--no-capture-output

plexus 2020-02-24T17:35:22.014700Z

what does your tests.edn look like? setting arbitrary compiler options often does not work, the cljs repls we rely on are sensitive to what you put in there

plexus 2020-02-24T17:36:21.015600Z

there are plans to redo the cljs integration in a much more robust way, but that's a Big Project for which we don't yet have the funding

dominicm 2020-02-24T19:34:10.016500Z

I'm trying to set the clojurescript debug bindings. As documented. Can't share the file because bank.

dominicm 2020-02-24T19:45:21.017400Z

I'm getting something pretty strange with no output capture about : being an invalid token.

dominicm 2020-02-24T19:46:44.018300Z

But ": " doesn't exist outside of comments and strings. This is why I want to see the exact thing being sent by kaocha

dominicm 2020-02-24T19:56:15.019500Z

After a clean it seems to work. I wiped it all out. I'm a bit suspicious it might be using something I don't expect as the output.

dominicm 2020-02-24T20:00:03.020Z

By work, I mean :bindings works. Looking at the printed output, I don't see anything that wouldn't correctly be read though.

dominicm 2020-02-24T20:00:20.020200Z

:q

dominicm 2020-02-24T20:01:08.020900Z

okay, well. I just noticed that one terminal is in /t/foo, and the other is /s/foo. So I think I've been running in different directories... No wonder I feel like I'm going insane...

dominicm 2020-02-24T20:02:04.021200Z

That's extremely embarrassing 😂

dominicm 2020-02-24T21:29:51.021800Z

As promised, my extremely simple solution to the problem of launching chrome: https://github.com/SevereOverfl0w/delegating-repl