planck

Planck ClojureScript REPL
borkdude 2018-10-30T22:31:22.004100Z

Thanks for the setup instructions.

$ script/build -R:cljs/dev --fast
make: *** No targets specified and no makefile found.  Stop.
Build Failed.

borkdude 2018-10-30T22:31:35.004400Z

I’m getting that error now btw. Do I need to give an extra arg?

borkdude 2018-10-30T22:33:28.004800Z

I installed cmake before this step, which was missing

mfikes 2018-10-30T22:36:29.005900Z

@borkdude perhaps a script/clean first will straighten things out

borkdude 2018-10-30T22:38:06.006100Z

seems to work

borkdude 2018-10-30T22:39:15.006400Z

is this something I should care about?

ld: warning: text-based stub file /System/Library/Frameworks//JavaScriptCore.framework/JavaScriptCore.tbd and library file /System/Library/Frameworks//JavaScriptCore.framework/JavaScriptCore are out of sync. Falling back to library file for linking.

borkdude 2018-10-30T22:40:07.007800Z

planck compiled and works now btw

mfikes 2018-10-30T22:40:53.009Z

I started seeing that as well with the latest macOS. Googling for it didn’t seem to clarify what is causing it. It seems to be an innocuous warning as far as I can tell.

borkdude 2018-10-30T22:49:21.009500Z

ok:

$ plk
ClojureScript 0.0.139042618
cljs.user=>

borkdude 2018-10-30T22:50:00.010Z

but:

$ clj -A:test:clj-tests

Running tests in #{"test"}

Testing speculative.core-test
generatively testing  clojure.core/str
((:spec :clojure.spec.test.check/ret :sym))
({:result true, :pass? true, :num-tests 20, :time-elapsed-ms 60, :seed 1540937561398})
generatively testing  clojure.core/=
((:spec :clojure.spec.test.check/ret :sym))
({:result true, :pass? true, :num-tests 20, :time-elapsed-ms 25, :seed 1540937561476})
vs
$ plk -A:test:plk-tests
...
Testing speculative.test-test

Testing speculative.core-test
generatively testing  cljs.core/=
((:spec :clojure.test.check/ret :sym))
(nil)
generatively testing  cljs.core/str
((:spec :clojure.test.check/ret :sym :failure))
(nil)

Ran 21 tests containing 82 assertions.

borkdude 2018-10-30T22:51:24.010800Z

I notice the difference. in clj the key is :clojure.spec.test.check/ret but in cljs it’s :clojure.test.check/ret.

borkdude 2018-10-30T22:51:49.011100Z

any reason for the difference?

mfikes 2018-10-30T22:52:13.011900Z

Could be a bug in the compiler

borkdude 2018-10-30T22:52:56.013300Z

maybe a typo

mfikes 2018-10-30T22:53:07.013700Z

If reporting it, repro with cljs.main (not Planck)

borkdude 2018-10-30T22:53:23.013900Z

will do. thanks

borkdude 2018-10-30T23:17:22.014100Z

https://dev.clojure.org/jira/browse/CLJS-2952

👍 1