Skip to content
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

Mac CI debugging #2827

Merged
merged 4 commits into from
Sep 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/app/Fake.Core.Process/Process.fs
Original file line number Diff line number Diff line change
Expand Up @@ -457,16 +457,19 @@ module Process =
try
proc.StartTime
with
| :? PlatformNotSupportedException
| :? NotSupportedException
| :? InvalidOperationException
| :? System.ComponentModel.Win32Exception as e ->
let hasExited =
try
proc.HasExited
with
| :? InvalidOperationException
| :? System.ComponentModel.Win32Exception -> false
| :? NotSupportedException
| :? System.ComponentModel.Win32Exception as e2 -> false

if not hasExited then
if (not hasExited) && (Environment.isWindows || Trace.isVerbose false) then
Trace.traceFAKE "Error while retrieving StartTime of started process: %O" e

DateTime.Now
Expand Down
Loading