Vim Tips Wiki
Advertisement

Use this page to discuss script 864 864

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Comments

I love this script but when I do a build (\vb) I get the following errors in Vim:

Error detected while processing function DTEBuildSolution..<SNR>18_DTEExec:
line   13:
Trackback (most recent call last):
  File "<string>", line 1, in ?
  File "C:\Program Files\Vim\vimfiles\visual_studio\visual_studio.py", line 80, in dte_build_solution
    dte_output (vs_pid, fn_quickfix, 'Output')
  File "C:\Program Files\Vim\vimfiles\visual_studio\visual_studio.py", line 191, in dte_output
    fp_output = file (fn_output, 'w')
IOError: [Errno 2] No such file or directory: 'C:\\DOCUME~1\x0ceaves\\LOCALS~1\\Temp\\vs_output.txt'

Can someone assist here with why the file isn't getting created? I think it might be because the path isn't valid so the script might be failing to create the file in the first place and thus fails to read it. Thanks, -Frank

No idea, but in a new command prompt window enter set t to list all environment variables beginning with 't' (or 'T') and check your TEMP and TMP settings. They should be the same, and should refer to an existing directory where you have write permission (probably Full Control). Can you create the file mentioned above (after changing the double backslashes to single), i.e. not using Vim. JohnBeckett 00:36, May 26, 2010 (UTC)

Q2

I have another problem when trying to build a solution here:

Error detected while processing function DTEBuildSolution..<SNR>45_DTEExec:
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "C:\Program Files\Vim\vimfiles\plugin\visual_studio.py", line 62, in dte_build_solution
    if _dte_has_csharp_projects(dte):
  File "C:\Program Files\Vim\vimfiles\plugin\visual_studio.py", line 397, in _dte_has_csharp_projects
    if dte.CSharpProjects.Count:
  File "C:\Program Files\Python.2.4.4\Lib\site-packages\win32com\client\dynamic.py", line 512, in __getattr__
    raise AttributeError("%s.%s" % (self._username_, attr))
AttributeError: <unknown>.CSharpProjects

This can be a silly question, but I have no knowledge about Python. After commenting out the code about csharp, I can build the solution now. A greate VIM script!

Advertisement