You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fsharp non-deterministically fails to download vswhere #18432
I saw this failure couple times in the past. The recent VMR build failed because of it.
Downloading vswhere
Stream was not readable.
System.ArgumentException: Stream was not readable.
at System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean leaveOpen)
at System.IO.StreamReader..ctor(Stream stream, Encoding encoding)
at Microsoft.PowerShell.Commands.FileSystemContentReaderWriter.CreateStreams(String filePath, String streamName, FileMode fileMode, FileAccess fileAccess, FileShare fileShare, Encoding fileEncoding)
at Microsoft.PowerShell.Commands.FileSystemProvider.GetContentWriter(String path)
at EnablePreviewSdks, D:\a\_work\1\s\src\fsharp\eng\build.ps1: line 517
at <ScriptBlock>, D:\a\_work\1\s\src\fsharp\eng\build.ps1: line 544
at <ScriptBlock>, <No file>: line 1
at <ScriptBlock>, <No file>: line 1
##[error](NETCORE_ENGINEERING_TELEMETRY=Build) Failure preparing build
Activity
ViktorHofer commentedon Apr 1, 2025
The max retry count is set to 5 which should be OK: https://github.com/dotnet/fsharp/blob/dc01094ebe2c04a7f466b5ac74c63dd6d9df2eb0/eng/common/tools.ps1#L236C33-L236C44
majocha commentedon Apr 2, 2025
Locked output file?
vzarytovskii commentedon Apr 2, 2025
It should be using arcade script, I think? Wonder what could be different from everything else.
akoeplinger commentedon Nov 4, 2026
this wasn't when actually downloading vswhere but when writing to sdk.txt,
D:\a\_work\1\s\src\fsharp\eng\build.ps1: line 517corresponds to:fsharp/eng/Build.ps1
Line 517 in c04f5ad
the root cause was two powershell instances trying to write to the file at the same time: dotnet/dotnet#10704
(#18491 claimed to fix this issue earlier, but that's wrong since this happens before msbuild actually runs)