Generated XML doc `cref` contains unescaped generic arguments: CS1584 / CS1658 / CS1570 warnings
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
Línea de trabajo
Start in the Lambda Annotations source that generates handler XML documentation; the issue does not name a file or test, so first locate the generated cref and its tests. Reproduce with a generic handler and GenerateDocumentationFile enabled. Done when the generated XML uses valid generic-argument syntax or omits the cref, and the build produces no XML documentation warnings.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
When a [LambdaFunction] method has a generic parameter type the
generated handler's XML doc comment contains a cref with < and > written literally. This is invalid XML doc
syntax and produces warnings on every build with GenerateDocumentationFile enabled. It does not depend on any
namespace clash.
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Generic arguments in a cref are written with braces, e.g.
SqsBatchProcessor{MyPayload, MyHandler}, or the cref is omitted from the generated comment. The generated file
then produces no warnings.
Current Behavior
Incorrect references are generated
/// The generated Lambda function handler for <see cref="Handle(Amazon.Lambda.SQSEvents.SQSEvent, Amazon.Lambda.Core.ILambdaContext, Common.Lambda.Queue.SqsBatchProcessor<Acme.EventDistributor.Trigger.Models.EventBridge.EventBridgePutObject, Acme.EventDistributor.Trigger.EventDistributorTrigger>)"/>
Reproduction Steps
Any handler with a generic parameter, built with <GenerateDocumentationFile>true</GenerateDocumentationFile>:
[LambdaFunction]
public Task<SQSBatchResponse> Handle(SQSEvent evt, ILambdaContext ctx,
[FromServices] SqsBatchProcessor<MyPayload, MyHandler> processor) => ...
Possible Solution
Generic arguments in a cref are written with braces, e.g. SqsBatchProcessor{MyPayload, MyHandler}
Additional Information/Context
Sample solution
AWS .NET SDK and/or Package version used
Amazon.Lambda.Annotations 2.4.1
Targeted .NET Platform
.NET SDK 10.0.401
Operating System and version
Windows 11
- Lenguaje dominante
- C#
- Estrellas
- 1.7k
- Forks
- 505
- Merge medio
- 1 d 6 h
- PR fusionados (30 d)
- 10
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de aws/aws-lambda-dotnet
-
bug module/aspnetcore-support p2 queued
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
aws/aws-lambda-dotnet#1123 · 4 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Annotate auto-generated codeAbiertofeature-request needs-triage
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
aws/aws-lambda-dotnet#2588 ·
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
aws/aws-lambda-dotnet#2586 ·
Los mantenedores suelen responder en 1 día
-
feature-request p2
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
aws/aws-lambda-dotnet#2551 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
JSON log format pairs ILogger message template placeholders with state values by position, garbling ASP.NET Core hosting logsPosiblemente ocupada @Pybsama la tomó hace 77 días. Abiertobug investigating p2
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
aws/aws-lambda-dotnet#2468 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de aws/aws-lambda-dotnet
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Attention: a throwing permission check on one contributor fails the whole aggregation requestAbiertoready-for-agent size:S status:todo
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
elsa-workflows/elsa-foundation#2830 ·
Los mantenedores suelen responder en 1 día
-
Review - Maintainer WG-Maintainers-Build
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
PowerShell/PowerShell#28220 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area: docs eco: dotnet good first issue help wanted lane: free-agent roadmap size: XS type: docs
Dificultad 2/5 Menos de una hora Aptitud para principiantes 72/100
arminazimi/evergreen#377 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día