Is it possible to run a process (specifically `Pex...
# plugins
h
Is it possible to run a process (specifically
PexProcess
) that doesn't immediately quit? I'm looking into implementing the "serve" option for `mkdocs`(link) so it needs to remain open until explicitly stopped
h
There is some precedent for this. Look at how we run the BSP server.
@fast-nail-55400 thoughts about how to generalize this so any plugin can do it?
f
This seems similar to an idea discussed previously (somewhere, I forget where) for spinning up test fixture servers (e.g., a database) while running tests.
In both cases, I imagine there needs to be some logic to keep track of the process during a Pants run (and afterward for this current idea, so probably somewhere on pantsd) so the process can be killed when necessary.
The BSP server does not seem as relevant to this idea since it completely displaces the normal Pants client when it runs.
This idea seems more like an API accessible from within regular rule logic.
h
Using
AuxiliaryGoal
actually did the trick Thanks 🙂
It might be a good idea to document this, no?
h
Probably. Docs are in the repo, if you want to take a crack at it?