mohkale / flymake-collection

Collection of checkers for flymake
MIT License
68 stars 13 forks source link

Freeze while checking #25

Open articuluxe opened 1 year ago

articuluxe commented 1 year ago

After the recent change to flymake-collection-define.el, when I open a file that had an error, emacs apparently froze. It did not recover after waiting 30 min. Repeated invocations of "C-g" did ultimately stop the process and return control to the user.

I tried to capture a stack trace, which wasn't perfectly clear but did show flymake_diag_region_0.

When I reverted change 3e1f447, the behavior stopped.

I know the report isn't perfect, but I hope it can help. It was easily reproducible until I reverted just that change.

Checkers: This occurred to me in a json file (with flymake-collection-jq) as well as a c++ file (with flymake-collection-clang). Emacs: 28.2 OS: Mac OS Ventura 13.3.1 (a)

mohkale commented 1 year ago

@articuluxe

Ah, yes, I've encountered this as well. I had thought it was a bug in the json tree sitter implementation but the fault does seem to be in flymake-collection-jq. I'll revert the change for now and look into why it's behaving like this later. Thanks for reporting.