RIDER, TUnit0001: Attribute argument types 'T' don't match method parameter types 'T'
When project is initially build I get the following Roslyn analyeser error.
The error occured here:
[Test]
[EntityServiceInterfaceGenerator]
[DisplayName("Generates valid syntax tree for $serviceInterface")]
public async Task WhenGivenValidSourceCode_ProducesValidSyntaxTree(ServiceInterfaceSourceCode serviceInterface)
{...}
The attribute definition can is as follows:
public sealed class EntityServiceInterfaceGeneratorAttribute : DataSourceGeneratorAttribute<ServiceInterfaceSourceCode>
{
/// <inheritdoc />
public override IEnumerable<Func<ServiceInterfaceSourceCode>> GenerateDataSources(
DataGeneratorMetadata dataGeneratorMetadata)
=> TestEntities.Valid.SelectMany(TestBehaviours.GetServiceInterfaceSourceCodeFor).SelectFunc();
}
This happens with all my DataSourceGeneratorAttribute implementations. I can still build the project and run tests, but the red squiggly lines are hurting my eyes. Cleaning and rebuilding the project does not work. Neither does restarting analysers and generators. Invalidating caches does work. I have already created an issue with Rider, but I am unsure if this is on your side or theirs.
This'll be a problem with my analyser logic. I'll try and take a look later this week
Actually you say:
Invalidating caches does work
Maybe it is a rider issue then
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.