-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Python script execution does not relay exit code #5773
Comments
Works fine on Linux
relevant code seems to be https://github.com/python-poetry/poetry/blob/865aa94dd3393076f790d3351f6ae18483673e38/src/poetry/utils/env.py#L1501-#L1511. I don't have a suitable windows environment to test on but I can tweak the code to force it through the
So I dunno, some sort of windows-only thing maybe? |
@dimbleby thanks for your analysis! I’m not sure I understand the issue with #3339 since https://stackoverflow.com/a/1253161 suggests that passing a command as a list and setting shell=True on Windows should already convert the sequence to a string, but if it’s causing problems then feel free to revert it. It took over 1.5 years for #3339 to be reviewed and merged, so I won’t be working on that particular issue anymore. |
I don't have a windows environment to test in: perhaps this is fine on Windows. I guess if it's broken then someone who does use windows will notice soon enough... |
I can't reproduce the issue in cmd on Windows with either 1.2.0b1 or master. 🤷 |
I've performed more testing on my side and I've found that the error appears depending on the install mode of poetry...
|
Please try again on |
Tested doing the following:
Everything seems to be working OK now 😄 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
Note:
Poetry is not relaying the exit codes when running python scripts on the console:
But if I execute it directly...
Is this the expected behavior?
The text was updated successfully, but these errors were encountered: