I noticed that if I launch MacVim using inverse search from skim on a Mac when there was no MacVim running, I can not do compilation in this newly launched MacVim, and get errors as follows,
Traceback (most recent call last):
File "/Users/Jiang/.vim/bundle/atp-vim/ftplugin/ATP_files/compile.py", line 461, in <module>
File "/Users/Jiang/.vim/bundle/atp-vim/ftplugin/ATP_files/compile.py", line 221, in latex_progress_bar
child = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1228, in _execute_child
OSError: [Errno 2] No such file or directory
If I first run MacVim, and then do the inverse search to open the MacVim window, the subsequent compilation works fine.
I also did the following test. The settings for inverse search in Skim is like,
arguments: --remote-silent +":%line" "%file"
so I try to launch MacVim using exactly the same command as above from Terminal (with no MacVim running at the moment). However, I did not encounter the errors mentioned above, which confuses me.