aws / aws/smithy-go

codegen: `RuntimeClientPlugin` not having access to a `SymbolProvider`

Open
#485 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
255
Forks
81
Avg merge
1d 6h
Merged PRs (30d)
7

Description

`RuntimeClientPlugin` is used for a variety of codegen points, e.g. middleware registration:

https://github.com/aws/smithy-go/blob/7be1336444e91daf7a4d27419910a9ca0518230d/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/RuntimeClientPlugin.java#L138

However, middleware registration typically needs access to a symbol provider to correctly get the name of functions and such.

There should be a way to expose the symbol provider in `RuntimeClientPlugin`.

Contributor guide

Open the contributing guide

Research direction

Start in codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/RuntimeClientPlugin.java around line 138, then inspect the middleware registration codegen points that use the plugin. Determine how a SymbolProvider should be exposed to those integrations; done when middleware registration can obtain the needed function names through the plugin API.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.