You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pantry quantities are only subtracted when the unit is written the same way (cup/cups, g/kg, fractions) #199
area: pantryPantry configuration and filteringarea: shopping-listShopping list generation and managementbugSomething isn't workingupstreamBelongs in cooklang-rs or the spec, not cookcli
I see that at least my garlic is not on the list (expected behavior with both units as cloves). However, I have milk and half-and-half in cups on the recipe ingredient and in the pantry, yet it's still on the shopping list. The other ingredients (carrots, flour, sugar) do not have units in the pantry, so the limitation you mentioned makes sense for those.
The other issue is why it doesn't pick up on the unsalted butter at all. I made the units match, and I tried giving the aisle.conf a line for "unsalted butter | unsalted_butter". From what I can see, this happens with any pantry item that isn't a single word.
also I just realized my ingredient for the butter says "tbps" while the pantry says "tbsp". I fixed it, but it didn't change anything regarding the issue.
Could you please share the recipe to reproduce the issues?
What I saw so far is that the pantry's half-and-half is in "oz" and the recipe my use "cups". And you are right, the synonyms seem not to work here correctly, but no matter if single word or not.
changed the title [-]Pantry items with multi-word names or units are ignored in the shopping list[/-][+]Pantry quantities are only subtracted when the unit is written the same way (cup/cups, g/kg, fractions)[/+]on Oct 10, 2026
and Mix @unsalted butter{2%tbsp}, @heavy cream{1/2%cup}, @milk{2%cups}, @half-and-half{1/4%cup} and @yogurt{100%g}., cook shopping-list leaves out the butter and the cream. The web pantry page (#629, #653) also writes multi-word names quoted, as above.
Units are still compared as written:
WARN Unit mismatch for 'milk': recipe needs 'cups', pantry has 'cup'
WARN Cannot parse pantry quantity for 'half-and-half': 1/2%cup
WARN Unit mismatch for 'yogurt': recipe needs 'g', pantry has 'kg'
milk 2 cups
half-and-half 0.25 cup
yogurt 100 g
cup and cups, g and kg, ml and l do not match: the full amount stays on the list (IngredientList::subtract_pantry in cooklang-rs).
A fraction in the pantry (1/2%cup) cannot be read, because pantry quantities are parsed as plain numbers (parse_quantity in cooklang-rs).
@mawo66's case: half-and-half in oz in the pantry against cups in the recipe is the same mismatch.
area: pantryPantry configuration and filteringarea: shopping-listShopping list generation and managementbugSomething isn't workingupstreamBelongs in cooklang-rs or the spec, not cookcli
Activity
mawo66 commentedon Dec 6, 2025
Could you please share the recipe to reproduce the issues?
What I saw so far is that the pantry's half-and-half is in "oz" and the recipe my use "cups". And you are right, the synonyms seem not to work here correctly, but no matter if single word or not.
[-]Pantry issues[/-][+]Pantry items with multi-word names or units are ignored in the shopping list[/+][-]Pantry items with multi-word names or units are ignored in the shopping list[/-][+]Pantry quantities are only subtracted when the unit is written the same way (cup/cups, g/kg, fractions)[/+]LeMyst commentedon Oct 10, 2026
Retitled: half of this is fixed, the unit half is not.
Multi-word names work now. On current main (6e22411, cooklang 0.19.0), with
and
Mix @unsalted butter{2%tbsp}, @heavy cream{1/2%cup}, @milk{2%cups}, @half-and-half{1/4%cup} and @yogurt{100%g}.,cook shopping-listleaves out the butter and the cream. The web pantry page (#629, #653) also writes multi-word names quoted, as above.Units are still compared as written:
cupandcups,gandkg,mlandldo not match: the full amount stays on the list (IngredientList::subtract_pantryin cooklang-rs).1/2%cup) cannot be read, because pantry quantities are parsed as plain numbers (parse_quantityin cooklang-rs).ozin the pantry againstcupsin the recipe is the same mismatch.unsalted butter | butter) is used for grouping the list but not for the pantry lookup: that part is Make aisle aliases (A|B) work globally, not just for shopping-list grouping #435.The fix belongs in cooklang-rs: plurals and conversion between units of the same kind, and fractions in pantry quantities. Hence the
upstreamlabel.