Plugins cannot respond to TERMINATE
event on non-Windows systems after poetry run
#8092
Open
4 tasks done
Labels
area/plugin-api
Related to plugins/plugin API
area/windows
For Windows-specific issues
kind/bug
Something isn't working as expected
status/triage
This issue needs to be triaged
-vvv
option) and have included the output below.Issue
On non-Windows systems,
poetry run
usesos.execvpe
:poetry/src/poetry/utils/env/generic_env.py
Lines 90 to 91 in 6e94298
Because of how this function replaces the current process, a plugin cannot respond to the
TERMINATE
event.atexit
hooks are also not called.Could
subprocess.Popen
simply be used for all systems instead of Windows only?My use case is that my plugin makes some temporary modifications to set the version number, and it needs to revert them when the command is done. Right now, I just have the plugin ignore
poetry run
andpoetry shell
since it can't clean up after them.The text was updated successfully, but these errors were encountered: