Hello,

I know that the F9 issue has been discussed couple of times in the
list, but unfortunately nobody has given a decisive reply to resolve
the problem.

I had to re-format my computer and I lost all my settings. Now, I have
installed gVim, Vim-LaTeX, python 2.5 and grep 2.51a on my Win XP
machine. I can run both grep and python from command prompt and grep
supports -H switch.

When I try to insert a \ref using F9 there are two different scenarios:

1. The tex file is multi-file project in a folder that has spaces in
its name: In this case pressing F9 gives me the following results in
the ___OUTLINE___ window:

Traceback (most recent call last):
  File "E:\Vim\vimfiles\ftplugin\latex-suite\outline.py", line 183, in <module>
    print main(sys.argv[1], prefix)
  File "E:\Vim\vimfiles\ftplugin\latex-suite\outline.py", line 170, in main
    contents = getFileContents(root, ext)
  File "E:\Vim\vimfiles\ftplugin\latex-suite\outline.py", line 23, in
getFileContents
    contents = '\n'.join(open(fname).read().splitlines())
IOError: [Errno 2] No such file or directory: 'Documents'

2. When I have run the same multi-file project from a location which
doesn't have any spaces in its name, I still get an error message and
the __OUTLINE__ can't be generated. The messages are:

Traceback (most recent call last):
  File "E:\Vim\vimfiles\ftplugin\latex-suite\outline.py", line 183, in <module>
    print main(sys.argv[1], prefix)
  File "E:\Vim\vimfiles\ftplugin\latex-suite\outline.py", line 170, in main
    contents = getFileContents(root, ext)
  File "E:\Vim\vimfiles\ftplugin\latex-suite\outline.py", line 27, in
getFileContents
    contents = re.sub(pat, lambda input: getFileContents(input, ext), contents)
  File "E:\Python25\lib\re.py", line 142, in sub
    return _compile(pattern, 0).sub(repl, string, count)
  File "E:\Vim\vimfiles\ftplugin\latex-suite\outline.py", line 27, in <lambda>
    contents = re.sub(pat, lambda input: getFileContents(input, ext), contents)
  File "E:\Vim\vimfiles\ftplugin\latex-suite\outline.py", line 23, in
getFileContents
    contents = '\n'.join(open(fname).read().splitlines())
IOError: [Errno 2] No such file or directory:
'appendices/simplification/simplification.tex'

It seems that the error is caused by the outline.py script. I don't
know any python, so I can't understand what that script has inside.
Python experts and developers, please help. I use \ref and \cite very
often in my documents and this F9 is really useful.

Best Regards,

Hooman

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to