Describe the bug
When switching environments for theme watch, the new checksum feature will not upload when saving.
For example, it is common for some of our stores that we have different shopify stores for each language (one for English, one for German, etc.) We edit on main store development theme and then switch environments and add edit to other store by using theme watch and saving files that had edits in editor so the other environment gets the same changes.
Now it seems that the checksum doesn't upload the file from the editor even when a different environment is set with theme watch.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If you are watching a different environment with theme watch, then saving should still upload and process file even if the file has no changes
Environment (please complete the following information):
I am not sure how to proceed with this because from themekits perspective, you have not changed the file. I am going to be adding checksums sourced from the API soon so hopefully, this will alleviate the issue in the future. I understand that this is probably pretty annoying
Thanks for the response @tanema. Yea, that makes sense that themekit doesn't see it as a changed file
After experimenting with a different development flow, I found that you could watch multiple environments. For example, theme watch --env=development-english --env=development-german, which can be convenient at certain times. I didn't find anything that said you could or couldn't do that, so I was wondering if it okay/safe to do it that way?
Yup, it is safe! You can actually even run theme watch --env=development-* to run all of your development prefixed environments
This should now be fixed as of 1.1.0 as the watch command, which gets instantiated for each environment now tracks the asset checksums rather than the file event watcher. I have tested on my local themes and it works as expected. Please re-open if this continues to be an issue
Most helpful comment
Yup, it is safe! You can actually even run
theme watch --env=development-*to run all of your development prefixed environments