On Monday, May 27, 2013 12:48:24 PM UTC-5, stuart....@gmail.com wrote:
>
> I thought I wanted some of the affordances, but not the nrepl connection 
> (e.g. get to reply's standalone eval mode).
>
> But it turns out that for my use case, I don't need any of that, so 
> calling clojure.main directly is the right thing.
>
>
Sounds like this is solved, but in case it comes up for anyone else, there 
are a couple options to get a non-nREPL REPLy via leiningen. All will 
currently require going through trampoline, but we think that's a 
historical requirement and a non-trampolined version shouldn't be a big 
deal to add if people want to avoid the trampoline.

- in project.clj: `:repl-options {:standalone true}`, and running `lein 
trampoline repl`
- or override any existing setting from the command line: `lein update-in 
:repl-options assoc :standalone true -- trampoline repl`

I am curious as to the use cases for avoiding nREPL. I know one is Heroku, 
where network connections are more restricted. Are there others? Just want 
to be sure there's nothing broken that we don't know about. If there are 
bugs in REPLy that make people need to bypass it entirely, please let me 
know with an issue: https://github.com/trptcolin/reply/issues (though you 
may want to look at reply 0.2.0 first, which will be in lein 2.2.0).

- Colin


 

> Thanks,
> Stu
>
>
> On Mon, May 27, 2013 at 11:27 AM, Laurent PETIT 
> <lauren...@gmail.com<javascript:>
> > wrote:
>
>> Hello,
>>
>> What about
>>
>> lein run -m clojure.main
>>
>> ?
>>
>>
>> 2013/5/27 Stuart Halloway <stuart....@gmail.com <javascript:>>:
>> > As opposed to tools.nrepl?
>> >
>> > Thanks,
>> > Stu
>> >
>> > --
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Clojure" group.
>> > To post to this group, send email to clo...@googlegroups.com<javascript:>
>> > Note that posts from new members are moderated - please be patient with 
>> your
>> > first post.
>> > To unsubscribe from this group, send email to
>> > clojure+u...@googlegroups.com <javascript:>
>> > 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+u...@googlegroups.com <javascript:>.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com<javascript:>
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com <javascript:>
>> 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+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>

-- 
-- 
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/groups/opt_out.


Reply via email to