I'm not really a vim user, but I just tried this out as I was curious to 
see what vimclojure was like.  It sounds like the nailgun server can't 
find clojure.jar, try checking the classpath you're using to launch the 
server.  I get the exact same error if I set a bad classpath on purpose.

eyeris wrote:
> After further investigation, I've determined that it is silently
> catching an exception in autoload/vimclojure., vim in
> vimclojure#InitBuffer() around line 668.
> Commenting out the try/catch/endtry lines gives me the error:
> 
> "~/devel/xlsmerge/src/xlsmerge/gui.clj" 186L, 6430C
> Error detected while processing function
> vimclojure#InitBuffer..vimclojure#ExecuteNailWithInput:
> line   19:
> Couldn't execute Nail! java.lang.NoClassDefFoundError: clojure/lang/
> IFn at java.lang.Class.forName0(Native Method) at
> java.lang.Class.forName(Class.java:186) at
> com.martiansoftware.nailgun.NGSession.run(Unknown Source)
> Error detected while processing function vimclojure#InitBuffer:
> line    9:
> E171: Missing :endif
> Error detected while processing /home/dvogel/.vim/syntax/clojure.vim:
> line   19:
> E171: Missing :endif
> Error detected while processing function <SNR>5_SynSet:
> line   22:
> E170: Missing :endfor
> 
> Running the command manually gives a more readable error:
> 
> ~/devel/xlsmerge$ ~/devel/clj/vimclojure/ng
> de.kotka.vimclojure.nails.NamespaceOfFile ~/devel/xlsmerge/src/
> xlsmerge/gui.clj
> java.lang.NoClassDefFoundError: clojure/lang/IFn
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:186)
>       at com.martiansoftware.nailgun.NGSession.run(Unknown Source)
> Caused by: java.lang.ClassNotFoundException: clojure.lang.IFn
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
>       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
>       ... 3 more
> 
> 
> 
> 
> 
> On Oct 19, 10:42 pm, eyeris <drewpvo...@gmail.com> wrote:
>> I've installed the latest VimClojure. I've added to my .vimrc:
>>
>> let g:clj_want_gorilla = 1
>> let vimclojure#NailgunClient = ".../path/to/ng"
>> au BufRead,Bufnewfile *.clj setfiletype clojure
>> au BufRead,Bufnewfile *.clj setl lisp
>>
>> The ng client is executable. Yet when I open a .clj file, echo
>> b:vimclojure_namespace I get two errors:
>>
>> E121: Undefined variable: b:vimclojure_namespace
>> E15: Invalid expression: b:vimclojure_namespace
>>
>> VimClojure shouldn't be so hard to get working. This is my third time
>> setting it up (once on Windows, once on two versions of Debian) and it
>> never works according to the directions.
> > 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to