Skip to content

[http-client-csharp] spector case project http/special-words cannot compile #5568

@ArcturusZhang

Description

@ArcturusZhang

In the spector test cases, we are generating code with some xml doc issues:

        /// <summary> withCancellationToken. </summary>
        /// <param name="cancellationToken"></param>
        /// <param name="cancellationToken"> The cancellation token that can be used to cancel the operation. </param>
        /// <exception cref="ArgumentNullException"> <paramref name="cancellationToken"/> is null. </exception>
        /// <exception cref="ClientResultException"> Service returned a non-success status code. </exception>
        public virtual ClientResult WithCancellationToken(string cancellationToken, CancellationToken cancellationToken0 = default)

We have two cancellationToken in the xml doc.

How to reproduce:

  1. cd into packages/http-client-csharp directory
  2. Run script ./eng/scripts/Generate.ps1 special-words -Stubbed $false
  3. Run dotnet build ./generator/TestProjects/CadlRanch/http/special-words/SpecialWords.sln and you would see this cannot build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharp

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions