planck

Planck ClojureScript REPL
arbscht 2019-04-13T06:35:13.000600Z

I keep forgetting there's a slack channel for most anything in clojure

arbscht 2019-04-13T06:37:06.002Z

I'm curious what's the rationale for *out* being in cljs.core while *err* and *in* are in planck.core?

slipset 2019-04-13T07:16:31.005100Z

Would imagine it’s because only self hosted cljs has in and err. “Normal” cljs runs in the browser which AFAIK only has console.log to do output.

mfikes 2019-04-13T12:10:52.006100Z

Yeah. Some of those could end up in cljs.core ultimately. An example of that kind of thing is *command-line-args* which didn't make a whole lot of sense in cljs.core initially.

arbscht 2019-04-13T12:23:50.008100Z

hey @mfikes I'm trying to add to int-tests for the tty PR. the bash context turned out to be more useful than cljs, do you mind the PR expanding those tests? also, I used /usr/bin/script which is ok on linux but mac os x needs some work, not sure what (I don't use that platform)

mfikes 2019-04-13T12:26:18.009100Z

Yeah, some of the terminal-oriented script-based tests might be better for the tty? testing. (I don't see how you'd really test things like that via the normal cljs.test-style testing.)

arbscht 2019-04-13T12:40:51.010800Z

@mike858 thanks, I didn't know. I'm using it to fake a tty for a subprocess, but CI reports different behavior on linux and mac os x (see https://github.com/planck-repl/planck/pull/911/commits/a9de737ba76764acff19b3887ecf192e3ef3f4e2#diff-9c7c4bea66c6d9d1f4ddf56049bf0f4a)

arbscht 2019-04-13T12:41:35.012100Z

I've no ability to debug it, so if you have any ideas that would help. otherwise I'll drop the test

pyrmont 2019-04-13T12:41:38.012300Z

The f switch operates differently (according to that SO page). Maybe that's the issue?

arbscht 2019-04-13T12:41:49.013Z

sounds plausible

pyrmont 2019-04-13T12:41:50.013100Z

I'm not on my Mac at the moment but can try later.

arbscht 2019-04-13T12:42:48.013400Z

thanks. I'll take a close look at -f meanwhile

pyrmont 2019-04-13T12:43:12.013900Z

Cool addition, by the way :)

🙂 1
arbscht 2019-04-13T12:44:44.015100Z

necessity -> invention. we started using planck at work, already really great for quick scripting. there's always a wishlist of features though

arbscht 2019-04-13T14:23:31.016700Z

well, turns out script is way different on osx and linux. seems to work in CI now with a very different invocation for each. cc @mike858

pyrmont 2019-04-13T16:01:27.017400Z

@mail462: Oh, good to know!