This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-17
Channels
- # bangalore-clj (1)
- # beginners (23)
- # boot (141)
- # cider (68)
- # cljs-dev (29)
- # cljsjs (1)
- # cljsrn (11)
- # clojure (150)
- # clojure-austin (3)
- # clojure-berlin (1)
- # clojure-france (2)
- # clojure-greece (13)
- # clojure-italy (5)
- # clojure-russia (49)
- # clojure-spec (15)
- # clojure-uk (45)
- # clojurescript (152)
- # code-art (1)
- # core-async (75)
- # cursive (12)
- # datascript (2)
- # datomic (90)
- # dirac (5)
- # emacs (10)
- # garden (1)
- # hoplon (52)
- # instaparse (4)
- # juxt (2)
- # lein-figwheel (2)
- # lumo (47)
- # mount (94)
- # off-topic (20)
- # om (21)
- # onyx (14)
- # parinfer (19)
- # pedestal (3)
- # protorepl (13)
- # re-frame (5)
- # reagent (20)
- # slack-help (10)
- # spacemacs (8)
- # specter (57)
- # unrepl (11)
- # untangled (3)
- # vim (1)
- # yada (1)
hi, i have a problem with module loading, in node
var xlsx = require('xlsx');
works while in lumo i get
osp+.trace=> (def xlsx (cljs.nodejs/require "xlsx"))
ReferenceError: cptable is not defined
any ideas?ah, i had to disable the strict loading
(.setFlagsFromString v8 "--no-use_strict")
do you have a solution in case you want to keep the strict loading?
(def cptable (js/require "xlsx/dist/cpexcel"))
still causes the ReferenceError
i never did anything with node before, i have no idea how this module loading works 馃檪
@timrichardt if you wanna keep strict mode you have to get the issue fixed upstream in the library you're using
A question about scripting in lumo, planck has a bunch of helper functions built in that makes scripting easier such as parsing command line input and working with the shell etc. I know this can be done from node, but without libraries it鈥檚 very low level. Are there any facilities already in lumo for this or is it planned?
@vikeri it鈥檚 definitely a goal to have all that stuff
that said, my time is very limited, so I appreciate every bit of help I can get 馃檪
there are several Lumo NSes
which one are you looking for?
@vikeri hrm there are no lumo.shell
or lumo.http
NSes currently
there鈥檚 a
but it has very limited functionality
also very specific to what I needed for compiling CLJS projects
@vikeri you may be on a previous version
upgrade to 1.2.0
I couldn鈥檛 get Lumo 1.2.0 in Homebrew
there was a problem compiling Node.js
and I鈥檝e wanted to get 1.3.0 out but I haven鈥檛 had the time
@vikeri can you do this for now?
brew uninstall lumo
brew install --HEAD lumo
The install has taken about 15 minutes now and still hasn鈥檛 completed and I have to leave so I鈥檒l skip it for now. Installing node took a looong time and the boot release command has also been going for ages. I鈥檓 on a 2014 MBP for the record.
that鈥檚 normal
we compile the entire Node.js project which takes a long time
Another avenue is to flesh out https://github.com/abiocljs but, TBH, there doesn't appear to be much interest in it
@mfikes I think there鈥檚 just not enough time right now
I鈥檇 love to flesh it out actually
Oh nice that is good stuff
not sure if related to lumo, but Im getting strange macro behaviour. Dont understand this message
> {:message Could not require panaeolus.macros in file panaeolus/macros.cljs, :data {:tag :cljs/analysis-error}, :cause #object[RangeError RangeError: Maximum call stack size exceeded]}
@hlolli also, if it鈥檚 a macros namespace it shouldn鈥檛 be .cljs
and definitely not named panaeolus.macros$macros
CLJS will insert the $macros
for you
I know, I saw the repo
you can also use cljc
or clj