Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

variable is never used, is used #737

Closed
mitchuman opened this issue Jun 12, 2023 · 1 comment
Closed

variable is never used, is used #737

mitchuman opened this issue Jun 12, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@mitchuman
Copy link

Describe the bug
Warning: variable is never used appears, but the variable is in fact used as in index for an array.

Expected
Not give a warning

Actual

{%- liquid
  for _ in (1..2)
    assign product_num = 'product_' | append: forloop.index
    render 'product-item', product: all_products[block.settings[product_num]]
  endfor
-%}
Screen Shot 2023-06-12 at 11 58 03 AM

Debugging information

  • mcOS
  • VSCode extension v1.10.0

Additional context

@mitchuman mitchuman added the bug Something isn't working label Jun 12, 2023
@lukeh-shopify
Copy link
Contributor

👋🏻 Hi @mitchuman! Thanks for reporting this. Unfortunately the Ruby version of theme check has been deprecated for some time. Would you be able to confirm you are still having issues when using our maintained version of theme check? This is done using either the latest version of the Shopify CLI, or via the Shopify Liquid Visual Studio Code extension.

If you are still having issues, please raise an issue over in the CLI or theme tools repositories. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants