Generated XML doc `cref` contains unescaped generic arguments: CS1584 / CS1658 / CS1570 warnings
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- C#
- Stelle
- 1.7k
- Fork
- 504
- Merge medio
- 2g 9h
- PR unite (30g)
- 9
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aws/aws-lambda-dotnet
-
bug module/aspnetcore-support p2 queued
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
aws/aws-lambda-dotnet#1123 · 4 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Annotate auto-generated codeApertafeature-request needs-triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
aws/aws-lambda-dotnet#2588 ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs-triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 67/100
aws/aws-lambda-dotnet#2586 ·
I maintainer di solito rispondono entro 1 giorno
-
feature-request p2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
aws/aws-lambda-dotnet#2551 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
JSON log format pairs ILogger message template placeholders with state values by position, garbling ASP.NET Core hosting logsForse già presa @Pybsama l’ha presa 74 giorni fa. Apertabug investigating p2
Difficoltà 3/5 1-2 giorni Idoneità per principianti 70/100
aws/aws-lambda-dotnet#2468 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di aws/aws-lambda-dotnet
Issue simili
-
needs-area-label
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Fallout-build/Fallout#708 ·
I maintainer di solito rispondono entro 5 giorni
-
bug next version
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Rem0o/FanControl.Releases#4220 · 1 commento ·
-
area:repo audit:approved audit:auto priority:P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
elsa-workflows/elsa-core#8771 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nkdAgility/azure-devops-migration-tools#3217 ·
I maintainer di solito rispondono entro 1 giorno