It works inside of lein because lein adds REPL-y to the classpath of the
project, which adds clojure-complete.  Cider used to be coupled to this
before we gutted it.


On Mon, Sep 1, 2014 at 4:56 PM, Stuart Halloway <stuart.hallo...@gmail.com>
wrote:

> And now, answering part of my own question.  It appears the following
> almost "just works" from a maven project that references gorilla:
>
>   (require '[gorilla-repl.core :as gorilla])
>   (gorilla/run-gorilla-server {:port 8990})
>
> The only problem is that gorilla's declaration of its own dependencies
> appears incomplete.  When I try to run the snippet above, I fail for lack
> of org.clojure/tools.nrepl and clojure-complete.  Adding them as explicit
> dependencies in my own project fixes the problem.  My quick guess is that
> these two libs need to be added to gorilla's own dependencies.  (One
> wonders why it works inside of lein...)
>
> Stu
>
>
>
> On Mon, Sep 1, 2014 at 12:55 PM, Jony Hudson <jonyepsi...@gmail.com>
> wrote:
>
>> Beau, Lee - thanks for the kind words - glad you're enjoying it!
>>
>> Stu - I've no experience of running Clojure under either maven or gradle,
>> but my guess is that it won't work out-of-the-box yet. Currently, Gorilla
>> launches by using Leiningen to run its own server process in the classpath
>> of the project. The Gorilla server starts up an nREPL server in process and
>> connects to that. I've been planning to add the feature to connect to an
>> external nREPL server (and also, probably, for "local" connections to
>> launch the nREPL server as a separate process). It would then be
>> straightforward, I'd imagine, to run an nREPL server from maven/gradle -
>> which would take care of the classpath - and have maven/gradle start up the
>> gorilla server and connect to nREPL.
>>
>> I guess a workaroundy way to do it would be if maven/gradle can output
>> the classpath for a project, then it might possibly work to run the Gorilla
>> jar with the appropriate classpath. I'm not sure about this though as, in
>> truth, I don't know exactly what nREPL does when it starts up!
>>
>>
>> Jony
>>
>>
>> On Monday, 1 September 2014 17:33:50 UTC+1, stuart....@gmail.com wrote:
>>>
>>> Hi Jony,
>>>
>>> Is there a path for using Gorilla REPL from a maven or gradle project?
>>>
>>> Thanks,
>>> Stu
>>>
>>>
>>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to