tpope / vim-classpath

classpath.vim: Set 'path' from the Java class path
111 stars 14 forks source link

gvim hangs #2

Closed noahlz closed 11 years ago

noahlz commented 11 years ago

Sometimes, when opening a clojure file, gvim hangs forever waiting for a response from this plugin.

Using strace I can see that gvim is stuck on wait4 for a specific pid. The process is definitely lein classpath:

noahlz   13643 13630  0 23:50 ?        00:00:00 bash /home/noahlz/bin/drip -client -Xbootclasspath/a:/home/noahlz/.lein/self-installs/leiningen-2.1.2-standalone.jar -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dfile.encoding=UTF-8 -Dmaven.wagon.http.ssl.easy=false -Dleiningen.original.pwd=/home/noahlz/projects/fireplace-nyc -Dleiningen.script=/home/noahlz/bin/../java/leiningen/lein -classpath :/home/noahlz/.lein/self-installs/leiningen-2.1.2-standalone.jar clojure.main -m leiningen.core.main classpath

When I kill the process, the following displays in vim:

Couldn't determine class path.
/home/noahlz/bin/lein: line 313: 13643 Terminated              "$LEIN_JAVA_CMD" -client "${BOOTCL
ASSPATH[@]}" $LEIN_JVM_OPTS -Dfile.encoding=UTF-8 -Dmaven.wagon.http.ssl.easy=false -Dleiningen.o
riginal.pwd="$ORIGINAL_PWD" -Dleiningen.script="$SCRIPT" -classpath "$CLASSPATH" clojure.main -m
leiningen.core.main "$@"     

This is the gvim/vim that comes with Ubuntu 12.04. I launch gvim from tmux so I can benefit from vim-dispatch.

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May  4 2012 04:22:36)
Included patches: 1-429
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver
+clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +conceal +cryptv +cscope
+cursorbind +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval
+ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +fork()
+gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak
+lispindent +listcmds +localmap +lua +menu +mksession +modify_fname +mouse +mouseshape
+mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +mouse_urxvt
+multi_byte +multi_lang -mzscheme +netbeans_intg +path_extra +perl +persistent_undo +postscript
+printer +profile +python -python3 +quickfix +reltime +rightleft +ruby +scrollbind +signs
+smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static
-tag_any_white +tcl +terminfo +termresponse +textobjects +title +toolbar +user_commands
+vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows
+writebackup +X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save   
tpope commented 11 years ago

Are your sure it's hung, or is it just slow? First time can take a while as it downloads dependencies.

noahlz commented 11 years ago

It was probably downloading dependencies, or something. Now it seems to be fine. I have a crappy laptop, which probably doesn't help matters. Will re-open if it happens again consistently.