Fork me on GitHub
#lumo
<
2018-05-15
>
grav06:05:55

Is it me or is the lumo-cljs npm package broken?

$ npm i -g lumo-cljs
[snip]
/home/grav/.nvm/versions/node/v8.11.1/lib/node_modules/lumo-cljs/node_modules/jszip/lib/zipEntries.js:176
                throw new Error("Corrupted zip : can't find end of central directory");
                ^

Error: Corrupted zip : can't find end of central directory
    at ZipEntries.readEndOfCentral (/home/grav/.nvm/versions/node/v8.11.1/lib/node_modules/lumo-cljs/node_modules/jszip/lib/zipEntries.js:176:23)

richiardiandrea11:05:58

@grav that error happened every now and then, it should not happen anymore cause we moved away from JSZip. Is it consistent? Can you try the newer 1.9.0-alpha

grav12:05:44

That does not seem to be available via npm?

npm i [email protected]
npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected]
I did install the 1.9.0-alpha binary previously directly, which worked.

grav12:05:54

The error is consistent with 1.8.0 using npm, yes. Maybe a re-upload would be good to newcomers? 🙂

richiardiandrea17:05:30

We have that error here, so I switched to installing the binary directly

richiardiandrea17:05:58

I think my yauzl PR will solve this but we are not going to see the effects of it until the next npm release

lxsameer18:05:05

hey folks, is there any jar file for lumo ? I'm righting a library and I want it to be compatible with lumo

lxsameer18:05:38

as far as i understand lumo is only a npm package, right ?

anmonteiro18:05:59

Lumo happens to be distributed on NPM

anmonteiro18:05:08

but it’s also available on other package managers

anmonteiro18:05:23

but there’s no “JAR file” for Lumo. I don’t really know how that would look like

anmonteiro18:05:27

Lumo is a binary executable

anmonteiro18:05:42

what would a “JAR file for Node” mean to you for example?

lxsameer18:05:48

for example I like to use in my lib

lxsameer18:05:08

so I need clojurescript compiler to be able to find it, I have to use lumo as either as a npm package or a clojure dependency

lxsameer18:05:12

am i right ?

anmonteiro18:05:49

I don’t think so

anmonteiro18:05:58

Lumo is a binary that includes all those namespaces bundled within

anmonteiro18:05:08

so you really do need to use the Lumo executable to test those namespaces

anmonteiro18:05:25

IIRC @mfikes put out a package for testing in self-hosted environments

lxsameer18:05:09

hmmm ok, now i get it

anmonteiro18:05:15

happy to help

richiardiandrea18:05:30

about IO, once abio takes off that could be imported for both JVM and lumo/planck Cljs code bases

mfikes18:05:09

For testing in self-hosted environments there is Tach, and an upcoming release of doo will also support it. (Or you can easily write your own test runner and invoke it via -m or whatnot)