Skip to content

Commit

Permalink
Don't wait indefinitely to build plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Feb 25, 2024
1 parent 83f5539 commit 5215184
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Fable.Compiler/Util.fs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,9 @@ module Process =

let runSyncWithOutput workingDir exePath args =
let p = startProcess true [] workingDir exePath args
p.WaitForExit()
// Don't wait indefinitely to run process
// This call is used to build local plugins, if the binary is used by another process this process will never end.
p.WaitForExit 7000 |> ignore
p.StandardOutput.ReadToEnd()

[<RequireQualifiedAccess>]
Expand Down

0 comments on commit 5215184

Please sign in to comment.