Gorilla issue with recent builds?

3 views
Skip to first unread message

Mark Feeney

unread,
Jan 21, 2009, 11:25:59 AM1/21/09
to Clojure
Hi all,

Anyone else having issues with Gorilla with "recent" SVN builds of
clojure and clojure-contrib? What I'm seeing is that the main
commands (es, et, eb, ef, etc.) work as usual, but the in-Vim Repl,
doesn't seem to display any evaluation output. No errors on stdout of
the gorilla server. Experiments suggest that expressions entered in
the Vim Repl are actually sent and evaluated on the server; there's
just no output returned.

Unfortunately I'm not yet sure when this started. Thought I'd ask
around before going through a bunch of revisions.

Thanks,


Mark.

Meikel Brandmeyer

unread,
Jan 21, 2009, 3:01:23 PM1/21/09
to clo...@googlegroups.com
Hi,

There was a breakage some time ago, which made it necessary
to release a bug fix release. The revisions are named on the
vim.org page, where you can download Gorilla. Please check
there if this solves your problem. If not, please send me the revisions
of clojure and clojure-contrib and the version of Gorilla you are using.

http://www.vim.org/scripts/script.php?script_id=2483

Thanks.

Sincerely
Meikel

Mark Volkmann

unread,
Jan 21, 2009, 3:44:54 PM1/21/09
to clo...@googlegroups.com
What is the difference between vimclojure and Gorilla?

--
R. Mark Volkmann
Object Computing, Inc.

Meikel Brandmeyer

unread,
Jan 21, 2009, 4:06:48 PM1/21/09
to clo...@googlegroups.com
Hi,

Am 21.01.2009 um 21:44 schrieb Mark Volkmann:

> What is the difference between vimclojure and Gorilla?

VimClojure provides static things like syntax highlighting,
indenting and static code completion as supported by
Vim (<C-N>). It's purely Vim and needs nothing else.

Gorilla supplements VimClojure with dynamic features,
similar to SLIME for emacs:
- send expressions to a Clojure server
- lookup docstrings, javadoc, Chouser's show...
- expand macros
- complete static members of Classes (<- unique feature AFAIK :))
- provide a Repl inside a Vim buffer

It currently needs Ruby and isn't very stable. I'm working
on removing the Ruby dependency though. VimClojure
is a prerequisite for Gorilla, since the latter depends on the
syntax highlighting of the former.

Sincerely
Meikel

Mark Volkmann

unread,
Jan 21, 2009, 4:13:42 PM1/21/09
to clo...@googlegroups.com

Thanks for explaining that! I'm currently using VimClojure and like it
a lot! I guess I'll wait until you finish removing the Ruby dependency
to upgrade to Gorilla. I have nothing against Ruby. In fact I'm coding
in it right now. Unfortunately I found it difficult to add Ruby
support to Vim.

Mark Feeney

unread,
Jan 22, 2009, 8:10:54 AM1/22/09
to Clojure
Hi Meikel,

On Jan 21, 3:01 pm, Meikel Brandmeyer <m...@kotka.de> wrote:
> There was a breakage some time ago, which made it necessary
> to release a bug fix release. The revisions are named on the
> vim.org page, where you can download Gorilla. Please check
> there if this solves your problem. If not, please send me the revisions
> of clojure and clojure-contrib and the version of Gorilla you are using.

I have the 1.1.1 version of Gorilla, yes.

I ran some tests and I've determined when it breaks:

clojure rev, clojure-contrib rev, vim repl working
1214, 405, yes
1215, 405, no

So some change in Clojure from 1214 -> 1215 causes the Vim Repl to
stop working. The clojure-contrib version appears not to be a
factor. I haven't had a chance to dig deeper, but this additional
info may shed a bit more light...

Thanks,


Mark.

MattH

unread,
Mar 1, 2009, 12:53:46 AM3/1/09
to Clojure
I had the same problem with the Vim Repl, but rebuilding Gorilla fixed
the problem.

Build instructions are in the README, but to paraphase:
$ cd /path/to/gorilla-1.1.1
$ vi local.properties
$ cat local.properties
clojure.jar=/path/to/clojure.jar
clojure-contrib.jar=/path/to/clojure-contrib.jar
$ ant clean jar
(re-start Gorilla)

Now pressing Enter at the Vim Repl sends to the socket Repl, and the
value is returned.

Note that control-Enter doesn't evaluate the input. This seems to be
the reverse of what the screen-cast says (where control-Enter
evaluates and Enter does not), but this behaviour seems better.

Environment: clojure r1312, contrib r1312, gorilla 1.1.1, MacVim 7.2,
Mac OS X 10.5.6

Thanks for a great plugin Meikel!
-Matt

MattH

unread,
Mar 1, 2009, 12:59:55 AM3/1/09
to Clojure
> Environment: ... contrib r1312 ...

Sorry, that should be clojure-contrib r545 (the latest revision)
Reply all
Reply to author
Forward
0 new messages