Open BrunoJuchli opened 1 month ago
I have updated dependencies to:
Microsoft.Build.Locator is still at 1.7.8 (no update available).
The issue still exists and I can't seem to get any more information.
The reported exception message has slightly changed.
There's a single roslyn log file like server.6568.log
- but it's completely empty (0 bytes).
[BuildHost PID 780] The BuildHost process exited with -1. Process output:
Unhandled exception: System.IO.IOException: The pipe is being closed. at System.IO.RandomAccess.<>c.
b__21_0(ValueTuple 4 state) at System.Threading.AsyncOverSyncWithIoCancellation.InvokeAsync[TState](Action
1 action, TState state, CancellationToken cancellationToken) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox
1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.IO.Strategies.BufferedFileStreamStrategy.WriteToNonSeekableAsync(ReadOnlyMemory1 source, CancellationToken cancellationToken) at System.IO.StreamWriter.<FlushAsyncInternal>g__Core|76_0(Boolean flushStream, Boolean flushEncoder, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.MSBuild.RpcClient.InvokeCoreAsync(Int32 targetObject, String methodName, List
1 parameters, Type expectedReturnType, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.MSBuild.RpcClient.InvokeAsync[T](Int32 targetObject, String methodName, List1 parameters, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager.GetBuildHostWithFallbackAsync(BuildHostProcessKind buildHostKind, String projectOrSolutionFilePath, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.Worker.LoadProjectFileInfosAsync(String projectPath, DiagnosticReportingOptions reportingOptions, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.Worker.LoadProjectInfosFromPathAsync(String projectPath, DiagnosticReportingOptions reportingOptions, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.Worker.LoadAsync(CancellationToken cancellationToken) at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.LoadSolutionInfoAsync(String solutionFilePath, IProgress
1 progress, ILogger msbuildLogger, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.LoadSolutionInfoAsync(String solutionFilePath, IProgress1 progress, ILogger msbuildLogger, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.OpenSolutionAsync(String solutionFilePath, ILogger msbuildLogger, IProgress
1 progress, CancellationToken cancellationToken) at SmartMe.Localization.JsonExtractor.Solution.Load(SolutionFile solutionFile) in /home/runner/work/SmartMe.Localization.Net/SmartMe.Localization.Net/src/SmartMe.Localization.JsonExtractor/Solution.cs:line 42
Version Used: 4.11.0
Steps to Reproduce
Unfortunately so far I can only reproduce the issue on GitHub's Windows Workflow Runner (image version). Furthermore it's based on closed source so it's a bit of a difficult situation. Therefore I'm looking for guidance how to further investigate the issue - the error / logs I receive are unfortunately not helpful at all.
Expected Behavior
MSBuildWorkspace.OpenSolutionAsync(..)
succeeds opening the solution.Actual Behavior
Workspace Failure
MSBuildWorkspace.WorkspaceFailed
reports(there is no further output).
Exception
OpenSolutionAsync
throws an exception reporting(Full output see at the end).
Roslyn Command Line Log File
I've set
RoslynCommandLineLogFile
but unfortunatley for the reported PID (here3328
) no log file is available (there are for other PIDs).Further Information
Note, that at the time the error occurs several projects have already been evaluted/built. So it's not that "nothing" works, but rather that at some point it trips.
The solution loading is part of a dotnet tool that I've created. It used to work but now stopped working. I've then tried out updating the Microsoft.Build* packages. Previously I've got the same error as reported here, hence why I tried setting
PrivateAssets="analyzers;build"/
onMicrosoft.CodeAnalysis.Workspaces.MSBuild
.Tool Project File
The current version looks like:
Full output