On 2010-03-10, epanda wrote:
> I success to store both type of information of cppCheck by this
> command but :
> 
>       silent exe '!cppCheck ' . a:dir . ' -a --enable=all --template gcc 1>
> infos.txt 2> cppcheck.out'
>         cfile cppcheck.out
>       copen
> 
> 
> Opening report in cppcheck.out when it is finished
> progress infos.txt that I have to open asynchronously I think with
> client/server feature....
> 
> If you know how do to it quickly, I need you help
> thank you

I've been meaning to start using cppcheck, so I used this discussion
as further motivation to download and build it.  I'm doing this on a
Linux system.  Results will likely be different on Windows.

What happens if you cd to your a:dir and just execute the following?

    :!cppCheck -a --enable=all --template gcc . 2> cppcheck.out

When I do that, I see the progress report on the screen, followed by
"Press ENTER or type command to continue".  Then executing

    :cfile cppcheck.out

sends vim to the first error.

If you can get that much to work, then you can start adding the exe
and silent stuff and see what makes it stop working.  As a general
rule of debugging, you should start with the simplest example you
can think of that should work and gradually add complexity.  This
limits the number of things that can go wrong and might need to be
investigated at each step.

BTW, isn't "-a" ignored if it's followed by "--enable=", and
unnecessary if using "--enable=all"?

Regards,
Gary

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

Reply via email to