Errors processing clojure.vim

0 views
Skip to first unread message

Mike Mazur

unread,
Apr 2, 2010, 3:14:29 AM4/2/10
to vimcl...@googlegroups.com
Hi,

As I work on Clojure code in Vim and VimClojure, I often encounter
stack traces when trying to evaluate forms with <LocalLeader>et. The
error looks something like this:

Error detected while processing function vimclojure#ExecuteNailWithInput:
line 19:
Couldn't execute Nail! {"Func" : [... long list of methods ...]
Error detected while processing /home/mike/.vim/syntax/clojure.vim:
line 130:
E171: Missing :endif
Error detected while processing function <SNR>4_SynSet:
line 22:
E170: Missing :endfor
Press ENTER or type command to continue

Whenever I encounter something like this, I'll try again and issue a
few :e commands, or scroll to another form and evaluate that before I
can finally evaluate the form I initially wanted. Is this a known
issue? Can something be done about it?

Thanks!
Mike

Meikel Brandmeyer

unread,
Apr 4, 2010, 6:01:42 PM4/4/10
to vimcl...@googlegroups.com
Hi,

On Fri, Apr 02, 2010 at 03:14:29PM +0800, Mike Mazur wrote:

> As I work on Clojure code in Vim and VimClojure, I often encounter
> stack traces when trying to evaluate forms with <LocalLeader>et. The
> error looks something like this:

This might happen for various reasons.

> Error detected while processing function vimclojure#ExecuteNailWithInput:
> line 19:
> Couldn't execute Nail! {"Func" : [... long list of methods ...]

But this is a new one. It seems that dynamic syntax highlighting is the
culprit. However the reasons why things break is rather dark to me. The
{ "Func" : … } stuff is basically the right output. But the ng script
seems to return an error.

Which VC version do you use? Do you have a lot of toplevel definitions?
A lot of requires/uses, etc.?

> Whenever I encounter something like this, I'll try again and issue a
> few :e commands, or scroll to another form and evaluate that before I
> can finally evaluate the form I initially wanted. Is this a known
> issue? Can something be done about it?

This failure is new to me.

Sincerely
Meikel

Reply all
Reply to author
Forward
0 new messages