lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
keithmantell 2019-04-24T11:20:04.000900Z

Hi, what are the various options for :target ( beyond :nodejs)

keithmantell 2019-04-24T12:44:11.001200Z

:websocket seems to be another

keithmantell 2019-04-24T12:47:13.002Z

Iam trying to use lumo to produce javascript I can use with OpenWhisk. Has anyone tried this?

keithmantell 2019-04-24T12:58:53.002100Z

If I start with this I get: { "error": "Initialization has failed due to: SyntaxError: Invalid or unexpected token\n at NodeActionRunner.init (/nodejsAction/runner.js:79:109)\n at doInit (/nodejsAction/src/service.js:143:31)\n at initCode (/nodejsAction/src/service.js:82:24)\n at /nodejsAction/app.js:62:13\n at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)\n at next (/node_modules/express/lib/router/route.js:137:13)\n at Route.dispatch (/node_modules/express/lib/router/route.js:112:3)\n at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)\n at /node_modules/express/lib/router/index.js:281:22\n at Function.process_params (/node_modules/express/lib/router/index.js:335:12)" }

keithmantell 2019-04-24T13:00:12.002400Z

If I remove the shell directive and wrap the initial section in a function main, it works

keithmantell 2019-04-24T13:00:55.003300Z

Is there a directive which will produce the *.js file in this format?

richiardiandrea 2019-04-24T21:13:47.004200Z

is lumo reading from node_modules when I do lumo file.cljs?

richiardiandrea 2019-04-24T21:14:06.004800Z

I have a strange error that it cannot find a js library that is in node_modules

richiardiandrea 2019-04-24T21:17:25.005200Z

ok so if I do ./lumo /tmp/tmp.0BjCyWLnRv/test.cljs then node_modules cannot be read

richiardiandrea 2019-04-24T21:20:44.005400Z

I opened an issue here: https://github.com/grav/aws-lumo-cljs-runtime/issues/4

richiardiandrea 2019-04-24T23:39:20.007100Z

I have just discovered that... the --main option takes a main but if the main returns a promise it still exits without waiting? Am I right or I am seeing the ghosts?

richiardiandrea 2019-04-24T23:43:27.007500Z

oh my node knowledge might need some refreshing

anmonteiro 2019-04-24T23:51:10.007800Z

node should wait for pending promises to resolve before exiting

anmonteiro 2019-04-24T23:51:19.008200Z

if you’re not seeing this then it’s probably a bug

richiardiandrea 2019-04-24T23:52:26.008600Z

ok thanks yep I have just read that too