hi @anmonteiro
๐
I am getting an error in lumo
and I feel like I've seen it before
but I can't figure out what's happening
What can I do to help?
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)
@ericnormand hrm, OK Iโll need 2 things from you 1. Lumo version 2. the options youโre passing to Lumo
ok
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
OK that tells me a lot already ๐
lumo -k . -c $cp
can you upgrade to 1.6?
I think I broke foreign libs in 1.5
oops ๐
ah
I just upgraded on brew
brew should have 1.6
let me try again
brew upgrade lumo
Error: lumo HEAD-18c0f29 already installed
hah
brew uninstall lumo && brew update && brew install lumo
thanks
๐บ /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
not good?
did you ever npm install -g lumo
?
maybe
npm list -g | grep lumo-cljs
ah, I see it
how do I get rid of that?
npm uninstall -g lumo-cljs
god, tooling ๐ซ
yeah
I refuse to learn this stuff
it changes so fast
now how do I run it?
sorry, how do you run what?
oh.. you may have to run brew link lumo
or something
good news is I can require reagent.core
locally on 1.6.0
$ 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=>
Erics-MacBook-Pro:bin eric$ lumo
-bash: /Users/eric/.nvm/versions/node/v5.7.1/bin/lumo: No such file or directory
I don't know why it's looking there
ah
path is cached
try to run brew unlink lumo && brew link lumo
too
did that
had to open a new shell
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
well thatโs reagentโs fault ๐
๐
do you need reagent.interop
?
oh hrm
https://github.com/reagent-project/reagent/blob/master/src/reagent/interop.clj
you must be on an old release of reagent
try 0.7.0?
I donโt see it requiring <http://clojure.java.io|clojure.java.io>
anymore
@ericnormand you need a version that includes this PR I guess https://github.com/reagent-project/reagent/pull/283
ah
doh
sorry for the painful breakage in 1.5 ๐