This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-09
Channels
- # beginners (205)
- # boot (6)
- # cider (22)
- # cljs-dev (41)
- # cljsrn (4)
- # clojure (97)
- # clojure-dev (61)
- # clojure-greece (40)
- # clojure-italy (8)
- # clojure-russia (16)
- # clojure-spec (18)
- # clojure-uk (34)
- # clojurescript (14)
- # community-development (1)
- # cursive (45)
- # datomic (39)
- # fulcro (66)
- # jobs (2)
- # lein-figwheel (1)
- # lumo (9)
- # off-topic (8)
- # parinfer (98)
- # portkey (8)
- # re-frame (81)
- # reagent (54)
- # remote-jobs (17)
- # ring (2)
- # shadow-cljs (217)
- # spacemacs (32)
- # sql (24)
- # test-check (6)
- # unrepl (73)
- # yada (12)
While compiling some code today using lumo
against master Clojurescript today I have run against the following:
this.mseq.cljs$core$ISeq$_first$arity$1(...).cljs$core$IMapEntry$_key$arity$1 is not a function
cljs.core.KeySeq.cljs$core$ISeq$_first$arity$1 (NO_SOURCE_FILE <embedded>:1640:411)
Object.cljs.core.first (NO_SOURCE_FILE <embedded>:507:165)
Function.cljs.core.seq_reduce.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:660:115)
cljs.core.KeySeq.cljs$core$IReduce$_reduce$arity$3 (NO_SOURCE_FILE <embedded>:1640:248)
Function.cljs.core.reduce.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:667:181)
(Object.lumo$cljs-deps$dependency-order)
(lumo/closure:4537:270)
(lumo/closure:4544:3)
(lumo/closure:4550:3)
Function.lumo.closure.build.cljs$core$IFn$_invoke$arity$3 (lumo/closure:4556:3)
Not sure what is going on but today I have to unplug a bit, will explore more tomorrow@juhoteperi awesome! Will get to those today
@richiardiandrea I thought Mike Fikes addressed that, but maybe there’s a missing case
@richiardiandrea my guess it's the PHM with nil entry. I'm double checking now
I can see now that is the case. I'll open up a ticket with a patch. I also did not update the PHM iterator to support that nil case either 😞
Awesome cool folks i.did not know what that meant but I thought I should report it 😸 @tmulvaney you can send the patch over if you want me to try the fix ;)
It's attached here https://dev.clojure.org/jira/browse/CLJS-2496
hopefully that works @richiardiandrea
@tmulvaney will check thanks!!
getting it setup was a little bit fiddly but the fact that we have a generic way to point any REPL at build and run something is pretty cool
@juhoteperi 2375 needs a rebase on master
@dnolen by any REPL you mean also planck and lumo, wink wink nudge nudge 😄
@juhoteperi ok 2389 does appear to need a rebase
@richiardiandrea heh no, not bootstrapped stuff
yep true that
lumo
always tries to follow anyways, so we'll adapt so that we can reuse the documentation 😄
but anyways being able to point at build and load up some abritrary script before running something, or eval some arbitrary expression before seems useful for testing
I like where this is going
@juhoteperi I’m going to stop on applying the others until 2389 gets fixed up, if I don’t get to this today will definitely do it some point this weekend
@dnolen if you have some lil' time for CLJS-2492 and CLJS-2493 let me know...i would love to support source maps cleanly in lumo
@richiardiandrea yes I’ll look at those, unlikely to cut a release this week or next anyway but soon after I hope
thanks a lot
java -cp cljs.jar:src clojure.main -m cljs.repl.node -o out -e "(+ 3 4)" -m foo.core 1 2
ClojureScript Node.js REPL server listening on 53734
7
Analyzing file:/Users/davidnolen/development/clojure/main-cljs/src/foo/core.cljs
args: (1 2)
*command-line-args* (1 2)
@dnolen if I understand correctly, in lumo
we execute *main-cli-fn*
...when it has been def-ed we run that:
(defn- ^:export run-main-cli-fn
[]
(when (fn? *main-cli-fn*)
(apply *main-cli-fn* *command-line-args*)))
@richiardiandrea this has nothing to do with Lumo. David is talking about Java main classes
not portable to Lumo either
oh sorry, yeah I was afraid I did not get something, too many mains 😄
@dnolen https://dev.clojure.org/jira/secure/attachment/17699/CLJS-2389-7.patch rebased
@tmulvaney @dnolen CLJS-2496 seems to work fine here, I don't receive that error in lumo
anymore