2010/8/12 Nikola Knežević :
> Hi,
>
> I recently switched to pathogen-style configuration, which meant updating
> latex-suite, and my configuration files. Now, I'm having problem with MacVim
> in GUI mode (command line version of vim works without problems).
>
> Whenever I try to open .tex file from command line ('mvim paper.tex'), MacVim
> window opens, completely empty. It seems as it hangs, but there is no
> increased CPU usage. I can kill the application with Cmd+Q, but Vim process
> remains in memory:
>
> $ ps aux|grep Vim
> knezevic 6481 0.4 0.8 2632732 16380 p0 Ss+ 1:09AM 0:01.55
> /Users/knezevic/Applications/MacVim.app/Contents/MacOS/Vim -f -g paper.tex
>
> If I start mvim without any configuration, all is fine. If I skip just
> .vimrc, again, all is fine.
>
> I traced the problem down to the combination of VCScommand and Latex-Suite.
> The problem occurs whenever this line is present, and I'm opening .tex file
> from command line:
> let VCSCommandEnableBufferSetup=1
>
> Then, I see this process lingering around:
> /bin/zsh -c ('git' rev-parse --is-inside-work-tree)
> >/var/folders/aZ/aZYa0SaaGy0cuabgeZbImU+-6cg/-Tmp-/vNVlVet/3 2>&1
>
> The last test I tried is to open file directly from the command line, but
> from some other git repository. When I try to open README.txt from macvim's
> repository, all is fine. When I copy my *.tex files to macvim's repository,
> and try to open them, it hangs the usual way (empty window, doesn't accept
> input, no increased CPU usage).
>
> Has anyone experienced something similar? I'm using the latest versions of
> MacVim, Latex-suite and VCSCommand.
This looks like the same problem as [1] (you are using zsh, right?).
You should be able to work around it by passing the "-f" flag (please
confirm), or by not using zsh. (No, I don't think they are viable
alternatives, but it's all I have at the moment.)
I debugged the problem and found that it is caused by calling setsid()
when forking but have no idea why this is [2]. It is called from
macos_fork() inside src/os_macosx.m in case you feel like debugging
the issue. I'd appreciate the help -- I'm not getting anywhere with
it.
Björn
[1] http://code.google.com/p/macvim/issues/detail?id=271
[2] http://groups.google.com/group/vim_mac/browse_thread/thread/f1b13ba4b11c6eb7
--
You received this message from the "vim_mac" 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