Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to read temp file under Windows #5

Closed
elemel21 opened this issue Jun 25, 2013 · 2 comments
Closed

Failed to read temp file under Windows #5

elemel21 opened this issue Jun 25, 2013 · 2 comments

Comments

@elemel21
Copy link

When I start gvim on Windows 7 I get an ugly warning:

vim-misc 1.8.1: Failed to read temporary file (C:\Users..\Local\Temp\VIAFE50.tmp) with standard output of external command:
Vim(return):E484: Can't open file C:\Users..\Local\Temp\VIAFE50.tmp! (external command: uname).

Could you add an option to switch this file creation and check off or at least setting a path to the temp file?

@HerrBvomSee
Copy link

Narrowed down it results is these lines:

  let result['stdout'] = s:readfile(tempout, 'standard output', a:options['command'])
  let result['stderr'] = s:readfile(temperr, 'standard error', a:options['command'])

where this error is caught:

  call xolox#misc#msg#warn("vim-misc %s: Failed to read temporary file (%s) with %s of external command: %s! (external command: %s)", g:xolox#misc#version, a:fname, a:label, v:exception, a:cmd)

@xolox
Copy link
Owner

xolox commented Jun 25, 2013

In xolox/vim-easytags#58 I was working on uncovering a serious bug in external command execution on Windows. During my analysis I added the warning message; the fact that the message was printed only confirms the fact that the bug existed. However that bug should be squashed in vim-misc 1.8.3 which I just released. Thanks for the feedback and happy Vimming!

@xolox xolox closed this as completed Jun 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants