Generated XML doc `cref` contains unescaped generic arguments: CS1584 / CS1658 / CS1570 warnings
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- C#
- Star
- 1.7k
- Fork
- 505
- Merge trung bình
- 1 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aws/aws-lambda-dotnet
-
bug module/aspnetcore-support p2 queued
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
aws/aws-lambda-dotnet#1123 · 4 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Annotate auto-generated codeĐang mởfeature-request needs-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
aws/aws-lambda-dotnet#2588 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
aws/aws-lambda-dotnet#2586 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature-request p2
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
aws/aws-lambda-dotnet#2551 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
JSON log format pairs ILogger message template placeholders with state values by position, garbling ASP.NET Core hosting logsCó thể đã có người làm @Pybsama đã nhận 78 ngày trước. Đang mởbug investigating p2
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
aws/aws-lambda-dotnet#2468 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của aws/aws-lambda-dotnet
Issue tương tự
-
python triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/semantic-kernel#14615 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vzeol/DeployCraft#125 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
fboucher/2d6-dungeon-app#245 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: settings good first issue priority: p2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
AmineChr54/umbra#3 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày