Fork me on GitHub
#lumo
<
2017-07-04
>
ericnormand23:07:14

I am getting an error in lumo

ericnormand23:07:20

and I feel like I've seen it before

ericnormand23:07:26

but I can't figure out what's happening

anmonteiro23:07:32

What can I do to help?

ericnormand23:07:46

cljs.user=> (require 'reagent.core)
Could not require cljsjs.react in file reagent/impl/util.cljs
	 (new)
	 Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:1937:200)
	 Function.cljs.analyzer.error.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:2484:92)
	 (NO_SOURCE_FILE <embedded>:5237:40)
	 Object.cljs.js.run_async_BANG_ (NO_SOURCE_FILE <embedded>:5217:173)
	 Object.cljs.js.process_deps (NO_SOURCE_FILE <embedded>:5217:244)
	 Object.cljs.js.process_libs_deps (NO_SOURCE_FILE <embedded>:5219:60)
	 (NO_SOURCE_FILE <embedded>:5235:358)
	 Object.cljs.js.run_async_BANG_ (NO_SOURCE_FILE <embedded>:5217:173)
	 Object.cljs.js.process_deps (NO_SOURCE_FILE <embedded>:5217:244)

Unexpected identifier
	 createScript (vm.cljs:53:10)
	 Object.runInThisContext (vm.cljs:95:10)
	 (Object.lumoEval)
	 lumo.repl.caching_node_eval (NO_SOURCE_FILE <embedded>:6133:194)
	 (NO_SOURCE_FILE <embedded>:5236:153)
	 Object.cljs.js.run_async_BANG_ (NO_SOURCE_FILE <embedded>:5217:173)
	 Object.cljs.js.process_deps (NO_SOURCE_FILE <embedded>:5217:244)
	 Object.cljs.js.process_libs_deps (NO_SOURCE_FILE <embedded>:5219:60)
	 (NO_SOURCE_FILE <embedded>:5235:358)
	 Object.cljs.js.run_async_BANG_ (NO_SOURCE_FILE <embedded>:5217:173)

anmonteiro23:07:38

@ericnormand hrm, OK I鈥檒l need 2 things from you 1. Lumo version 2. the options you鈥檙e passing to Lumo

ericnormand23:07:56

Lumo 1.5.0
ClojureScript 1.9.542
Node.js v7.10.0
 Docs: (doc function-name-here)
       (find-doc "part-of-name-here")
 Source: (source function-name-here)
 Exit: Control+D or :cljs/quit or exit

anmonteiro23:07:09

OK that tells me a lot already 馃檪

ericnormand23:07:11

lumo -k . -c $cp

anmonteiro23:07:17

can you upgrade to 1.6?

anmonteiro23:07:21

I think I broke foreign libs in 1.5

ericnormand23:07:31

I just upgraded on brew

anmonteiro23:07:39

brew should have 1.6

ericnormand23:07:52

let me try again

ericnormand23:07:14

brew upgrade lumo
Error: lumo HEAD-18c0f29 already installed

anmonteiro23:07:30

brew uninstall lumo && brew update && brew install lumo

ericnormand23:07:24

馃嵑  /usr/local/Cellar/lumo/1.6.0: 6 files, 60.6MB
Erics-MacBook-Pro:klipse eric$ lumo -v
Lumo 1.5.0
ClojureScript 1.9.542
Node.js v7.10.0
 Docs: (doc function-name-here)
       (find-doc "part-of-name-here")
 Source: (source function-name-here)
 Exit: Control+D or :cljs/quit or exit

anmonteiro23:07:46

did you ever npm install -g lumo?

anmonteiro23:07:58

npm list -g | grep lumo-cljs

ericnormand23:07:36

how do I get rid of that?

anmonteiro23:07:39

npm uninstall -g lumo-cljs

anmonteiro23:07:03

god, tooling 馃槴

ericnormand23:07:46

I refuse to learn this stuff

ericnormand23:07:51

it changes so fast

ericnormand23:07:24

now how do I run it?

anmonteiro23:07:01

sorry, how do you run what?

anmonteiro23:07:32

oh.. you may have to run brew link lumo or something

anmonteiro23:07:03

good news is I can require reagent.core locally on 1.6.0

anmonteiro23:07:23

$ lumo -D reagent:0.7.0,cljsjs/react:15.5.4-0,cljsjs/react-dom:15.5.4-0,cljsjs/create-react-class:15.5.3-0
Lumo 1.6.0
ClojureScript 1.9.671
Node.js v8.1.3
 Docs: (doc function-name-here)
       (find-doc "part-of-name-here")
 Source: (source function-name-here)
 Exit: Control+D or :cljs/quit or exit

cljs.user=> (require 'reagent.core)
nil
cljs.user=>

ericnormand23:07:43

Erics-MacBook-Pro:bin eric$ lumo
-bash: /Users/eric/.nvm/versions/node/v5.7.1/bin/lumo: No such file or directory

ericnormand23:07:55

I don't know why it's looking there

ericnormand23:07:05

path is cached

anmonteiro23:07:17

try to run brew unlink lumo && brew link lumo too

ericnormand23:07:18

had to open a new shell

ericnormand23:07:29

No such namespace: , could not locate cljs/java/io.cljs, cljs/java/io.cljc, or Closure namespace "" in file reagent/interop.clj

anmonteiro23:07:52

well that鈥檚 reagent鈥檚 fault 馃檪

anmonteiro23:07:12

do you need reagent.interop?

anmonteiro23:07:31

you must be on an old release of reagent

anmonteiro23:07:50

I don鈥檛 see it requiring anymore

anmonteiro23:07:34

sorry for the painful breakage in 1.5 馃檪