lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
ericnormand 2017-07-04T23:45:00.644141Z

hi @anmonteiro

anmonteiro 2017-07-04T23:45:10.645182Z

๐Ÿ‘‹

ericnormand 2017-07-04T23:45:14.645654Z

I am getting an error in lumo

ericnormand 2017-07-04T23:45:20.646160Z

and I feel like I've seen it before

ericnormand 2017-07-04T23:45:26.646804Z

but I can't figure out what's happening

anmonteiro 2017-07-04T23:45:32.647431Z

What can I do to help?

ericnormand 2017-07-04T23:45:46.648775Z

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)

anmonteiro 2017-07-04T23:46:38.654308Z

@ericnormand hrm, OK Iโ€™ll need 2 things from you 1. Lumo version 2. the options youโ€™re passing to Lumo

ericnormand 2017-07-04T23:46:45.655065Z

ok

ericnormand 2017-07-04T23:46:56.656205Z

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

anmonteiro 2017-07-04T23:47:09.657574Z

OK that tells me a lot already ๐Ÿ™‚

ericnormand 2017-07-04T23:47:11.657789Z

lumo -k . -c $cp

anmonteiro 2017-07-04T23:47:17.658531Z

can you upgrade to 1.6?

anmonteiro 2017-07-04T23:47:21.658941Z

I think I broke foreign libs in 1.5

anmonteiro 2017-07-04T23:47:24.659265Z

oops ๐Ÿ™‚

ericnormand 2017-07-04T23:47:26.659508Z

ah

ericnormand 2017-07-04T23:47:31.660135Z

I just upgraded on brew

anmonteiro 2017-07-04T23:47:39.660975Z

brew should have 1.6

ericnormand 2017-07-04T23:47:52.662220Z

let me try again

ericnormand 2017-07-04T23:48:14.664777Z

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

anmonteiro 2017-07-04T23:48:20.665307Z

hah

anmonteiro 2017-07-04T23:48:30.666374Z

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

ericnormand 2017-07-04T23:48:43.667771Z

thanks

ericnormand 2017-07-04T23:49:24.672289Z

๐Ÿบ  /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

ericnormand 2017-07-04T23:49:35.673502Z

not good?

anmonteiro 2017-07-04T23:49:46.674597Z

did you ever npm install -g lumo?

ericnormand 2017-07-04T23:49:50.675014Z

maybe

anmonteiro 2017-07-04T23:49:58.675829Z

npm list -g | grep lumo-cljs

ericnormand 2017-07-04T23:50:27.679067Z

ah, I see it

ericnormand 2017-07-04T23:50:36.680028Z

how do I get rid of that?

anmonteiro 2017-07-04T23:50:39.680339Z

npm uninstall -g lumo-cljs

anmonteiro 2017-07-04T23:51:03.682991Z

god, tooling ๐Ÿ˜ซ

๐Ÿ˜‚ 1
ericnormand 2017-07-04T23:51:42.687193Z

yeah

ericnormand 2017-07-04T23:51:46.687626Z

I refuse to learn this stuff

ericnormand 2017-07-04T23:51:51.688130Z

it changes so fast

ericnormand 2017-07-04T23:52:24.691576Z

now how do I run it?

anmonteiro 2017-07-04T23:53:01.695493Z

sorry, how do you run what?

anmonteiro 2017-07-04T23:53:32.698792Z

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

anmonteiro 2017-07-04T23:54:03.702031Z

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

anmonteiro 2017-07-04T23:54:23.704375Z

$ 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=>

ericnormand 2017-07-04T23:54:43.706600Z

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

ericnormand 2017-07-04T23:54:55.707830Z

I don't know why it's looking there

ericnormand 2017-07-04T23:55:03.708813Z

ah

ericnormand 2017-07-04T23:55:05.709054Z

path is cached

anmonteiro 2017-07-04T23:55:17.710368Z

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

ericnormand 2017-07-04T23:56:14.716841Z

did that

ericnormand 2017-07-04T23:56:18.717310Z

had to open a new shell

ericnormand 2017-07-04T23:56:29.718541Z

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

anmonteiro 2017-07-04T23:56:52.721138Z

well thatโ€™s reagentโ€™s fault ๐Ÿ™‚

ericnormand 2017-07-04T23:56:55.721528Z

๐Ÿ™‚

anmonteiro 2017-07-04T23:57:12.723338Z

do you need reagent.interop?

anmonteiro 2017-07-04T23:57:21.724445Z

oh hrm

anmonteiro 2017-07-04T23:57:31.725558Z

you must be on an old release of reagent

anmonteiro 2017-07-04T23:57:34.725813Z

try 0.7.0?

anmonteiro 2017-07-04T23:57:50.727448Z

I donโ€™t see it requiring <http://clojure.java.io|clojure.java.io> anymore

anmonteiro 2017-07-04T23:58:23.731013Z

@ericnormand you need a version that includes this PR I guess https://github.com/reagent-project/reagent/pull/283

ericnormand 2017-07-04T23:58:41.733020Z

ah

ericnormand 2017-07-04T23:58:43.733154Z

doh

anmonteiro 2017-07-04T23:59:34.738785Z

sorry for the painful breakage in 1.5 ๐Ÿ™‚