Nim icon indicating copy to clipboard operation
Nim copied to clipboard

The --recursive switch of git leads to execCmdEx blocking on macOS(v14.3).

Open danny-su opened this issue 1 year ago • 3 comments

Description

The following code will block forever on macOS. The execCmd function works well, but execCmdEx doesn't.

import std/osproc

when isMainModule:
  echo("Hello, World!")
  discard execCmdEx("git clone --recursive https://github.com/fowlmouth/nake /Users/danny/Downloads/temp/x")
  echo("OK")

Nim Version

Nim Compiler Version 2.0.2 [MacOSX: arm64] Compiled at 2023-12-15 Copyright (c) 2006-2023 by Andreas Rumpf

active boot switches: -d:release -d:nimUseLinenoise

Current Output

No response

Expected Output

No response

Possible Solution

No response

Additional Information

Due to this bug, "nimble install" doesn't work as expected on macOS(Version 14.3).

danny-su avatar Feb 06 '24 05:02 danny-su

Cannot reproduce it on the Linux. Did you check your internet connection?

ringabout avatar Feb 06 '24 05:02 ringabout

@ringabout I haven't installed linux, the internet connection is ok, because execCmd function works well.

danny-su avatar Feb 06 '24 05:02 danny-su

I cannot reproduce this on Linux or Windows.

xTrayambak avatar Feb 06 '24 16:02 xTrayambak