Monday, April 15, 2013

Re: Rgrep not working on vim 64-bit, win7

On Monday, April 15, 2013 3:55:14 AM UTC-5, Darek wrote:
> The problem is when I use a
>
> 64-bit build of vim (I need it to have YouCompleteMe running):
>
> Error detected while processing function
>
> <SNR>61_RunGrepRecursive..<SNR>61_RunGrepCmd:
>
> line 1:
>
> E484: Can't open file C:\Users\<MyUser>\AppData\Local\Temp\VIo2E04.tmp
>
>
>
> The temporary file is not there, the location is accessible (since it
>
> works for 32-bit version).
>

Probably creating the temp file is failing, not reading it. Since this works in 32-bit Vim but not 64-bit Vim, I suspect it's a path problem. Probably it is related to the filesystem redirection/WOW64 feature in Windows. 64-bit applications see a completely different folder for C:\Windows\System32 and some other folders than 32-bit applications, so if your external command depends on anything in these folders it will fail on one but not the other.

>
> I have did some debugging and looks like the error appears on the
>
> system() call in grep.vim:407, when I copy-n-paste system()'s argument
>
> to cmd.exe - it works as expected.
>

What command is it?

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