Skip to content

Ingredient ranges stay unchanged when scaling a recipe #597

Done

Description

@adriankumpf

When I double a recipe in my deployed cook server, quantities written as ranges stay unchanged. I can also reproduce this with the CLI.

With range.cook containing:

Add @flour{1-2%tbsp}.

Running:

cook recipe read -f cooklang range.cook:2

still outputs @flour{1-2%tbsp}. I’d expect @flour{2-4%tbsp}, with both ends doubled. A single quantity such as @flour{1%tbsp} scales correctly to @flour{2%tbsp}.

The CLI reproduction was verified on upstream main at 42a5e64, using CookCLI 0.37.0 and Cooklang 0.19.0.

Activity

  1. dubadub commented on Oct 3, 2026

    @dubadub
    Member

    I'm planning to make range extension as part of main spec next few weeks, bare with me.

  2. added
    bug
    area: parser
    on Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: parserbugrequires spec update

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions