Skip to content

bug: multi-select form type for coder_parameter in Coder template does not work as expected #18865

@Syakyr

Description

@Syakyr

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Consider the following snippet:

data "coder_parameter" "extensions" {
  name         = "extensions"
  display_name = "Code Server Extensions"
  description  = "Choose the extensions you want to install"

  form_type    = "multi-select"
  type         = "list(string)"
  default      = jsonencode([
    "ms-python.python", 
    "ms-toolsai.jupyter", 
    "mhutchie.git-graph"
  ])
  icon         = "/icon/widgets.svg"
  mutable      = true
  option {
    name  = "Python"
    value = "ms-python.python"
    icon  = "/icon/python.svg"
  }
  option {
    name  = "Jupyter"
    value = "ms-toolsai.jupyter"
    icon  = "/icon/jupyter.svg"
  }
  option {
    name  = "Git Graph"
    value = "mhutchie.git-graph"
    icon  = "/icon/git.svg"
  }
  option {
    name  = "Vim"
    value = "vscodevim.vim"
    icon  = "/emojis/2328.png"
  }
}

This on the Coder playground would show this:

Image

However, on my instance running Coder v2.24.1+f97bd76, I have this instead:

Image

Relevant Log Output

Log output doesn't seem to show any errors during building phase of the Coder template before publishing

Expected Behavior

Expected behavior should be what I would get in the Coder playground.

Steps to Reproduce

Add the above coder_parameter snippet to any Coder template in a Coder instance (currently using v2.24.1).

Environment

  • Host OS: Ubuntu 24.04
  • Coder version: v2.24.1+f97bd76 (deployed as a Docker compose)

Additional Context

I have tested this on the latest version

Metadata

Metadata

Assignees

Labels

needs-triageIssue that require triage

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy