Sunday, November 4, 2012

Quickfix - use Vim's "path" variable

Vim has a path variable that it uses when you
press "gf" to jump to a file. Unfortunately, the
Quickfix window doesn't do that.

I'm trying to use the output of junit tests as the
input to Quickfix. Unfortunately, I only have the filename of
the java test that failed, not the absolute path.

So, my errors file only has this:

TestFoo.java:19:junit.framework.ComparisonFailure: null
expected:<[b]ar> but was:<[B]ar>
TestFoo.java:24:junit.framework.ComparisonFailure: null expected:<baz>
but was:<null>

And when I use :cn or :cp to jump to the errors, Vim creates a new
"TestFoo.java" file
instead of jumping to src/TestFoo.java where it actually lives..

Is there a way to get Vim's quick fix window to use Vim's "path" variable,
or am I forced to put the path of TestFoo.java in the errors file?

Thanks,
--Nate

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment