fast-syntax-highlighting icon indicating copy to clipboard operation
fast-syntax-highlighting copied to clipboard

[bug]: make install is terribly slow to type when building wine

Open lilydjwg opened this issue 1 year ago • 2 comments

Describe the bug

The wine project has generated a 239294-line Makefile. When I try to type make install, the install part never appears and zsh is stuck with about 50% CPU. Ctrl-C can't interrupt it.

Steps to reproduce

  1. get the source of wine
  2. run ./configure & make
  3. try to type make install

Expected behavior

Well, I know that file is pretty big! But at least I should be able to interrupt fast-syntax-highlighting and continue with it.

Screenshots and recordings

No response

Operating System & Version

linux-gnu | pc | x86_64 | x86_64 | x86_64 unknown

Zsh version

zsh 5.9 (x86_64-pc-linux-gnu)

Terminal emulator

tmux-256color

If using WSL on Windows, which version of WSL

None

Additional context

No response

lilydjwg avatar Sep 27 '24 12:09 lilydjwg

same issue, it takes forever for big makefiles or makefile based build systems

HearseDev avatar Jun 29 '25 05:06 HearseDev

Could some sort of timeout be implemented so that if higlighting takes longer than x ms it is discarded? This would force highlights to either be fast or discarded. Id much rather have worse highlights than an unresponsive shell.

saygo-png avatar Nov 05 '25 10:11 saygo-png