Hi. I don't know much about errorformats in vim yet, 
I didn't manage to match these errors
but I get a crash ;)
It doesn't crash when removing the none error marker lines.
Can you help me with finding a errorformat string ?
Or should I write another parser to remove the other lines (grep, ..) ?

Execute this command
set errorformat=%f\\[%l\\,%c\\]%m
and 
:cfile 
=======================
[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO]    task-segment: [package]
[INFO] 
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: 
http://repo1.maven.org/maven2/javax/persistence/ejb/3.0-public-draft-20060502/ejb-3.0-public-draft-20060502.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[INFO] [compiler:compile]
Compiling 2 source files to 
/home/marc/workspace/simpleHibernateTest/target/classes
[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
----------------------------------------------------------------------------
[INFO] Compilation failure

/home/marc/workspace/simpleHibernateTest/src/main/java/myApps/Obj.java:[5,9] 
cannot find symbol
symbol  : method name()
location: @interface org.hibernate.annotations.Entity

/home/marc/workspace/simpleHibernateTest/src/main/java/myApps/Obj.java:[13,3] 
cannot find symbol
symbol  : class NotNull
location: class myApps.Obj

/home/marc/workspace/simpleHibernateTest/src/main/java/myApps/Obj.java:[14,3] 
cannot find symbol
symbol  : class Id
location: class myApps.Obj

/home/marc/workspace/simpleHibernateTest/src/main/java/myApps/Obj.java:[23,3] 
cannot find symbol
symbol  : class Length
location: class myApps.Obj

/home/marc/workspace/simpleHibernateTest/src/main/java/myApps/App.java:[28,28] 
cannot find symbol
symbol  : method buildSessionFactory()
location: class myApps.App


[INFO] 
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Sun Jun 11 18:05:30 CEST 2006
[INFO] Final Memory: 3M/10M
[INFO] 
----------------------------------------------------------------------------
============================================================================


My vim version :
:version
VIM - Vi IMproved 7.0 (2006 May 7, compiled Jun  2 2006 17:41:21)
Included patches: 1-10
Modified by Gentoo-7.0-r2
Compiled by root@(none)
Huge version with GTK2 GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent 
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
+cryptv -cscope +cursorshape +dialog_con_gui
+diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi 
+file_in_path +find_in_path +folding -footer +fork() +gettext -hangul_input 
+iconv +insert_expand +jumplist +keymap +langmap
 +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession 
+modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm 
+mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme
+netbeans_intg -osfiletype +path_extra +perl +postscript +printer +profile 
+python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent 
-sniff +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
   system vimrc file: "/etc/vim/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/etc/vim/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: i686-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H 
-DFEAT_GUI_GTK  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I
/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -O2 -march=pentium-m 
-mtune=pentium-m -pipe -ftracer    -pipe -Wdeclaration-after-statement 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/pe
rl5/5.8.8/i686-linux/CORE  -I/usr/include/python2.4 -pthread
Linking: i686-pc-linux-gnu-gcc   -rdynamic   -L/usr/local/lib -o gvim   
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
  -lXt -lncurses -lgpm   -rdynamic  -L/usr/local/lib 
/usr/lib/perl5/5.8.8/i686-linux/auto/DynaLoader/DynaLoader.a 
-L/usr/lib/perl5/5.8.8/i686-linux/CORE -lperl -lutil -lc 
-L/usr/lib/python2.4/config -lpy
thon2.4 -lpthread -lutil -lm -Xlinker -export-dynamic


Marc

Reply via email to