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

[Bug]: --theme-editor-sync running infinite loop #4107

Closed
2 tasks done
bigskillet opened this issue Jun 20, 2024 · 11 comments · Fixed by #4142 or #4160
Closed
2 tasks done

[Bug]: --theme-editor-sync running infinite loop #4107

bigskillet opened this issue Jun 20, 2024 · 11 comments · Fixed by #4142 or #4160
Assignees
Labels
important second highest severity for theme related bug Type: Bug Something isn't working

Comments

@bigskillet
Copy link

bigskillet commented Jun 20, 2024

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Theme

Expected behavior

Running shopify theme dev --store --theme-editor-sync should sync once on start.

Actual behavior

Sync gets stuck in an infinite loop:
Screenshot 2024-06-20 at 11 01 23 AM

Verbose output

Sorry, but --verbose runs in an infinite loop when combined with --theme-editor-sync. I'm not exactly sure what to paste here.

Reproduction steps

  1. shopify theme dev --store --theme-editor-sync

Operating System

macOS Sonoma 14.5

Shopify CLI version

3.62.0

@bigskillet bigskillet added the Type: Bug Something isn't working label Jun 20, 2024
@dreamer-cloud
Copy link

+1, same issue after updating to 3.62.0

@agentfitz
Copy link

agentfitz commented Jun 20, 2024

+1, same. Seeing infinite loops on settings_schema.json

Oddly, adding a trailing comma to the last item in our settings array in settings_schema.json seems to fix the issue 🤔 (found this clue on another thread)

@shopify/cli/3.59.3 darwin-arm64 node-v22.0.0

image

@stijns96
Copy link

Hi there 👋🏻

It probably has to due with the new trailing comma support. There are 2 solutions at the moment:

This is always happening with the settings_schema.json . If you have this with another file, you most likely have an illegal unicode in your code.

@mgmanzella mgmanzella added the important second highest severity for theme related bug label Jun 21, 2024
@bdahlinger
Copy link

this got my Vite assets/manifest.json file too, same endless loop, trailing comma fixed :/

@JamiesonRoberts
Copy link

As a note, something really does need to be done about this, because most code editors these days do auto formatting of files, which does not support the trailing comma as its not part of the spec of JSON. This is causing a massive headache of having to manually copy files when making changes, rather than letting the CLI handle those changes

@karreiro
Copy link
Contributor

karreiro commented Jul 3, 2024

👋 Hey everyone,

Thank you for your input and all the details about this issue. We've released a new version of the Shopify CLI some minutes ago with the fix (3.63.2). Please, if this problem persists, don't hesitate to reach out and share your --verbose output here.

Thanks again for reporting!

@lesterdefreitas
Copy link

Thanks @karreiro 👏🏻 You the man!

@lesterdefreitas
Copy link

image

Oh no... @karreiro

@karreiro
Copy link
Contributor

karreiro commented Jul 4, 2024

Thank you for sharing that, @lesterdefreitas! I've also noticed a similar scenario here.

My original PR, unfortunately, missed a detail related to assets/* files. The fix for that is applied here, so we may expect that to be resolved in a new CLI release soon.

@lesterdefreitas
Copy link

Ah, awesome, thanks dude!

@DanielDanielsson
Copy link

Oh sweet baby jesus.. Thank you guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
important second highest severity for theme related bug Type: Bug Something isn't working
Projects
None yet
10 participants