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
Process.run does not respect environment on Windows #38974
Comments
FWIW, the failing example above appears to work fine one other platforms. |
Bug: #38974 Change-Id: I5fafb29252f20a536b5543d309ddeb4ccd3421ec Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122145 Auto-Submit: Clement Skau <cskau@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>
Bug: #38974 Change-Id: I5fafb29252f20a536b5543d309ddeb4ccd3421ec Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122145 Auto-Submit: Clement Skau <cskau@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>
The
My interpretation is that Python uses the same approach that we do and they have a big warning block of documentation: We should probably do the same i.e. suggest using a full path when |
…t|run) Bug:#38974 Change-Id: I0d9bfd5726f8ad2c901e5d42f2bc79b636b9841b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/278480 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Brian Quinlan <bquinlan@google.com>
I improved the documentation. |
I'm observing some inconsistencies in behaviour when using Process.run(..) on Windows as follows:
When I run the below I get "ProcessException: The system cannot find the file specified.":
This is unexpected as I can otherwise run the executable fine when I either run directly, without setting PATH:
Or run it with PATH but with runInShell:
This indicates to me that it is able to run the process fine, and even pass the environment along in some cases - just not in the non-runInShell case, which seems like a bug.
The text was updated successfully, but these errors were encountered: