-
Notifications
You must be signed in to change notification settings - Fork 128
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]: Override recent theme customizations (--theme-editor-sync
)
#4667
Comments
I also have this issue happen to me occasionally, even though I did not edit the local files in the first place. It seems clicking on |
Hi @MaxDesignFR, I'm also not updating the local files. Clicking |
I am running into this issue also in local development, when running the following command it causes infinite loop of constantly changing config files back and forth:
Even pushing and pulling the theme fully doesn't work. It seems like a header gets generated when the JSON file is pulled by the CLI but is removed when pushed to the Shopify server. This creates a difference in files that is always detected and causes a sync loop. |
Thank you for reporting this issue, @stijns96. I've noticed the Thanks again for reporting this! |
Just to add more context to this issue, I regularly have to So it gets quite annoying when it does that because you need to interact twice to save (save + override and saves changes) for every consecutive change in the theme editor. I will share verbose as soon as I encounter this, happens basically everyday for me. |
I have this issue too. Every time you save for the 2nd time, it shows an error on the shopify CLI. How do I fix this? |
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
When running
shopify theme dev --theme-editor-sync
it should nicely sync everything between the local files and the theme editor.Actual behavior
Although it's actually working, I'm getting the following modal every time I make changes to the theme and click on save.
There is not difference between my local
index.json
and the one on Shopify (ghost theme).Local
Shopify
Verbose output
2024-10-17T08:05:35.715Z: Listening for changes in the theme editor
2024-10-17T08:05:38.991Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?fields=key%2Cchecksum completed in 273 ms
With response headers:
2024-10-17T08:05:38.994Z: Reading the content of file at dist/templates/index.json...
2024-10-17T08:05:39.517Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?asset%5Bkey%5D=templates%2Findex.json completed in 520 ms
With response headers:
2024-10-17T08:05:39.519Z: Writing some content to file at dist/templates/index.json...
• 10:05:39 Synced » download templates/index.json from remote theme
2024-10-17T08:05:39.521Z: Listening for changes in the theme editor
2024-10-17T08:05:39.607Z: Reading the content of file at dist/templates/index.json...
GET /
2024-10-17T08:05:39.623Z: → Rendering https://.myshopify.com/?_fd=0&pb=0 (with templates/index.json)...
2024-10-17T08:05:39.901Z: Request to https://.myshopify.com/?_fd=0&pb=0 completed in 277 ms
With response headers:
2024-10-17T08:05:39.901Z: ← 200 (request_id: 278268c5-dc09-40ef-abc1-8354472051ac-1729152339)
2024-10-17T08:05:40.124Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets/bulk.json completed in 516 ms
With response headers:
• 10:05:40 Synced » update templates/index.json
2024-10-17T08:05:42.831Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?fields=key%2Cchecksum completed in 308 ms
With response headers:
2024-10-17T08:05:42.833Z: Reading the content of file at dist/templates/index.json...
2024-10-17T08:05:42.833Z: Listening for changes in the theme editor
2024-10-17T08:05:46.047Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?fields=key%2Cchecksum completed in 212 ms
With response headers:
2024-10-17T08:05:46.048Z: Listening for changes in the theme editor
2024-10-17T08:05:49.299Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?fields=key%2Cchecksum completed in 249 ms
With response headers:
Reproduction steps
shopify theme dev --theme-editor-sync
Operating System
macOS Sonoma 14.4.1
Shopify CLI version (check your project's
package.json
if you're not sure)3.68.0
Shell
zsh
Node version (run
node -v
if you're not sure)v20.10.0
What language and version are you using in your application?
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]
Off topic
Additionally, I'm also always getting the question to keep the remote or local files in my CLI. Even tho I start the server fully ones, break it, and then spin it up again. Everything should already be synced, but still I'm getting the question. Maybe that's related?
The text was updated successfully, but these errors were encountered: