Generated XML doc `cref` contains unescaped generic arguments: CS1584 / CS1658 / CS1570 warnings
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 68/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- C#
- Étoiles
- 1.7k
- Forks
- 505
- Merge moyen
- 1 j 4 h
- PR mergées (30 j)
- 10
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de aws/aws-lambda-dotnet
-
bug module/aspnetcore-support p2 queued
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
aws/aws-lambda-dotnet#1123 · 4 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
feature-request p1
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 12/100
aws/aws-lambda-dotnet#2604 ·
Les mainteneurs répondent en général sous 1 jour
-
Annotate auto-generated codeOuvertefeature-request needs-triage
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
aws/aws-lambda-dotnet#2588 ·
Les mainteneurs répondent en général sous 1 jour
-
annotations bug p2 pr/needs-review
Difficulté 3/5 1-2 jours Accessibilité débutants 67/100
aws/aws-lambda-dotnet#2586 ·
Les mainteneurs répondent en général sous 1 jour
-
feature-request p2
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
aws/aws-lambda-dotnet#2551 · 4 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de aws/aws-lambda-dotnet
Issues similaires
-
Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
ShareX/ShareX#9002 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Facepunch/sbox-public#12305 ·
Les mainteneurs répondent en général sous 5 jours
-
分享 JVC DVD+RW 4.7G (铼德代工) 实测标定预设Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
JiaFeiMiao-K-Cat/DiscImageStudio#205 ·
Les mainteneurs répondent en général sous 1 jour
-
bug keep-fresh
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Flow-Launcher/Flow.Launcher#4744 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
flyingpie/windows-terminal-quake#419 ·
Les mainteneurs répondent en général sous 1 jour