Open alexrp opened 6 months ago
This can happen if there are I/O errors during the directory walk, because of #406. A binlog of a failure would be interesting to look at--do you have or can you get one?
I definitely can. Is there anything in particular I should look for to find such I/O exceptions in the binlog?
Here's a binlog of a failure in src/samples/cxxexe
: binlog
FWIW, I checked the project directory and nothing in there comes even close to MAX_PATH
- highest I could find was ~120 characters for the full path.
Is there some kind of switch to turn on logging for globbing failures?
Yeah, nothing's jumping out at me, either :-/
Is there some kind of switch to turn on logging for globbing failures?
There is not, but we should log them. #9609. I think for now you might need a debugger attached, or maybe a procmon trace would have something useful?
Just for the record, I don't think I've seen the glob failure happen outside of Windows. :thinking:
Just for the record, I don't think I've seen the glob failure happen outside of Windows. 🤔
Ok, I take that back. I saw it on Linux today.
Team triage: We are hoping to have this additional logging, without it we are unable to help.
Seems like https://github.com/dotnet/msbuild/labels/needs-more-info should be removed and this should be marked as blocked on #9609?
Issue Description
I have a custom MSBuild SDK that builds Zig/C/C++ projects. The 'test suite' consisting of sample projects randomly fails to build on my machine because MSBuild sometimes fails to expand globs for no apparent reason.
Steps to Reproduce
Expected Behavior
Successful build.
Actual Behavior
Errors of the general form:
This is the Zig compiler complaining that it's being passed the literal argument
**/*.cxx
, i.e. MSBuild has failed to expand the glob here: https://github.com/vezel-dev/zig-sdk/blob/6a48e6c8821810ba8053b91419a45ff7bfb8e41f/src/sdk/build/Vezel.Zig.Sdk.Build.props#L20-L22Analysis
There doesn't appear to be any particular pattern to when it happens.
Versions & Configurations
.NET SDK 8.0.100 MSBuild 17.8.3.51904