Clojurians
#lumo
<
2017-04-29
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

jonathandale01:04:46

Any ideas why this prints a result

// node request.js
var request = require("request");

request(
  "",
  function(error, response, body){
    console.log("body", body);
  }
);
but this doesn’t?
;; lumo request.cljs
(def request (js/require "request"))

(request
  ""
  (fn [error response body]
    (println "body" body)))

anmonteiro02:04:51

@jonathandale probably a bug

anmonteiro02:04:10

can you file a bug with that example?

anmonteiro02:04:21

I know what's wrong

jonathandale02:04:36

Ok, cool… will file an issue.

anmonteiro04:04:03

@jonathandale fixed your issue. If you want you can download a nightly binary with the fix as described here: https://github.com/anmonteiro/lumo/issues/65#issuecomment-271357273

jonathandale15:04:30

@anmonteiro great thanks, will try the binary.

john20:04:32

Is there a tutorial on shell scripting with Lumo out there yet?