Phoebus icon macros don't get populated during build

Open
#290 0 comments 0 reactions 1 assignee View on GitHub

@OCopping is already working on this.

Since Oct 28, 2026.

Assessment

This issue has not been assessed yet.

Description

bug
  1. Add an icon to index.bob - Name: "DEVICE1"
  2. Create a matching entry in techui.yaml with prefix and file path
DEVICE1:
  label: Device Label
  desc: My Device
  prefix: MY-DEVICE
  file: techui-support/path/to/file.bob

  1. techui-builder build path/to/techui.yaml

The label, description and file all get built properly into the icon's Action config, but the macros don't get auto populated.

During debugging:
new_widget contains

<macros>
  <device>MY-DEVICE</device>
</macros>

but by the end of the widget generation this doesn't get put back into the Component
Component(prefix='MY-DEVICE' ... file='path/to/file.bob', macros=None, status=None)

Dominant language
Python
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DiamondLightSource/techui-builder

All issues in DiamondLightSource/techui-builder

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.