Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[http-client-csharp] resiliency/srv-driven/v2 cannot compile #5567

Open
ArcturusZhang opened this issue Jan 10, 2025 · 0 comments
Open

[http-client-csharp] resiliency/srv-driven/v2 cannot compile #5567

ArcturusZhang opened this issue Jan 10, 2025 · 0 comments
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp

Comments

@ArcturusZhang
Copy link
Member

ArcturusZhang commented Jan 10, 2025

Similar issue as we have in #5565

Xml error, we reference the parameter name as new-parameter but it is actually newParameter.

        /// <summary>
        /// [Protocol Method] Test that grew up from accepting no parameters to an optional input parameter
        /// <list type="bullet">
        /// <item>
        /// <description> This <see href="https://aka.ms/azsdk/net/protocol-methods">protocol method</see> allows explicit creation of the request and processing of the response for advanced scenarios. </description>
        /// </item>
        /// </list>
        /// </summary>
        /// <param name="new-parameter"> I'm a new input optional parameter. </param>
        /// <param name="options"> The request options, which can override default behaviors of the client pipeline on a per-call basis. </param>
        /// <exception cref="ClientResultException"> Service returned a non-success status code. </exception>
        /// <returns> The response returned from the service. </returns>
        public virtual ClientResult FromNone(string newParameter, RequestOptions options)

How to reproduce:

  1. cd into packages/http-client-csharp directory
  2. Run script ./eng/scripts/Generate.ps1 resiliency/srv-driven/v2 -Stubbed $false
  3. Run dotnet build .\generator\TestProjects\CadlRanch\http\resiliency\srv-driven\v2\Resiliency.SrvDriven.V2.sln and you would see this cannot build.
@ArcturusZhang ArcturusZhang added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp
Projects
None yet
Development

No branches or pull requests

1 participant