That seems to work, but I still need to know why it's failing in my tooling
project, which uses leiningen of course.

Sounds like leiningen + CLJS problems are an exercise left to the reader
;-).


On Sun, Jul 20, 2014 at 4:30 PM, David Nolen <[email protected]> wrote:

> We don't use lein to test the REPL. Invoke with bin/repljs.
>
>
> On Sunday, July 20, 2014, Gary Trakhman <[email protected]> wrote:
>
>> I just tried running the rhino repl from the Clojurescript repo master,
>> and it does not work for me.
>>
>> gary@gary-dell:~/dev/personal/clojurescript$ lein repl
>> nREPL server started on port 53401 on host 127.0.0.1 - nrepl://
>> 127.0.0.1:53401
>> REPL-y 0.3.1
>> Clojure 1.6.0
>>     Docs: (doc function-name-here)
>>           (find-doc "part-of-name-here")
>>   Source: (source function-name-here)
>>  Javadoc: (javadoc java-object-or-class-here)
>>     Exit: Control+D or (exit) or (quit)
>>  Results: Stored in vars *1, *2, *3, an exception in *e
>>
>> user=> (require 'cljs.repl.rhino)
>> nil
>> user=> (cljs.repl.rhino/repl-env)
>>
>> EcmaError ReferenceError: "goog" is not defined. (bootjs#1)
>>  org.mozilla.javascript.ScriptRuntime.constructError
>> (ScriptRuntime.java:3687)
>>
>>
>>
>> Results of a git bisect:
>> 03679b4fb09bc0e538d6144dc7fb7f881c8fdb96 is the first bad commit
>> commit 03679b4fb09bc0e538d6144dc7fb7f881c8fdb96
>> Author: David Nolen <[email protected]>
>> Date:   Mon Jun 9 09:13:07 2014 -0400
>>
>>     bump project.clj deps
>>
>> :100644 100644 fd259125df40930dd0e158b471eb6b51b0791e38
>> 039c388e462a74d6a5ccbec0d28974f46d0ec132 M      project.clj
>>
>>
>>
>> https://github.com/clojure/clojurescript/commit/03679b4fb09bc0e538d6144dc7fb7f881c8fdb96
>>
>>
>> On Tuesday, July 15, 2014 4:27:30 PM UTC-4, David Nolen wrote:
>> > There's really not enough information here to determine where the
>> >
>> > issue lies. Running the Rhino REPL from the ClojureScript repo works
>> >
>> > fine.
>> >
>> >
>> >
>> > David
>> >
>> >
>> >
>> > On Tue, Jul 15, 2014 at 2:31 PM, Ivan L <[email protected]> wrote:
>> >
>> > > Hey all,
>> >
>> > >
>> >
>> > > I create project from the latest mies template.  Launch a cljsbuild
>> rhino repl and it fails with goog undefined.
>> >
>> > >
>> >
>> > > Changes between 2173 (last working version) and 2197:
>> >
>> > > https://github.com/clojure/clojurescript/compare/r2173...r2197
>> >
>> > >
>> >
>> > > Any thoughts?  Is there a place to report this stuff too?  I didn't
>> see an issues link on clojurescript github.
>> >
>> > >
>> >
>> > > ----
>> >
>> > >
>> >
>> > > project.clj:
>> >
>> > >
>> >
>> > > (defproject googbug "0.1.0-SNAPSHOT"
>> >
>> > >   :description "FIXME: write this!"
>> >
>> > >   :url "http://example.com/FIXME";
>> >
>> > >
>> >
>> > >   ; launch repl: lein trampoline cljsbuild repl-rhino
>> >
>> > >   ; originally 0.0-2268, fails
>> >
>> > >   ; error introduced in 0.0.2197, 2173 last version that worked.
>> >
>> > >   ; org.mozilla.javascript.EcmaError: ReferenceError: "goog" is not
>> defined. (bootjs#1)
>> >
>> > >   :dependencies [[org.clojure/clojure "1.6.0"]
>> >
>> > >                  [org.clojure/clojurescript "0.0-2197"]]
>> >
>> > >
>> >
>> > >   :plugins [[lein-cljsbuild "1.0.4-SNAPSHOT"]]
>> >
>> > >
>> >
>> > >   :source-paths ["src"]
>> >
>> > >
>> >
>> > >   :cljsbuild {
>> >
>> > >     :builds [{:id "googbug"
>> >
>> > >               :source-paths ["src"]
>> >
>> > >               :compiler {
>> >
>> > >                 :output-to "googbug.js"
>> >
>> > >                 :output-dir "out"
>> >
>> > >                 :optimizations :none
>> >
>> > >                 :source-map true}}]})
>> >
>> > >
>> >
>> > >
>> >
>> > > exception:
>> >
>> > > Running Rhino-based ClojureScript REPL.
>> >
>> > > org.mozilla.javascript.EcmaError: ReferenceError: "goog" is not
>> defined. (bootjs#1)
>> >
>> > >         at
>> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
>> >
>> > >         at
>> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
>> >
>> > >         at
>> org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3750)
>> >
>> > >         at org.mozilla.javascript.ScriptRuntime.name
>> (ScriptRuntime.java:1728)
>> >
>> > >         at org.mozilla.javascript.gen.bootjs_2._c_script_0(bootjs:1)
>> >
>> > >         at org.mozilla.javascript.gen.bootjs_2.call(bootjs)
>> >
>> > >         at
>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
>> >
>> > >         at
>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
>> >
>> > >         at org.mozilla.javascript.gen.bootjs_2.call(bootjs)
>> >
>> > >         at org.mozilla.javascript.gen.bootjs_2.exec(bootjs)
>> >
>> > >         at
>> org.mozilla.javascript.Context.evaluateString(Context.java:1079)
>> >
>> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >
>> > >         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> >
>> > >         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >
>> > >         at java.lang.reflect.Method.invoke(Method.java:606)
>> >
>> > >         at
>> clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
>> >
>> > >         at
>> clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
>> >
>> > >         at cljs.repl.rhino$eval3216$fn__3218.invoke(rhino.clj:32)
>> >
>> > >         at
>> cljs.repl.rhino$eval3187$fn__3188$G__3178__3199.invoke(rhino.clj:25)
>> >
>> > >         at cljs.repl.rhino$repl_env.invoke(rhino.clj:140)
>> >
>> > >         at cljsbuild.repl.rhino$run_repl_rhino.invoke(rhino.clj:7)
>> >
>> > >         at user$eval3305.invoke(form-init2322346721970587161.clj:1)
>> >
>> > >         at clojure.lang.Compiler.eval(Compiler.java:6703)
>> >
>> > >         at clojure.lang.Compiler.eval(Compiler.java:6693)
>> >
>> > >         at clojure.lang.Compiler.load(Compiler.java:7130)
>> >
>> > >         at clojure.lang.Compiler.loadFile(Compiler.java:7086)
>> >
>> > >         at clojure.main$load_script.invoke(main.clj:274)
>> >
>> > >         at clojure.main$init_opt.invoke(main.clj:279)
>> >
>> > >         at clojure.main$initialize.invoke(main.clj:307)
>> >
>> > >         at clojure.main$null_opt.invoke(main.clj:342)
>> >
>> > >         at clojure.main$main.doInvoke(main.clj:420)
>> >
>> > >         at clojure.lang.RestFn.invoke(RestFn.java:421)
>> >
>> > >         at clojure.lang.Var.invoke(Var.java:383)
>> >
>> > >         at clojure.lang.AFn.applyToHelper(AFn.java:156)
>> >
>> > >         at clojure.lang.Var.applyTo(Var.java:700)
>> >
>> > >         at clojure.main.main(main.java:37)
>> >
>> > >
>> >
>> > > --
>> >
>> > > Note that posts from new members are moderated - please be patient
>> with your first post.
>> >
>> > > ---
>> >
>> > > You received this message because you are subscribed to the Google
>> Groups "ClojureScript" group.
>> >
>> > > To unsubscribe from this group and stop receiving emails from it,
>> send an email to [email protected].
>> >
>> > > To post to this group, send email to [email protected].
>> >
>> > > Visit this group at http://groups.google.com/group/clojurescript.
>>
>> --
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "ClojureScript" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/clojurescript.
>>
>  --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to