Thursday, March 7, 2013

Re: problems setting up makeprg and makeef

On Thursday, March 7, 2013 12:51:46 PM UTC-6, Gary Johnson wrote:
> On 2013-03-07, FlashBurn wrote:
>
> > shell returned2
>
> > E303: Unable to open swap file for "and Settings\user\Projects\MyProject\trunk\src\myfile.c
>
> > "and Settings\user\Projects\MyProject\trunk\src\myfile.c,60 Error"[New DIRECTORY]
>
> >
>
> > Does anybody know what is going on and how I can fix it? Any help
>
> > is appreciated.
>
>
>
> This looks like a problem with your 'errorformat'. The compiler
>
> found an error at line 60 of myfile.c, but your 'errorformat' is
>
> incorrectly parsing that message so that Vim tries to jump to an
>
> error in a file named
>
> "and Settings\user\Projects\MyProject\trunk\src\myfile.c,60 Error".
>

I agree, but I think getting the "cd" command correct might actually fix this problem, because possibly the OP's make program will not output the full path if it's already running from a directory within that path. But that might be wishful thinking on my part.

Note that E303 can be caused on Windows 7 because Vim looks in C:\Temp and C:\TMP rather than $TEMP and $TMP for swap files by default; you can fix this by modifying your 'directory' option. But, Vim will still be looking in the wrong location for the file itself. And, Windows 7 has "C:\Users\blah" instead of "C:\Documents and Settings\blah" so it's not as likely to be the cause in this case.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: