Closed LukasHebing closed 7 months ago
Hi @LukasHebing,
TLDR: prefer cmd tasks to shell tasks for portability.
Poethepoet works fine on windows with or without WSL, with one caveat explained below.
It looks like your task is failing because it's defined as a shell task, and post can't find a POSIX shell on your system. On windows this can work with WSL, or Git Bash, or anything else that puts a bash executable or similar on your path. You can also configure the shell interpreter to be pwsh or something else.
However shell tasks are only necessary if you want to use shell features or complex scripts (like control flow, inline variables or background tasks). If you're just running commands or python functions you can do with with cmd tasks or script tasks respectively which will run the task as a subprocess without involving a shell.
Adding the interpreter powershell
to the task fixed that. Thank you!
I am using
poethepoet
inside avenv
from poetry on Windows 10. After I activated the virtual environment withpoetry shell
, I can usepoe
. However, any command with poe returns the error:python --version
points to the correct executable).Is this a problem for windows systems? Can poe be used on Windows without WSL?