lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
anmonteiro 2017-07-02T03:36:20.706307Z

@moxaj merged your PR. if you’re up for it, the next step is adding this support in lumo.closure

anmonteiro 2017-07-02T03:36:39.707265Z

I think you had something like that working already if I’m not mistaken

anmonteiro 2017-07-02T03:36:48.707767Z

or it might just be the case that it works out of the box

anmonteiro 2017-07-02T04:36:04.895228Z

🙂

futuro 2017-07-02T04:39:59.905781Z

I'm so glad to finally get that merged; it's been a fair number of months in the making!

anmonteiro 2017-07-02T04:40:21.906990Z

yeah, I’m excited. It’s a significant feature

anmonteiro 2017-07-02T04:40:52.908576Z

if you’re on a mac you can probably get a build of the master checkout if you run brew install --HEAD lumo

anmonteiro 2017-07-02T04:41:18.909923Z

not like you don’t know what it does 😉

futuro 2017-07-02T04:41:31.910661Z

ooo, neat; I'm gonna do that tomorrow at work (where I've got a mac. it's all Linux at home :))

futuro 2017-07-02T04:41:39.911077Z

LOL

anmonteiro 2017-07-02T04:42:11.912541Z

you can download a binary from http://s3.amazonaws.com/lumo-linux/lumo.zip

moxaj 2017-07-02T11:07:39.131403Z

trying to use lumo to build some source files, but I get EINVAL: invalid argument, utime '<...>\out\cljs\core.cljs'

moxaj 2017-07-02T11:09:42.138399Z

stacktrace is

Object.fs.utimesSync (fs.cljs:1235:11)
         (Object.lumo$util$set_last_modified)
         Function.lumo.closure.jar_file_to_disk.cljs$core$IFn$_invoke$arity$3 (evalmachine.<anonymous>:1589:11)
         (Object.lumo$closure$compile_from_jar)
         lumo.closure._compile.object (evalmachine.<anonymous>:1675:21)
         (Object.lumo$closure$_compile)
         (evalmachine.<anonymous>:2297:21)
         Function.lumo.closure.map_async.cljs$core$IFn$_invoke$arity$4 (evalmachine.<anonymous>:2118:105)
         Function.lumo.closure.map_async.cljs$core$IFn$_invoke$arity$3 (evalmachine.<anonymous>:2107:31)
         Function.lumo.closure.compile_sources.cljs$core$IFn$_invoke$arity$4 (evalmachine.<anonymous>:2276:35)
might be a windows specific issue

moxaj 2017-07-02T12:53:21.531199Z

^ simple fix, opened a PR

moxaj 2017-07-02T14:37:07.998205Z

turns out it's not fixed yet! :white_frowning_face:

moxaj 2017-07-02T15:03:32.125429Z

it seems like the timestamp aquired by Date.getTime is to be interpreted as milliseconds, but fs.utimes(Sync) expects seconds

moxaj 2017-07-02T15:06:32.139518Z

and windows isn't particularly happy when I try to set the last modified date on a file to 08/07/49471 @ 11:07am (UTC) 😄

moxaj 2017-07-02T20:21:27.694325Z

@anmonteiro with those prs, I can build, but with :source-maps true I need the cljs uberjar on the classpath, and that doesn't sound right to me

moxaj 2017-07-02T20:22:11.697901Z

otherwise cljs/core.aot.js.map is missing

anmonteiro 2017-07-02T20:22:26.699150Z

hrm I think we remove it from the classpath manually

moxaj 2017-07-02T20:23:36.704907Z

I mean, build using lumo.build.api

anmonteiro 2017-07-02T20:23:48.705851Z

oh

anmonteiro 2017-07-02T20:24:11.707919Z

do you think that’s this issue? https://github.com/anmonteiro/lumo/issues/132

moxaj 2017-07-02T20:25:03.712762Z

might be, the issue says It's not always this exact message, but it seems to always be something that's not defined.

moxaj 2017-07-02T20:25:27.714651Z

however I'm getting omg it happened 🙂

moxaj 2017-07-02T20:25:50.716503Z

(io/resource "cljs/core.aot.js.map") returns nil, in lumo.compiler/emit-cached-core

moxaj 2017-07-02T21:59:20.144408Z

I have verified that it works with 1.4.1, but not with 1.5.0

moxaj 2017-07-02T21:59:38.145790Z

and I have a hunch this line is the cause: https://github.com/anmonteiro/lumo/blob/22d210abf51a4a93218857cd780b58024176eabb/scripts/package.js#L50

anmonteiro 2017-07-02T21:59:49.146566Z

ah yeah

anmonteiro 2017-07-02T22:00:19.149601Z

you’re probably right