Skip to content

ocamllsp leaves an idle process running after editor is closed #694

@anuragsoni

Description

@anuragsoni

Operating system: macOS 12.3.1
ocamllsp version: 1.11.4
editor: both vscode and neovim

I am not sure about older releases of ocamllsp, but in the 1.11.x series I notice that an idle ocamllsp process is left running after I close my editor (i've tried both vscode and neovim). Over time the number of ocamllsp processes keep accumulating.

~ ❯❯❯ ps aux | rg ocamllsp
anuragsoni       12941   0.6  0.0 407969840    528 s000  R+    4:38PM   0:00.00 rg ocamllsp
anuragsoni       12191   0.0  0.3 408792656  46160   ??  S     4:29PM   0:00.23 ocamllsp
anuragsoni       12111   0.0  0.3 408792656  46864   ??  S     4:29PM   0:00.23 ocamllsp
anuragsoni       12031   0.0  0.3 408923728  46288   ??  S     4:29PM   0:00.23 ocamllsp
anuragsoni       11951   0.0  0.3 409064016  46992   ??  S     4:29PM   0:00.23 ocamllsp
anuragsoni       11650   0.0  0.3 408775248  45840   ??  S     4:27PM   0:00.25 ocamllsp
anuragsoni       11549   0.0  0.3 408923728  46400   ??  S     4:27PM   0:00.25 ocamllsp
anuragsoni       11443   0.0  0.3 408923728  46624   ??  S     4:27PM   0:00.25 ocamllsp

This is what I can see via ps after working on a few different OCaml files and after closing all editors. All processes had a state code of S

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions