lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
metametadata 2017-08-04T00:13:37.087735Z

Is there any option to make Lumo treat warning as errors and exit immediately with error code?

metametadata 2017-08-04T00:13:52.091147Z

ᐅ lumo -e '(do (+ 1 2 foo) 456)'
                       ⬆
WARNING: Use of undeclared Var cljs.user/foo at line 1
456
ᐅ echo $?
0

metametadata 2017-08-04T00:14:08.094975Z

I'd like it to not reach 456 and return 1 instead of 0

anmonteiro 2017-08-04T00:16:26.126483Z

hrm

anmonteiro 2017-08-04T00:16:46.130936Z

you could probably bind cljs.analyzer warnings or something

metametadata 2017-08-04T00:18:09.149146Z

something like in http://jakemccrary.com/blog/2015/12/19/clojurescript-treat-warnings-as-errors/ I suppose?

metametadata 2017-08-04T00:18:17.151278Z

I'll look into it

metametadata 2017-08-04T00:18:47.157549Z

the use-case is pretty obvious: I'd like my scripts to fail fast and loud on mistakes 🙂

👍 1
anmonteiro 2017-08-04T00:19:11.162852Z

yeah

pesterhazy 2017-08-04T09:01:09.563624Z

I'd love that as well

leobm 2017-08-04T16:01:07.524681Z

hi! I have the same problem like @moxaj on windows. 'invalid argument, utime' , Object.fs.utimesSync (fs.cljs:1221:11)

leobm 2017-08-04T16:01:26.536335Z

what was/is the solution to this problem?

anmonteiro 2017-08-04T16:11:51.896880Z

@leobm I think it's fixed in master and will be in the next release

leobm 2017-08-04T16:16:45.057862Z

ok, thanks

sakalli 2017-08-04T21:56:24.951671Z

hi. tried to install lumo on a raspberry, but getting the error platform not supported when i try to run it. is that right. it should not run on rpi?

anmonteiro 2017-08-04T21:56:48.959093Z

@sakalli https://github.com/anmonteiro/lumo/issues/100

anmonteiro 2017-08-04T21:56:59.962790Z

we only compile Lumo for Windows, Linux & Mac

anmonteiro 2017-08-04T21:57:09.965890Z

would you like to help cross compiling for RPi?

sakalli 2017-08-04T21:58:46.996256Z

mmm. would love to contribute, but not sure i have the skills.

sakalli 2017-08-04T22:01:29.049055Z

anyway, ill have a look at it. let you know if i get anywhere.

anmonteiro 2017-08-04T22:01:35.050998Z

thanks!