Running the task on Windows is failing because npx does not exist, it's actually npx.cmd:
poetry run poe check-spelling
# ..snip..
FileNotFoundError: [WinError 2] The system cannot find the file specified
The problem seems to be that the fix for #119 was done in PoeExecutor.execute, however this isn't called by the poetry executor since it calls PoeExecutor._execute_cmd() directly, bypassing the fix. I've confirmed that this PR works for my case.
This PR addresses #119 for
cmd
tasks that use the poetry executor. I found that, on Windows, a task like the following wasn't working:Running the task on Windows is failing because
npx
does not exist, it's actuallynpx.cmd
:The problem seems to be that the fix for #119 was done in
PoeExecutor.execute
, however this isn't called by the poetry executor since it callsPoeExecutor._execute_cmd()
directly, bypassing the fix. I've confirmed that this PR works for my case.