Re: [ClojureScript] lein gorilla :port 8990 fails because "Call to clojure.core/ns did not conform to spec"

2019-10-12 Thread Sean Johnson
Kelvin,

Andy's reply is the key. You need to switch Gorilla REPL to the patched 
version.

Your plugins line should contain: [org.clojars.benfb/lein-gorilla "0.6.0"]

Cheers,
Sean

On Thursday, October 10, 2019 at 2:37:41 PM UTC-4, Kelvin T wrote:
>
> My project.clj is as follows:
>
> (defproject exercises "0.1.0-SNAPSHOT"
>   :description "Source code and exercise worksheets for the PPAML summer 
> school on Anglican"
>   :url "https://bitbucket.org/probprog/ppaml-summer-school-2016/";
>   :license {:name "Eclipse Public License"
> :url "http://www.eclipse.org/legal/epl-v10.html"}
>   :plugins [[lein-gorilla "0.3.4"]]
>   :dependencies [[org.clojure/clojure "1.8.0"]
>  [anglican "1.0.0"]
>  [org.nfrac/cljbox2d.testbed "0.5.0"]
>  [org.nfrac/cljbox2d "0.5.0"]
>  [org.clojure/data.priority-map "0.0.7"]
>  [net.mikera/core.matrix "0.52.2"]
>  [net.mikera/vectorz-clj "0.44.1"]
>  [net.polyc0l0r/clj-hdf5 "0.2.2-SNAPSHOT"]]
>   :java-source-paths ["src/ox_captcha"]
>   :main ^:skip-aot examples.core
>   :target-path "target/%s"
>   :jvm-opts ["-Xmx6g" "-Xms4g"]
>   :profiles {:uberjar {:aot :all}})
>
> I tried changing  org.clojure/clojure "1.8.0" to "1.10.0" and 
> [lein-gorilla "0.3.4"] to "0.4.0" as seen on the gorrila repl website, but 
> I still get the same error.
>
> On Monday, October 7, 2019 at 6:42:38 PM UTC-4, Andy Fingerhut wrote:
>>
>> I do not know if you are trying the instructions on this web page or not: 
>> http://gorilla-repl.org/start.html
>>
>> If so, I got the same error.
>>
>> It appears that the sample project.clj file there only works with some 
>> older versions of Clojure-related software, which I have not determined.
>>
>> With Leiningen version 2.9.1, which is the latest version as of the last 
>> several months or so, and the project.clj file below, I was able to get a 
>> successful run:
>>
>> (defproject trygorilla "0.1.0-SNAPSHOT"
>>   :description "A test project for Gorilla REPL."
>>   :dependencies [[org.clojure/clojure "1.10.1"]]
>>   :main ^:skip-aot gorilla-test.core
>>   :plugins [[org.clojars.benfb/lein-gorilla "0.6.0"]]
>>   :profiles {:uberjar {:aot :all}})
>>
>> It appears that a different person is maintaining the Gorilla REPL, and 
>> they release the Gorilla JAR files using a slightly different artifact 
>> name, as shown above in the :plugins line.
>>
>> When I run that command, after downloading the needed packages, 
>> eventually I see the output below, and then I can copy and paste the URL 
>> into my browser running on that same machine in order to interact with 
>> Gorilla:
>>
>> Regards,
>> Andy
>>
>> $ lein gorilla
>>
>> Gorilla-REPL: 0.6.0
>>
>> Unable to reach update server.
>>
>> Started nREPL server on port 56374
>>
>> Running at http://127.0.0.1:56376/worksheet.html .
>>
>> Ctrl+C to exit.
>>
>> Regards,
>> Andy
>>
>> On Mon, Oct 7, 2019 at 12:42 PM Kelvin T  wrote:
>>
>>> This is my first time working with clojure, and I am struggling to run 
>>> gorilla repl. Any help would be greatly appreciated.
>>> Below is the stack trace:
>>>
>>> clojure.lang.Compiler$CompilerException: Syntax error macroexpanding 
>>> clojure.core/ns at (ring/util/mime_type.clj:1:1).
>>> #:clojure.error{:phase :macro-syntax-check, :line 1, :column 1, :source 
>>> "ring/util/mime_type.clj", :symbol clojure.core/ns}
>>>  at clojure.lang.Compiler.checkSpecs (Compiler.java:6971)
>>> clojure.lang.Compiler.macroexpand1 (Compiler.java:6987)
>>> clojure.lang.Compiler.macroexpand (Compiler.java:7074)
>>> clojure.lang.Compiler.eval (Compiler.java:7160)
>>> clojure.lang.Compiler.load (Compiler.java:7635)
>>> clojure.lang.RT.loadResourceScript (RT.java:381)
>>> clojure.lang.RT.loadResourceScript (RT.java:372)
>>> clojure.lang.RT.load (RT.java:463)
>>> clojure.lang.RT.load (RT.java:428)
>>> clojure.core$load$fn__6824.invoke (core.clj:6126)
>>> clojure.core$load.invokeStatic (core.clj:6125)
>>> clojure.core$load.doInvoke (core.clj:6109)
>>> clojure.lang.RestFn.invoke (RestFn.java:408)
>>> clojure.core$load_one.invokeStatic (core.clj:5908)
>>> clojure.core$load_one.invoke (core.clj:5903)
>>> clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
>>> clojure.core$load_lib.invokeStatic (core.clj:5947)
>>> clojure.core$load_lib.doInvoke (core.clj:5928)
>>> clojure.lang.RestFn.applyTo (RestFn.java:142)
>>> clojure.core$apply.invokeStatic (core.clj:667)
>>> clojure.core$load_libs.invokeStatic (core.clj:5985)
>>> clojure.core$load_libs.doInvoke (core.clj:5969)
>>> clojure.lang.RestFn.applyTo (RestFn.java:137)
>>> clojure.core$apply.invokeStatic (core.clj:669)
>>> clojure.core$use.invokeStatic (core.clj:6093)
>>> clojure.core$use.doInvoke (core.clj:6093)
>>> clojure.lang.RestFn.invoke (RestFn.java:421)
>>> 
>>> ring.middleware.content_type$eval2277$loading__6706__auto

Re: [ClojureScript] lein gorilla :port 8990 fails because "Call to clojure.core/ns did not conform to spec"

2019-10-10 Thread Kelvin T
My project.clj is as follows:

(defproject exercises "0.1.0-SNAPSHOT"
  :description "Source code and exercise worksheets for the PPAML summer 
school on Anglican"
  :url "https://bitbucket.org/probprog/ppaml-summer-school-2016/";
  :license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
  :plugins [[lein-gorilla "0.3.4"]]
  :dependencies [[org.clojure/clojure "1.8.0"]
 [anglican "1.0.0"]
 [org.nfrac/cljbox2d.testbed "0.5.0"]
 [org.nfrac/cljbox2d "0.5.0"]
 [org.clojure/data.priority-map "0.0.7"]
 [net.mikera/core.matrix "0.52.2"]
 [net.mikera/vectorz-clj "0.44.1"]
 [net.polyc0l0r/clj-hdf5 "0.2.2-SNAPSHOT"]]
  :java-source-paths ["src/ox_captcha"]
  :main ^:skip-aot examples.core
  :target-path "target/%s"
  :jvm-opts ["-Xmx6g" "-Xms4g"]
  :profiles {:uberjar {:aot :all}})

I tried changing  org.clojure/clojure "1.8.0" to "1.10.0" and [lein-gorilla 
"0.3.4"] to "0.4.0" as seen on the gorrila repl website, but I still get 
the same error.

On Monday, October 7, 2019 at 6:42:38 PM UTC-4, Andy Fingerhut wrote:
>
> I do not know if you are trying the instructions on this web page or not: 
> http://gorilla-repl.org/start.html
>
> If so, I got the same error.
>
> It appears that the sample project.clj file there only works with some 
> older versions of Clojure-related software, which I have not determined.
>
> With Leiningen version 2.9.1, which is the latest version as of the last 
> several months or so, and the project.clj file below, I was able to get a 
> successful run:
>
> (defproject trygorilla "0.1.0-SNAPSHOT"
>   :description "A test project for Gorilla REPL."
>   :dependencies [[org.clojure/clojure "1.10.1"]]
>   :main ^:skip-aot gorilla-test.core
>   :plugins [[org.clojars.benfb/lein-gorilla "0.6.0"]]
>   :profiles {:uberjar {:aot :all}})
>
> It appears that a different person is maintaining the Gorilla REPL, and 
> they release the Gorilla JAR files using a slightly different artifact 
> name, as shown above in the :plugins line.
>
> When I run that command, after downloading the needed packages, eventually 
> I see the output below, and then I can copy and paste the URL into my 
> browser running on that same machine in order to interact with Gorilla:
>
> Regards,
> Andy
>
> $ lein gorilla
>
> Gorilla-REPL: 0.6.0
>
> Unable to reach update server.
>
> Started nREPL server on port 56374
>
> Running at http://127.0.0.1:56376/worksheet.html .
>
> Ctrl+C to exit.
>
> Regards,
> Andy
>
> On Mon, Oct 7, 2019 at 12:42 PM Kelvin T > 
> wrote:
>
>> This is my first time working with clojure, and I am struggling to run 
>> gorilla repl. Any help would be greatly appreciated.
>> Below is the stack trace:
>>
>> clojure.lang.Compiler$CompilerException: Syntax error macroexpanding 
>> clojure.core/ns at (ring/util/mime_type.clj:1:1).
>> #:clojure.error{:phase :macro-syntax-check, :line 1, :column 1, :source 
>> "ring/util/mime_type.clj", :symbol clojure.core/ns}
>>  at clojure.lang.Compiler.checkSpecs (Compiler.java:6971)
>> clojure.lang.Compiler.macroexpand1 (Compiler.java:6987)
>> clojure.lang.Compiler.macroexpand (Compiler.java:7074)
>> clojure.lang.Compiler.eval (Compiler.java:7160)
>> clojure.lang.Compiler.load (Compiler.java:7635)
>> clojure.lang.RT.loadResourceScript (RT.java:381)
>> clojure.lang.RT.loadResourceScript (RT.java:372)
>> clojure.lang.RT.load (RT.java:463)
>> clojure.lang.RT.load (RT.java:428)
>> clojure.core$load$fn__6824.invoke (core.clj:6126)
>> clojure.core$load.invokeStatic (core.clj:6125)
>> clojure.core$load.doInvoke (core.clj:6109)
>> clojure.lang.RestFn.invoke (RestFn.java:408)
>> clojure.core$load_one.invokeStatic (core.clj:5908)
>> clojure.core$load_one.invoke (core.clj:5903)
>> clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
>> clojure.core$load_lib.invokeStatic (core.clj:5947)
>> clojure.core$load_lib.doInvoke (core.clj:5928)
>> clojure.lang.RestFn.applyTo (RestFn.java:142)
>> clojure.core$apply.invokeStatic (core.clj:667)
>> clojure.core$load_libs.invokeStatic (core.clj:5985)
>> clojure.core$load_libs.doInvoke (core.clj:5969)
>> clojure.lang.RestFn.applyTo (RestFn.java:137)
>> clojure.core$apply.invokeStatic (core.clj:669)
>> clojure.core$use.invokeStatic (core.clj:6093)
>> clojure.core$use.doInvoke (core.clj:6093)
>> clojure.lang.RestFn.invoke (RestFn.java:421)
>> 
>> ring.middleware.content_type$eval2277$loading__6706__auto2278.invoke 
>> (content_type.clj:1)
>> ring.middleware.content_type$eval2277.invokeStatic 
>> (content_type.clj:1)
>> ring.middleware.content_type$eval2277.invoke (content_type.clj:1)
>> clojure.lang.Compiler.eval (Compiler.java:7176)
>> clojure.lang.Compiler.eval (Compiler.java:7165)
>> clojure.lang.Compiler.load (Compiler.java:7635)
>> clojure.lang.RT.loadReso

Re: [ClojureScript] lein gorilla :port 8990 fails because "Call to clojure.core/ns did not conform to spec"

2019-10-09 Thread Alex Miller
Well, it's not OP's file, the bad file is ring/util/mime_type.clj, which 
looks like it was fixed in 2014 
(https://github.com/ring-clojure/ring/commit/a05e026d85611cb179a1352d569d7c68713f792c#diff-ed2c15fc701c576b461d6967f0f81e91),
 
so must need to pull in a newer version somewhere.



On Monday, October 7, 2019 at 5:43:16 PM UTC-5, Mark Nutter wrote:
>
> The important bit is the part that says ":val ((require [clojure.string 
> :as str]))". I believe that is telling you that you have "(require 
> [clojure.string :as str])" inside your namespace declaration, but you need 
> ":require" (leading colon) instead of "require" when you're putting it 
> inside the "(ns ...)" declaration.
>
> On Mon, Oct 7, 2019 at 3:42 PM Kelvin T > 
> wrote:
>
>> This is my first time working with clojure, and I am struggling to run 
>> gorilla repl. Any help would be greatly appreciated.
>> Below is the stack trace:
>>
>> clojure.lang.Compiler$CompilerException: Syntax error macroexpanding 
>> clojure.core/ns at (ring/util/mime_type.clj:1:1).
>> #:clojure.error{:phase :macro-syntax-check, :line 1, :column 1, :source 
>> "ring/util/mime_type.clj", :symbol clojure.core/ns}
>>  at clojure.lang.Compiler.checkSpecs (Compiler.java:6971)
>> clojure.lang.Compiler.macroexpand1 (Compiler.java:6987)
>> clojure.lang.Compiler.macroexpand (Compiler.java:7074)
>> clojure.lang.Compiler.eval (Compiler.java:7160)
>> clojure.lang.Compiler.load (Compiler.java:7635)
>> clojure.lang.RT.loadResourceScript (RT.java:381)
>> clojure.lang.RT.loadResourceScript (RT.java:372)
>> clojure.lang.RT.load (RT.java:463)
>> clojure.lang.RT.load (RT.java:428)
>> clojure.core$load$fn__6824.invoke (core.clj:6126)
>> clojure.core$load.invokeStatic (core.clj:6125)
>> clojure.core$load.doInvoke (core.clj:6109)
>> clojure.lang.RestFn.invoke (RestFn.java:408)
>> clojure.core$load_one.invokeStatic (core.clj:5908)
>> clojure.core$load_one.invoke (core.clj:5903)
>> clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
>> clojure.core$load_lib.invokeStatic (core.clj:5947)
>> clojure.core$load_lib.doInvoke (core.clj:5928)
>> clojure.lang.RestFn.applyTo (RestFn.java:142)
>> clojure.core$apply.invokeStatic (core.clj:667)
>> clojure.core$load_libs.invokeStatic (core.clj:5985)
>> clojure.core$load_libs.doInvoke (core.clj:5969)
>> clojure.lang.RestFn.applyTo (RestFn.java:137)
>> clojure.core$apply.invokeStatic (core.clj:669)
>> clojure.core$use.invokeStatic (core.clj:6093)
>> clojure.core$use.doInvoke (core.clj:6093)
>> clojure.lang.RestFn.invoke (RestFn.java:421)
>> 
>> ring.middleware.content_type$eval2277$loading__6706__auto2278.invoke 
>> (content_type.clj:1)
>> ring.middleware.content_type$eval2277.invokeStatic 
>> (content_type.clj:1)
>> ring.middleware.content_type$eval2277.invoke (content_type.clj:1)
>> clojure.lang.Compiler.eval (Compiler.java:7176)
>> clojure.lang.Compiler.eval (Compiler.java:7165)
>> clojure.lang.Compiler.load (Compiler.java:7635)
>> clojure.lang.RT.loadResourceScript (RT.java:381)
>> clojure.lang.RT.loadResourceScript (RT.java:372)
>> clojure.lang.RT.load (RT.java:463)
>> clojure.lang.RT.load (RT.java:428)
>> clojure.core$load$fn__6824.invoke (core.clj:6126)
>> clojure.core$load.invokeStatic (core.clj:6125)
>> clojure.core$load.doInvoke (core.clj:6109)
>> clojure.lang.RestFn.invoke (RestFn.java:408)
>> clojure.core$load_one.invokeStatic (core.clj:5908)
>> clojure.core$load_one.invoke (core.clj:5903)
>> clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
>> clojure.core$load_lib.invokeStatic (core.clj:5947)
>> clojure.core$load_lib.doInvoke (core.clj:5928)
>> clojure.lang.RestFn.applyTo (RestFn.java:142)
>> clojure.core$apply.invokeStatic (core.clj:667)
>> clojure.core$load_libs.invokeStatic (core.clj:5985)
>> clojure.core$load_libs.doInvoke (core.clj:5969)
>> clojure.lang.RestFn.applyTo (RestFn.java:137)
>> clojure.core$apply.invokeStatic (core.clj:669)
>> clojure.core$use.invokeStatic (core.clj:6093)
>> clojure.core$use.doInvoke (core.clj:6093)
>> clojure.lang.RestFn.invoke (RestFn.java:512)
>> compojure.route$eval2269$loading__6706__auto2270.invoke 
>> (route.clj:1)
>> compojure.route$eval2269.invokeStatic (route.clj:1)
>> compojure.route$eval2269.invoke (route.clj:1)
>> clojure.lang.Compiler.eval (Compiler.java:7176)
>> clojure.lang.Compiler.eval (Compiler.java:7165)
>> clojure.lang.Compiler.load (Compiler.java:7635)
>> clojure.lang.RT.loadResourceScript (RT.java:381)
>> clojure.lang.RT.loadResourceScript (RT.java:372)
>> clojure.lang.RT.load (RT.java:463)
>> clojure.lang.RT.load (RT.java:428)
>> clojure.core$load$fn__6824.invoke (core.clj:6126)
>> clojure.core$load.invokeStatic (core.clj:6125)
>> clojure.core$load.doInvoke (core.clj:6109)
>> clojure.lang.RestFn.invoke (R

Re: [ClojureScript] lein gorilla :port 8990 fails because "Call to clojure.core/ns did not conform to spec"

2019-10-07 Thread Mark Nutter
The important bit is the part that says ":val ((require [clojure.string :as
str]))". I believe that is telling you that you have "(require
[clojure.string :as str])" inside your namespace declaration, but you need
":require" (leading colon) instead of "require" when you're putting it
inside the "(ns ...)" declaration.

On Mon, Oct 7, 2019 at 3:42 PM Kelvin T  wrote:

> This is my first time working with clojure, and I am struggling to run
> gorilla repl. Any help would be greatly appreciated.
> Below is the stack trace:
>
> clojure.lang.Compiler$CompilerException: Syntax error macroexpanding
> clojure.core/ns at (ring/util/mime_type.clj:1:1).
> #:clojure.error{:phase :macro-syntax-check, :line 1, :column 1, :source
> "ring/util/mime_type.clj", :symbol clojure.core/ns}
>  at clojure.lang.Compiler.checkSpecs (Compiler.java:6971)
> clojure.lang.Compiler.macroexpand1 (Compiler.java:6987)
> clojure.lang.Compiler.macroexpand (Compiler.java:7074)
> clojure.lang.Compiler.eval (Compiler.java:7160)
> clojure.lang.Compiler.load (Compiler.java:7635)
> clojure.lang.RT.loadResourceScript (RT.java:381)
> clojure.lang.RT.loadResourceScript (RT.java:372)
> clojure.lang.RT.load (RT.java:463)
> clojure.lang.RT.load (RT.java:428)
> clojure.core$load$fn__6824.invoke (core.clj:6126)
> clojure.core$load.invokeStatic (core.clj:6125)
> clojure.core$load.doInvoke (core.clj:6109)
> clojure.lang.RestFn.invoke (RestFn.java:408)
> clojure.core$load_one.invokeStatic (core.clj:5908)
> clojure.core$load_one.invoke (core.clj:5903)
> clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
> clojure.core$load_lib.invokeStatic (core.clj:5947)
> clojure.core$load_lib.doInvoke (core.clj:5928)
> clojure.lang.RestFn.applyTo (RestFn.java:142)
> clojure.core$apply.invokeStatic (core.clj:667)
> clojure.core$load_libs.invokeStatic (core.clj:5985)
> clojure.core$load_libs.doInvoke (core.clj:5969)
> clojure.lang.RestFn.applyTo (RestFn.java:137)
> clojure.core$apply.invokeStatic (core.clj:669)
> clojure.core$use.invokeStatic (core.clj:6093)
> clojure.core$use.doInvoke (core.clj:6093)
> clojure.lang.RestFn.invoke (RestFn.java:421)
>
> ring.middleware.content_type$eval2277$loading__6706__auto2278.invoke
> (content_type.clj:1)
> ring.middleware.content_type$eval2277.invokeStatic (content_type.clj:1)
> ring.middleware.content_type$eval2277.invoke (content_type.clj:1)
> clojure.lang.Compiler.eval (Compiler.java:7176)
> clojure.lang.Compiler.eval (Compiler.java:7165)
> clojure.lang.Compiler.load (Compiler.java:7635)
> clojure.lang.RT.loadResourceScript (RT.java:381)
> clojure.lang.RT.loadResourceScript (RT.java:372)
> clojure.lang.RT.load (RT.java:463)
> clojure.lang.RT.load (RT.java:428)
> clojure.core$load$fn__6824.invoke (core.clj:6126)
> clojure.core$load.invokeStatic (core.clj:6125)
> clojure.core$load.doInvoke (core.clj:6109)
> clojure.lang.RestFn.invoke (RestFn.java:408)
> clojure.core$load_one.invokeStatic (core.clj:5908)
> clojure.core$load_one.invoke (core.clj:5903)
> clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
> clojure.core$load_lib.invokeStatic (core.clj:5947)
> clojure.core$load_lib.doInvoke (core.clj:5928)
> clojure.lang.RestFn.applyTo (RestFn.java:142)
> clojure.core$apply.invokeStatic (core.clj:667)
> clojure.core$load_libs.invokeStatic (core.clj:5985)
> clojure.core$load_libs.doInvoke (core.clj:5969)
> clojure.lang.RestFn.applyTo (RestFn.java:137)
> clojure.core$apply.invokeStatic (core.clj:669)
> clojure.core$use.invokeStatic (core.clj:6093)
> clojure.core$use.doInvoke (core.clj:6093)
> clojure.lang.RestFn.invoke (RestFn.java:512)
> compojure.route$eval2269$loading__6706__auto2270.invoke
> (route.clj:1)
> compojure.route$eval2269.invokeStatic (route.clj:1)
> compojure.route$eval2269.invoke (route.clj:1)
> clojure.lang.Compiler.eval (Compiler.java:7176)
> clojure.lang.Compiler.eval (Compiler.java:7165)
> clojure.lang.Compiler.load (Compiler.java:7635)
> clojure.lang.RT.loadResourceScript (RT.java:381)
> clojure.lang.RT.loadResourceScript (RT.java:372)
> clojure.lang.RT.load (RT.java:463)
> clojure.lang.RT.load (RT.java:428)
> clojure.core$load$fn__6824.invoke (core.clj:6126)
> clojure.core$load.invokeStatic (core.clj:6125)
> clojure.core$load.doInvoke (core.clj:6109)
> clojure.lang.RestFn.invoke (RestFn.java:408)
> clojure.core$load_one.invokeStatic (core.clj:5908)
> clojure.core$load_one.invoke (core.clj:5903)
> clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
> clojure.core$load_lib.invokeStatic (core.clj:5947)
> clojure.core$load_lib.doInvoke (core.clj:5928)
> clojure.lang.RestFn.applyTo (RestFn.java:142)
> clojure.core$apply.invokeStatic (core.clj:667)
> clojure.core$load_libs.invokeStatic (core.clj:5985)
> clojure.cor

Re: [ClojureScript] lein gorilla :port 8990 fails because "Call to clojure.core/ns did not conform to spec"

2019-10-07 Thread Andy Fingerhut
I do not know if you are trying the instructions on this web page or not:
http://gorilla-repl.org/start.html

If so, I got the same error.

It appears that the sample project.clj file there only works with some
older versions of Clojure-related software, which I have not determined.

With Leiningen version 2.9.1, which is the latest version as of the last
several months or so, and the project.clj file below, I was able to get a
successful run:

(defproject trygorilla "0.1.0-SNAPSHOT"
  :description "A test project for Gorilla REPL."
  :dependencies [[org.clojure/clojure "1.10.1"]]
  :main ^:skip-aot gorilla-test.core
  :plugins [[org.clojars.benfb/lein-gorilla "0.6.0"]]
  :profiles {:uberjar {:aot :all}})

It appears that a different person is maintaining the Gorilla REPL, and
they release the Gorilla JAR files using a slightly different artifact
name, as shown above in the :plugins line.

When I run that command, after downloading the needed packages, eventually
I see the output below, and then I can copy and paste the URL into my
browser running on that same machine in order to interact with Gorilla:

Regards,
Andy

$ lein gorilla

Gorilla-REPL: 0.6.0

Unable to reach update server.

Started nREPL server on port 56374

Running at http://127.0.0.1:56376/worksheet.html .

Ctrl+C to exit.

Regards,
Andy

On Mon, Oct 7, 2019 at 12:42 PM Kelvin T  wrote:

> This is my first time working with clojure, and I am struggling to run
> gorilla repl. Any help would be greatly appreciated.
> Below is the stack trace:
>
> clojure.lang.Compiler$CompilerException: Syntax error macroexpanding
> clojure.core/ns at (ring/util/mime_type.clj:1:1).
> #:clojure.error{:phase :macro-syntax-check, :line 1, :column 1, :source
> "ring/util/mime_type.clj", :symbol clojure.core/ns}
>  at clojure.lang.Compiler.checkSpecs (Compiler.java:6971)
> clojure.lang.Compiler.macroexpand1 (Compiler.java:6987)
> clojure.lang.Compiler.macroexpand (Compiler.java:7074)
> clojure.lang.Compiler.eval (Compiler.java:7160)
> clojure.lang.Compiler.load (Compiler.java:7635)
> clojure.lang.RT.loadResourceScript (RT.java:381)
> clojure.lang.RT.loadResourceScript (RT.java:372)
> clojure.lang.RT.load (RT.java:463)
> clojure.lang.RT.load (RT.java:428)
> clojure.core$load$fn__6824.invoke (core.clj:6126)
> clojure.core$load.invokeStatic (core.clj:6125)
> clojure.core$load.doInvoke (core.clj:6109)
> clojure.lang.RestFn.invoke (RestFn.java:408)
> clojure.core$load_one.invokeStatic (core.clj:5908)
> clojure.core$load_one.invoke (core.clj:5903)
> clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
> clojure.core$load_lib.invokeStatic (core.clj:5947)
> clojure.core$load_lib.doInvoke (core.clj:5928)
> clojure.lang.RestFn.applyTo (RestFn.java:142)
> clojure.core$apply.invokeStatic (core.clj:667)
> clojure.core$load_libs.invokeStatic (core.clj:5985)
> clojure.core$load_libs.doInvoke (core.clj:5969)
> clojure.lang.RestFn.applyTo (RestFn.java:137)
> clojure.core$apply.invokeStatic (core.clj:669)
> clojure.core$use.invokeStatic (core.clj:6093)
> clojure.core$use.doInvoke (core.clj:6093)
> clojure.lang.RestFn.invoke (RestFn.java:421)
>
> ring.middleware.content_type$eval2277$loading__6706__auto2278.invoke
> (content_type.clj:1)
> ring.middleware.content_type$eval2277.invokeStatic (content_type.clj:1)
> ring.middleware.content_type$eval2277.invoke (content_type.clj:1)
> clojure.lang.Compiler.eval (Compiler.java:7176)
> clojure.lang.Compiler.eval (Compiler.java:7165)
> clojure.lang.Compiler.load (Compiler.java:7635)
> clojure.lang.RT.loadResourceScript (RT.java:381)
> clojure.lang.RT.loadResourceScript (RT.java:372)
> clojure.lang.RT.load (RT.java:463)
> clojure.lang.RT.load (RT.java:428)
> clojure.core$load$fn__6824.invoke (core.clj:6126)
> clojure.core$load.invokeStatic (core.clj:6125)
> clojure.core$load.doInvoke (core.clj:6109)
> clojure.lang.RestFn.invoke (RestFn.java:408)
> clojure.core$load_one.invokeStatic (core.clj:5908)
> clojure.core$load_one.invoke (core.clj:5903)
> clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
> clojure.core$load_lib.invokeStatic (core.clj:5947)
> clojure.core$load_lib.doInvoke (core.clj:5928)
> clojure.lang.RestFn.applyTo (RestFn.java:142)
> clojure.core$apply.invokeStatic (core.clj:667)
> clojure.core$load_libs.invokeStatic (core.clj:5985)
> clojure.core$load_libs.doInvoke (core.clj:5969)
> clojure.lang.RestFn.applyTo (RestFn.java:137)
> clojure.core$apply.invokeStatic (core.clj:669)
> clojure.core$use.invokeStatic (core.clj:6093)
> clojure.core$use.doInvoke (core.clj:6093)
> clojure.lang.RestFn.invoke (RestFn.java:512)
> compojure.route$eval2269$loading__6706__auto2270.invoke
> (route.clj:1)
> compojure.route$eval2269.invokeStatic (route.clj:1)
> compojure.route$eval2269.invoke (route.clj:1)
> clojure.la

[ClojureScript] lein gorilla :port 8990 fails because "Call to clojure.core/ns did not conform to spec"

2019-10-07 Thread Kelvin T
This is my first time working with clojure, and I am struggling to run 
gorilla repl. Any help would be greatly appreciated.
Below is the stack trace:

clojure.lang.Compiler$CompilerException: Syntax error macroexpanding 
clojure.core/ns at (ring/util/mime_type.clj:1:1).
#:clojure.error{:phase :macro-syntax-check, :line 1, :column 1, :source 
"ring/util/mime_type.clj", :symbol clojure.core/ns}
 at clojure.lang.Compiler.checkSpecs (Compiler.java:6971)
clojure.lang.Compiler.macroexpand1 (Compiler.java:6987)
clojure.lang.Compiler.macroexpand (Compiler.java:7074)
clojure.lang.Compiler.eval (Compiler.java:7160)
clojure.lang.Compiler.load (Compiler.java:7635)
clojure.lang.RT.loadResourceScript (RT.java:381)
clojure.lang.RT.loadResourceScript (RT.java:372)
clojure.lang.RT.load (RT.java:463)
clojure.lang.RT.load (RT.java:428)
clojure.core$load$fn__6824.invoke (core.clj:6126)
clojure.core$load.invokeStatic (core.clj:6125)
clojure.core$load.doInvoke (core.clj:6109)
clojure.lang.RestFn.invoke (RestFn.java:408)
clojure.core$load_one.invokeStatic (core.clj:5908)
clojure.core$load_one.invoke (core.clj:5903)
clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
clojure.core$load_lib.invokeStatic (core.clj:5947)
clojure.core$load_lib.doInvoke (core.clj:5928)
clojure.lang.RestFn.applyTo (RestFn.java:142)
clojure.core$apply.invokeStatic (core.clj:667)
clojure.core$load_libs.invokeStatic (core.clj:5985)
clojure.core$load_libs.doInvoke (core.clj:5969)
clojure.lang.RestFn.applyTo (RestFn.java:137)
clojure.core$apply.invokeStatic (core.clj:669)
clojure.core$use.invokeStatic (core.clj:6093)
clojure.core$use.doInvoke (core.clj:6093)
clojure.lang.RestFn.invoke (RestFn.java:421)

ring.middleware.content_type$eval2277$loading__6706__auto2278.invoke 
(content_type.clj:1)
ring.middleware.content_type$eval2277.invokeStatic (content_type.clj:1)
ring.middleware.content_type$eval2277.invoke (content_type.clj:1)
clojure.lang.Compiler.eval (Compiler.java:7176)
clojure.lang.Compiler.eval (Compiler.java:7165)
clojure.lang.Compiler.load (Compiler.java:7635)
clojure.lang.RT.loadResourceScript (RT.java:381)
clojure.lang.RT.loadResourceScript (RT.java:372)
clojure.lang.RT.load (RT.java:463)
clojure.lang.RT.load (RT.java:428)
clojure.core$load$fn__6824.invoke (core.clj:6126)
clojure.core$load.invokeStatic (core.clj:6125)
clojure.core$load.doInvoke (core.clj:6109)
clojure.lang.RestFn.invoke (RestFn.java:408)
clojure.core$load_one.invokeStatic (core.clj:5908)
clojure.core$load_one.invoke (core.clj:5903)
clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
clojure.core$load_lib.invokeStatic (core.clj:5947)
clojure.core$load_lib.doInvoke (core.clj:5928)
clojure.lang.RestFn.applyTo (RestFn.java:142)
clojure.core$apply.invokeStatic (core.clj:667)
clojure.core$load_libs.invokeStatic (core.clj:5985)
clojure.core$load_libs.doInvoke (core.clj:5969)
clojure.lang.RestFn.applyTo (RestFn.java:137)
clojure.core$apply.invokeStatic (core.clj:669)
clojure.core$use.invokeStatic (core.clj:6093)
clojure.core$use.doInvoke (core.clj:6093)
clojure.lang.RestFn.invoke (RestFn.java:512)
compojure.route$eval2269$loading__6706__auto2270.invoke 
(route.clj:1)
compojure.route$eval2269.invokeStatic (route.clj:1)
compojure.route$eval2269.invoke (route.clj:1)
clojure.lang.Compiler.eval (Compiler.java:7176)
clojure.lang.Compiler.eval (Compiler.java:7165)
clojure.lang.Compiler.load (Compiler.java:7635)
clojure.lang.RT.loadResourceScript (RT.java:381)
clojure.lang.RT.loadResourceScript (RT.java:372)
clojure.lang.RT.load (RT.java:463)
clojure.lang.RT.load (RT.java:428)
clojure.core$load$fn__6824.invoke (core.clj:6126)
clojure.core$load.invokeStatic (core.clj:6125)
clojure.core$load.doInvoke (core.clj:6109)
clojure.lang.RestFn.invoke (RestFn.java:408)
clojure.core$load_one.invokeStatic (core.clj:5908)
clojure.core$load_one.invoke (core.clj:5903)
clojure.core$load_lib$fn__6765.invoke (core.clj:5948)
clojure.core$load_lib.invokeStatic (core.clj:5947)
clojure.core$load_lib.doInvoke (core.clj:5928)
clojure.lang.RestFn.applyTo (RestFn.java:142)
clojure.core$apply.invokeStatic (core.clj:667)
clojure.core$load_libs.invokeStatic (core.clj:5985)
clojure.core$load_libs.doInvoke (core.clj:5969)
clojure.lang.RestFn.applyTo (RestFn.java:137)
clojure.core$apply.invokeStatic (core.clj:667)
clojure.core$require.invokeStatic (core.clj:6007)
clojure.core$require.doInvoke (core.clj:6007)
clojure.lang.RestFn.invoke (RestFn.java:1789)
gorilla_repl.core$eval668$loading__6706__auto669.invoke (core.clj:5)
gorilla_repl.core$eval668.invokeStatic (core.clj:5)
gorilla_repl.core$eval668.invoke (core.clj:5)
clojure.lang.Compiler.eval (Compiler.java:7176)
clojur