galaxyproject / galaxyproject/planemo

Normalize doesn't properly expand new & improved macros with tokens

Open
#283 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
110
Forks
102
Avg merge
4d 21h
Merged PRs (30d)
13

Description

Saw this when trying to expand out my jbrowse tool to figure out why a filter wasn't working:

```


...
```

It's even worse on my jbrowse tool which uses multiply nested macros with yields + tokens, meaning figuring out the whole hierarchy for something like this is a nightmare:

```


Linear scaling
Logarithmic scaling



@AUTOMATIC_LABEL@
@MANUAL_LABEL@









Opacity (high scores = 1.0 opacity)
Brewer Color Schemes




@AUTOMATIC_LABEL@
@MANUAL_LABEL@

```

Contributor guide

Open the contributing guide

Research direction

Start by locating Planemo's normalize entry point and the macro expansion logic used for tool XML. Trace how nested macros, yields, and tokens are handled for the examples in the issue. Done means normalization expands the shown macros correctly without leaving incorrect or unresolved token values.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
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.