Closed sharwell closed 1 month ago
⚠️ I'm seeing a huge spike in reports of this issue (3600+).
I've just run into it today :(
Repro: Compile Microsoft.Extensions.Logging. This function in LoggerFactory.cs will trigger the bug:
private void ApplyRules(LoggerInformation[] loggers, string categoryName, int start, int count)
{
for (var index = start; index < start + count; index++)
{
ref var loggerInformation = ref loggers[index];
_RuleSelector.Select(_filterOptions,
loggerInformation.ProviderType,
categoryName,
out var minLevel,
out var filter);
loggerInformation.Category = categoryName;
loggerInformation.MinLevel = minLevel;
loggerInformation.Filter = filter;
}
}
I don't see any recent hits of this. Closing out as this was presumably fixed.
Version Used: 15.3 Preview 6
:link: https://devdiv.visualstudio.com/DevDiv/Extensibility/_workitems/edit/459424 (Watson which suggested it's possible to hit this - 131 reports first appearing with 15.3 Preview 3)
Steps to Reproduce:
GetText
method¹ I reproduced this one, but I'm finding it difficult to reproduce this again. It would be extremely helpful if someone was able to find a specific case that reproduces this based on the SyntaxNode information in the error text below.
Expected Behavior:
AD0001 is not reported (i.e.
NullReferenceException
is not thrown).Actual Behavior:
AD0001 is reported.
Stack Trace: