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

Ctrl-C not passed correctly to Windows executable. #1317

Closed
1 task done
alexander-koerschgen opened this issue Oct 9, 2017 · 3 comments
Closed
1 task done

Ctrl-C not passed correctly to Windows executable. #1317

alexander-koerschgen opened this issue Oct 9, 2017 · 3 comments

Comments

@alexander-koerschgen
Copy link

alexander-koerschgen commented Oct 9, 2017

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.14.1.windows.1
built from commit: 82d9b3f3b2407b52251620597d4b14933685459d
sizeof-long: 4
machine: x86

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 6.1.7601]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
$ cat /etc/install-options.txt

Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: LFOnly
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

Windows Installation of TeXLive present.
$ pdflatex -v
pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/W32TeX)
[...]

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Git bash (as shipped with Git for Windows)

In a directory containing a LaTeX document,
$ latexmk -pvc
Then hit Ctrl-C to stop PVC ("preview continously") mode.
  • What did you expect to occur after running these commands?

The message "Latexmk: User typed ctrl/C or ctrl/break. I'll finish." should appear on the terminal, indicating that latexmk was able to capture the Ctrl-C. Afterwards, there should be no processes related to latexmk left. This is the intended behavior that occurs on Linux and on Windows using a Cmd, Cygwin, or MinGW shell.

  • What actually happened instead?

There is no message on the terminal which returns to the usual prompt. However, a perl.exe process, which is related to latexmk, remains running and watches for changes in the LaTeX project.

  • Investigation so far:

Latexmk.exe calls .../texlive/2017/tlpkg/tlperl/bin/perl.exe to run a script called latexmk.pl. This version of perl reports
"This is perl 5, version 24, subversion 1 (v5.24.1) built for MSWin32-x86-multi-thread"
If one uses the perl executable that comes with Git bash (/usr/bin/perl) to run latexmk.pl, the problem does not occur.

In conclusion, there must be a problem in Git bash with passing Ctrl-C to the Windows executable .../texlive/2017/tlpkg/tlperl/bin/perl.exe. I'd like to stress that this does not occur in a MinGW shell, which seems to be similar to Git bash, although I do not understand the details.

@dscho
Copy link
Member

dscho commented Oct 9, 2017

There are several still open tickets about this issue.

@dscho dscho added the duplicate label Oct 9, 2017
@michaelblyons
Copy link

Alexander, have you tried this since 2.16.0(2)? I had similar issues until that release.

@alexander-koerschgen
Copy link
Author

Thank you for bringing this up, Michael. I just ran a few tests on version 2.16.1 and the issue seems to be fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants