Skip to content
代码片段 群组 项目
未验证 提交 4c194c58 编辑于 作者: Pranav K's avatar Pranav K 提交者: GitHub
浏览文件

Avoid null args when RazorDiagnostic does not have a message (#37648)

* Avoid null args when RazorDiagnostic does not have a message

We've received tooling reports of the Razor compiler failing with a argument null exception
when trying to format a diagnostic message. Unfortunately dumps don't have enough details to indicate
what code path causes the badly formated argument to be used. Additonally, inspecting the code and turning
on nullability in this code path does not suggest any obvious candidates in Razor's codebase.

Tooling is working around this by try-catching the exception, but this results in squiggles / error items that do not
disappear. This PR introduces a temporary workaround that prints a generic error message so that it does not crash VS
/ require tooling workarounds while we try and figure out the root cause.

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1405849
上级 42a4a733
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册