-
Notifications
You must be signed in to change notification settings - Fork 114
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
Comments
+1, same issue after updating to 3.62.0 |
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. |
this got my Vite assets/manifest.json file too, same endless loop, trailing comma fixed :/ |
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 |
👋 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 ( Thanks again for reporting! |
Thanks @karreiro 👏🏻 You the man! |
![]() Oh no... @karreiro |
Thank you for sharing that, @lesterdefreitas! I've also noticed a similar scenario here. My original PR, unfortunately, missed a detail related to |
Ah, awesome, thanks dude! |
Oh sweet baby jesus.. Thank you guys! |
Please confirm that you have:
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](https://private-user-images.githubusercontent.com/682013/341484809-af380c57-f638-4a63-8a48-d881a30e702b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNTE0MTgsIm5iZiI6MTcyMTM1MTExOCwicGF0aCI6Ii82ODIwMTMvMzQxNDg0ODA5LWFmMzgwYzU3LWY2MzgtNGE2My04YTQ4LWQ4ODFhMzBlNzAyYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOVQwMTA1MThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03ZjFlNTA0NTI2NzY0OGViMGQ2NzE1ZTcxOWJhNWFlMTc2NmFhMTNhN2M2NzgzNDU1NmNhMTk1MGJlMGMyMDAzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.w_jgm_R00Nj4Qb-yvFnH1iarxpKbZJnGCNH2tGxxbIE)
Verbose output
Reproduction steps
shopify theme dev --store --theme-editor-sync
Operating System
macOS Sonoma 14.5
Shopify CLI version
3.62.0
The text was updated successfully, but these errors were encountered: