ThemeCheck incorrectly reports error when `with` is used in snippet
Maintainers usually reply within 2 days
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Shopify/theme-tools
-
CdnPreconnect misses `href="https://cdn.shopify.com"` without a trailing pathPossibly taken @RaphaelFakhri claimed this 32 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Shopify/theme-tools#1365 ·
Maintainers usually reply within 2 days
-
theme-graph CLI never calls getWebComponentMap, so custom-element references are never resolvedPossibly taken @reginaldalfret claimed this 50 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Shopify/theme-tools#1291 · 1 comment ·
Maintainers usually reply within 2 days
-
JSONMissingBlock false positive for app block when section supports both @app and @themeMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Shopify/theme-tools#1144 · 2 comments · 8 reactions ·
Maintainers usually reply within 2 days
-
theme-language-server: creating or deleting a folder leaves stale readDirectory/stat cachePossibly taken @efegokdemir claimed this 13 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Shopify/theme-tools#1386 ·
Maintainers usually reply within 2 days
-
theme-language-server: checks get dropped while a forced runChecks is pendingPossibly taken @efegokdemir claimed this 11 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 76/100
Shopify/theme-tools#1385 · 1 comment ·
Maintainers usually reply within 2 days
All issues in Shopify/theme-tools
Similar issues
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
frontend: Job: Details do not show completed or failed indexes or the per-index backoff limitsPossibly taken @arshil42 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kubernetes-sigs/headlamp#8630 ·
Maintainers usually reply within 1 day
-
bug from-app needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
nightly-labs/openbot#15640 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
-
comp/desktop desktop/settings P2 tool/skills type/perf
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NousResearch/hermes-agent#159515 ·
Maintainers usually reply within 1 day