Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

👋🏻 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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants