universal-ctags / citre

A superior code reading & auto-completion tool with pluggable backends.
GNU General Public License v3.0
320 stars 26 forks source link

"global stderr" process left for every open file #137

Closed railwaycat closed 1 year ago

railwaycat commented 1 year ago

Hi, thank you for the recent release!

After upgraded to the recent release, I started to notice a weird behavior: It looks like citre will left a "global stderr" process for every open file and they won't be cleanup automatically, no matter citre-mode is on or off for that buffer.

My reproduce steps:

  1. I start with an empty Emacs config file.
  2. git clone citre repo to `~/.emacs.d/citre"
  3. All my configuration is below:
    (add-to-list 'load-path "~/.emacs.d/citre")
    (require 'citre)
    (require 'citre-config)
  4. open several regular files.
  5. Exit emacs, emacs will prompt Active processes exist; kill them and exit anyway? (yes or no). If I use (list-processes) , I can see a list of "global stderr" processes:
    global stderr   --      open     *global-stderr*          --           Main         (serial port ?)
    global stderr<… --      open     *global-stderr*-603055   --           Main         (serial port ?)
    global stderr<… --      open     *global-stderr*-910393   --           Main         (serial port ?)
    global stderr<… --      open     *global-stderr*-998676   --           Main         (serial port ?)
    global stderr<… --      open     *global-stderr*-347810   --           Main         (serial port ?)
  6. I didn't enable citre-mode on any of the buffers.

I'm using the Emacs 28.2 release, and verified above on both Linux (latest Arch Linux) and macOS (12.6). This behavior not shows up on emacs -q with no config.

Since for this configuration, the only thing enabled is citre, I would like to see if you have any info of this behavior?

AmaiKinono commented 1 year ago

Thanks for the report.

Should be fixed, please test.

railwaycat commented 1 year ago

Thank you! I no longer see this issue after upgrade to the latest.