-
Notifications
You must be signed in to change notification settings - Fork 956
Closed as duplicate of#19182
Copy link
Labels
cliArea: CLIArea: CLIparametersbugs & feature requests related to Dynamic Parametersbugs & feature requests related to Dynamic Parameters
Description
Description
Creating a workspace via the CLI fails when the JetBrains module is present. During the parameter prompting step, the CLI hangs with an empty prompt (i.e., no input description, no available options). The only way to proceed is by pressing Ctrl-C, after which the CLI continue and ends up failing with an error due to an empty value for the jetbrains_ides
parameter.
This leads to a broken workspace creation experience.
Current Behaviour
Screen.Recording.2025-08-04.at.11.50.21.mov
Steps shown in the video:
- With JetBrains module (active template version
c9ed0dd
)
- Tested on our dogfood environment using "Write Coder on Coder" template with the active version (c9ed0dd) that includes the JetBrains module.
- After filling other required parameters, the CLI shows a blank prompt for
jetbrains_ides
. - No instructions or options are presented.
- Exiting the prompt via Ctrl-C, the create process continues.
- Failure due to empty value for
jetbrains_ides
parameter.
Error message:
2025-08-04 10:44:52.463Z Error: When using list(string) type, value must be a json encoded list of strings
2025-08-04 10:44:52.463Z on .terraform/modules/jetbrains/main.tf line 201, in data "coder_parameter" "jetbrains_ides":
2025-08-04 10:44:52.463Z 201: data "coder_parameter" "jetbrains_ides" {
2025-08-04 10:44:52.463Z
2025-08-04 10:44:52.464Z value "" is not a valid list of strings
- Without JetBrains module (
strange_fermi7
template version):
- Same setup, but using a template version that does not include the JetBrains module (strange_fermi7)
- Only the required parameters are prompted.
- The workspace is created successfully without issues.
Expected Behaviour
The CLI should:
- Prompt users properly with a clear description and list of valid JetBrains IDEs (if applicable).
- Allow skipping the parameter (i.e., selecting "none").
- Accept the JetBrains IDE value via
--parameter
flag. (edit: ✅ working correctly as shown in Bug: CLI Workspace Creation Fails When JetBrains Module Is Present #19145 (comment)) - Execute workspace creation successfully in both interactive and non-interactive modes.
Additional Context
- Environment: Dogfood
- Template: Write Coder on Coder (
coder
) - Versions tested:
- ❌ Currently active template version (
c9ed0dd
) with JetBrains module (broken) - ✅
strange_fermi7
without JetBrains module (works)
- ❌ Currently active template version (
Metadata
Metadata
Assignees
Labels
cliArea: CLIArea: CLIparametersbugs & feature requests related to Dynamic Parametersbugs & feature requests related to Dynamic Parameters