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

Unable to use LatexmkStop to terminate latexmk #236

Open
dnivra opened this issue Feb 12, 2015 · 2 comments
Open

Unable to use LatexmkStop to terminate latexmk #236

dnivra opened this issue Feb 12, 2015 · 2 comments

Comments

@dnivra
Copy link

dnivra commented Feb 12, 2015

I'm running vim-gtk 7.4.52 on Ubuntu 14.04.1 with zsh as shell. When I run :LatexmkStop, the latexmk process does not get killed. I check the PIDs for latexmk using g:latexmk_running_pids and ps from the shell and was surprised to find they differ(always by 2 everytime I checked):

:echo(g:latexmk_running_pids)
{'/path/to/main': 7826}

$ ps -ao pid,cmd | grep latexmk | cut -d ' ' -f 1
7828

I checked the value of argument passed to function LatexmkSetPID and it says 7826 so I suppose the wrong argument is passed to it. Unfortunately, I could figure out where or how LatexmkSetPID is invoked(I am not familiar with vimscript) and thus couldn't debug further. If I can provide any more information to fix this issue, please do let me know.

@sfpeacock
Copy link

I have the same issue, the pgid seems to be set correctly when using gvim but not with vim.

With gvim:
g:latexmk_running_pids {'/mnt/data/Documents/notes/oddbits/notes': 3070}

ps -x -o pgid,pid,cmd | fgrep latexmk | cut -f1-8 -d' '
3070 3071 /bin/bash -c
3070 3073 perl /usr/local/texlive/2016/bin/x86_64-linux/latexmk

With vim:
g:latexmk_running_pids {'/mnt/data/Documents/notes/oddbits/notes': 3116}

3111 3117 /bin/bash -c
3111 3121 perl /usr/local/texlive/2016/bin/x86_64-linux/latexmk

The actual pgid seems to be consistently 5 lower than the value stored in g:latexmk_running_pids.

@L4in
Copy link

L4in commented Sep 19, 2017

I am having the same issue LatexmkStop failing to terminate. I'm currently using nvim but the issue was present when I was still using vim.

However, the 'how' is different, as

:echo(g:latexmk_running_pids)
{}

and

ps -ao pid,cmd | grep latexmk | cut -d ' ' -f 1
32458

The error definitively lies within LatexmkSetPID. I know nothing of vimscript but I'll attempt to see what I can find.

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