Program generation invalid for list variable
Open
Nobody has claimed this yet.
area/codegen
kind/bug
- Dominant language
- Java
- Stars
- 85
- Forks
- 26
- Avg merge
- 11h 49m
- Merged PRs (30d)
- 22
Description
What happened?
Generating a program with a variable which is a list will generate invalid code
Steps to reproduce
variables:
test:
- foo
- bar
Expected Behavior
final var test = List.of(
"foo",
"bar");
Actual Behavior
final var test =
"foo",
"bar";
Output of pulumi about
No response
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the YAML list variable and locating the program-generation entry point that produces the shown Java output. Compare the generated declaration with the expected List.of form, then verify that list variables consistently produce valid Java code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100