-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poe/Poetry issue on Windows #23
Comments
Hi @arzamas500, Indeed if the poetry executable is not on the path by that name to be found when executing a subprocess then I wouldn't expect it to work. Does running It's not clear to me that there's anything poe can or should to differently in this situation, but I'll leave this issue open for a bit in case you can help me understand otherwise. I guess specifying the .bat suffix an acceptable work around? |
Poetry on the host shell works perfectly, the problem appears with Popen only. |
@arzamas500 well that's a relief. I'll close this issue then if the root cause has been located elsewhere. |
Just in case anyone else would run into this, here's a somewhat simplified case: With poetry version 1.2.2, python Python 3.10.7 and poethepoet version 0.16.5 on Windows 10 and the following lines in
, I found that the
Effectively the same thing happens with plain
It is possible to make both |
Hi @i3v, Not a windows/powershell expert here but this looks like expected behavior to me given that AFAIK echo is not a valid executable in windows. i.e. So since By contrast demo1 works because you specify that the task is a shell task, which by default means that it will go find a shell executable like git-bash or whatever on your system and use that to execute the command, and in the shell you have the echo command. This might defy expectations if you're used to how npm works for instance, where it just uses a shell to execute the whatever command line you give it, though IMO that approach is overall less powerful and less predictable across environments. |
Hi, @nat-n , The only slightly questionable point is that My only intention was to provide a readable example for someone who would search for an issue that contains |
Environment:
Problem using Poe on Windows.
Expected:
No error.
Actual Result:
Non-portable workaround.
Not sure if it is a Poe problem, because Poetry has no exe file in distribution, and Popen will fail running just "poetry" from the PATH without bat extension.
The text was updated successfully, but these errors were encountered: