Closed daleeidd closed 9 months ago
also getting this as of today. I also have the GNU tools first in my path.
More debugging:
# homebrew-installed gnu stat
$ /opt/homebrew/opt/coreutils/libexec/gnubin/stat -f %z
stat: cannot read file system information for '%z': No such file or directory
# macos default bsd stat
$ /usr/bin/stat -f %z
0
@craigds is the homebrew-delivered stat
ahead of the system stat
on your PATH?
yes it is. Despite homebrew mentioning that this may cause problems, many people do that and I've never had trouble with it before - normally the GNU tools are just like the BSD tools but with more useful options :)
This is coming from the install scripts themselves: https://github.com/dotnet/install-scripts/blob/e9163da52c5cf33f9d68627d0bf49cc557d005e3/src/dotnet-install.sh#L570-L572
They may need to become more defensive here if folks are going to install gnu utilities on darwin.
Folks, we need to see if there's a way to detect if stat
is GNU or BSD version - the arguments will change depending on which one we have.
could just hardcode the path to /usr/bin/stat
if you always want the BSD one
Closing as fixed in #397. The scripts served from the website will be updated soon.
Describe the bug
Get the following:
Please attach log file(s) here if you have any:
DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1694845816479.txt
Output error:
Other Info:
Reproduction Steps
Open any C# project.
Further technical details
I have the GNU Tools first in my path so using their version of stat.
Stat:
VSCode
Extension: