lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
anmonteiro 2017-09-06T00:00:25.000128Z

@hlolli also I just fixed the EOF issue

anmonteiro 2017-09-06T00:00:29.000211Z

not related to buffer / string

anmonteiro 2017-09-06T00:00:38.000105Z

it’s my fault when doing a refactoring a while ago

anmonteiro 2017-09-06T00:01:46.000112Z

oh I know

anmonteiro 2017-09-06T00:02:27.000331Z

planck - <<< 1 doesn’t produce output

anmonteiro 2017-09-06T00:02:29.000174Z

Lumo does

2017-09-06T00:03:13.000134Z

Ok nice, something at least broke it since i initially made the pr. Want to use lumo ad preprocessor in csound so i wanted to use this functionality.

anmonteiro 2017-09-06T00:03:27.000187Z

I’ll fix it

2017-09-06T00:04:07.000158Z

Ok noted, sounds like a learningfull task. I look at it, and close my PR if you fixed the EOF error, that was in the end main reason for the PR.

2017-09-06T00:04:38.000205Z

No i mean the only reason

anmonteiro 2017-09-06T00:12:38.000312Z

@hlolli yeah just fixed it in https://github.com/anmonteiro/lumo/commit/261b93a2c9e1d1d3f7d2b20482bdf5ba29f4d0d1

2017-09-06T00:13:08.000015Z

Prima

richiardiandrea 2017-09-06T00:15:19.000178Z

so if I do boot dev, can I then call node target/bundle.js with all the normal parameters in order to emulate a call to lumo binary?

anmonteiro 2017-09-06T00:15:35.000248Z

@richiardiandrea yarn dev will set the right options

anmonteiro 2017-09-06T00:15:41.000125Z

or npm run dev

richiardiandrea 2017-09-06T00:16:13.000253Z

ok I see, I was missing target in the classpath let me try that

richiardiandrea 2017-09-06T00:17:37.000202Z

uhm, no...probably something else, I would like to launch:

node ~/git/lumo/target/bundle.js -c ~/git/lumo/target:$(cat cp):~/git/serverless-cljs-plugin/serverless-cljs-plugin -m serverless-lumo.build --zip-path /home/arichiardi/git/cqrs-cloud/.serverless/cqrs-cloud-event-store.zip --functions '[{:name "cqrs-cloud-event-store-dev-append-event" :invoke cqrs-cloud.event-store/append-event}]' --index true

richiardiandrea 2017-09-06T00:17:47.000301Z

inside my project dir in order to compile

richiardiandrea 2017-09-06T00:18:29.000220Z

I get:

(node:20366) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot set property 'user' of undefined
(node:20366) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

anmonteiro 2017-09-06T00:19:03.000138Z

@richiardiandrea do you have boot dev running?

richiardiandrea 2017-09-06T00:19:09.000220Z

yup

richiardiandrea 2017-09-06T00:20:39.000273Z

maybe it is not finding stuff in node_modules

anmonteiro 2017-09-06T00:21:34.000170Z

no that’s not it

anmonteiro 2017-09-06T00:21:50.000069Z

can you run that with the built binary?

richiardiandrea 2017-09-06T00:22:03.000175Z

yep I can

anmonteiro 2017-09-06T00:22:04.000108Z

oh

anmonteiro 2017-09-06T00:22:43.000198Z

^ that main.js is the compiled CLJS bundle

anmonteiro 2017-09-06T00:23:06.000121Z

it probably needs to be in the target folder from where you’re running lumo

richiardiandrea 2017-09-06T00:23:48.000085Z

it is there, but the fact that I am running from another folder messes things up...cwd is not target maybe

anmonteiro 2017-09-06T00:24:53.000280Z

yes, that’s what I’m saying

richiardiandrea 2017-09-06T00:25:30.000091Z

k cool

anmonteiro 2017-09-06T00:26:21.000187Z

I’ll fix it

🍻 1
anmonteiro 2017-09-06T00:26:25.000103Z

1 sec

anmonteiro 2017-09-06T00:27:34.000106Z

@richiardiandrea try master

richiardiandrea 2017-09-06T00:27:48.000187Z

kk

anmonteiro 2017-09-06T00:28:34.000003Z

also you may wanna set a cache path

anmonteiro 2017-09-06T00:28:37.000168Z

or it’ll take a little while

anmonteiro 2017-09-06T00:28:40.000230Z

works for me now

richiardiandrea 2017-09-06T00:30:11.000202Z

k trying, yes I set the cache after checking what yarn dev does

richiardiandrea 2017-09-06T16:07:37.000162Z

the answer is prolly not, but is clojure.tools.trace working for lumo? if not, alternatives?

dominicm 2017-09-06T16:19:24.000083Z

so, https://github.com/philoskim/debux claims to work with cljs, no idea lumo though

richiardiandrea 2017-09-06T16:57:48.000363Z

@dominicm thanks will try that!