Repository navigation
[wasm] WBT - add some debug bits to collect information on a rare failure - #89584
Conversation
|
Tagging subscribers to 'arch-wasm': @lewing Issue Details
|
9520ee9 to
3c09b78
Compare
.. failure, where `Program.cs` fails to compile. In such a case make the project contents available in the logs. Issue: dotnet#86533
| } | ||
| catch (XunitException xe) | ||
| { | ||
| if (xe.Message.Contains("error CS1001: Identifier expected")) |
There was a problem hiding this comment.
Could we do some regex to capture all C# compiler errors?
There was a problem hiding this comment.
Do we need that? This is for a very specific failure, see #86533 .
There was a problem hiding this comment.
In this case we generate a project with dotnet new blazorwasm but then it fails to compile. But that doesn't happen for all the times we do that in the tests, just sometimes with some random test. So, I want to find out what that Program.cs has. I suspect it might be some error message, or output of something.
There was a problem hiding this comment.
guess: do we need to flush some file before we start compilation process ?
There was a problem hiding this comment.
Nope. This is a exec of "dotnet new" and that should return only once the write is "effectively" done. And the failure is during a subsequent build.
There was a problem hiding this comment.
compiler or msbuild service sticking around?
There was a problem hiding this comment.
dotnet new blazorwasm followed by regex hacking the Program.cs ?
There was a problem hiding this comment.
compiler or msbuild service sticking around?
I doubt it. But will know more in the next few days/weeks when this is hit again.
There was a problem hiding this comment.
dotnet new blazorwasmfollowed by regex hacking theProgram.cs?
Hm I hadn't considered this. I will keep this in mind. 👍
.., where
Program.csfails to compile. In such a case make theproject contents available in the logs.
Issue: #86533