ThemeCheck incorrectly reports error when `with` is used in snippet

Open Beginner friendly
#1,408 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@efegokdemir is already working on this.

Since Nov 20, 2026.

  • #1411 by @efegokdemir — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
testing-qa

Research direction

Start by finding the MissingRenderSnippetArguments check and how it handles {% render %} calls that use with; the issue does not name a file or test. Reproduce the warning with the shown snippet call and a LiquidDoc parameter named image, then verify the warning is gone while other missing argument warnings still appear.

Written by the indexing model from the issue text.

Description

Describe the bug

When a snippet is included using with:

{% render 'image' with product.featured_image %}

The Theme Check reports a MissingRenderSnippetArguments warning if the LiquidDoc of the snippet adds a parameter named image.

When using with in a render, the ThemeCheck should assume that the 'image' parameter is implicitlty addded through the with.

Expected behaviour

ThemeCheck should not report any warning.

Actual behaviour

Theme check reports a warning.

Dominant language
TypeScript
Stars
245
Forks
108
Avg merge
2d 11h
Merged PRs (30d)
25

Getting set up

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 Shopify/theme-tools

All issues in Shopify/theme-tools

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.