I am happy to let you know I have published a new Leiningen plug-in for
VimClojure support.
I know there are already a number of VimClojure plug-ins out there, some
of them called lein-nailgun and others called lein-vimclojure. However,
most of them tend to be fairly minimal. In particular, most of them
lacked two key features:
1. Support for both Leiningen 1.x and Leiningen 2.x projects, and
2. The ability to run a standalone REPL in the same process as the
server.
I hope that this is will be useful for other VimClojure users. It's
available from Clojars as [com.sattvik/lein-vimclojure "0.9.0"]. Please
check out the README from GitHub for more detailed instructions on
configuration options at <https://github.com/sattvik/lein-vimclojure>.
Sincerely,
Daniel
Jim
Thanks for your thoughts. After considering your points, I've decided
to rename the plug-in 'lein-tarsier', after the animal that appears on
the cover of 'Learning the vi and Vim Editors'.
As a result, I have bumped the revision number and created a new GitHub
repository. You can now get it using [lein-tarsier "0.9.1"] and the
repository is at <https://github.com/sattvik/lein-tarsier>.
Sincerely,
Daniel
> --
> 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
> 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
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
Yes, there is. I have not forgotten about the REPL, and there are many
updates that I would like to apply to it. For example, in addition to
loading scripts, there is converting the core of the REPL to an Android
service (so it won't get killed off), and perhaps saving the output of
the REPL session.
The main problem for me, unfortunately, is a lack of time. I have way
too many projects going on at the moment.
In the meantime, I have written about a way to load arbitrary scripts
into the REPL, but that's not quite the same thng as being able to
support libraries. If you haven't seen it, it's available at
<http://www.deepbluelambda.org/programs/clojure-repl/clojure-repl-tip--loading-scripts>.
> also i run a tiny genetic algorithm on it only showed all the output
> at the end of the simulation rather than going one step at a time. is
> this expected?
I think so. The processing all occurs in a background thread and the
output from the REPL is dumped into a string. It's a lot trickier to
show output as it is generated, as that would require not just getting
the result of the input, but also coordinating what output has been
produced and what has been consumed.
Sincerely,
Daniel
Thanks for your thoughts. After considering your points, I've decided
to rename the plug-in 'lein-tarsier', after the animal that appears on
the cover of 'Learning the vi and Vim Editors'.
$ lein vimclojure
Starting VimClojure server on 127.0.0.1, port 2113
Happy hacking!
(now I open http://127.0.0.1:2113 in my browser)
java.lang.OutOfMemoryError: Java heap space
at vimclojure.nailgun.NGSession.run(NGSession.java:199)
java.io.EOFException
at java.io.DataInputStream.readFully(DataInputStream.java:197)
at java.io.DataInputStream.readFully(DataInputStream.java:169)
at vimclojure.nailgun.NGSession.run(NGSession.java:195)
Any idea what am I doing wrong? I use Leiningen 1.7.1
Bost
Bost
Well, the VimClojure server is not a web server, and doesn't speak HTTP.
Instead, it uses the 'Nailgun' protocol. The general use case for it is
in conjuction with the VimClojure Vim plug-in
<http://www.vim.org/scripts/script.php?script_id=2501>. Using the two
together allows Vim to offer some nice features for Clojure editing,
such as completion ("intellisense"), docstring lookup, etc.
I hope this helps.
Sincerely,
Daniel