themekit: unexpected 409 while running watch

What I expected to happen

I’m having a lot of issues the latest release. It is all tied to the theme.lock file preventing changes being uploaded. I’m having to constantly delete the theme.lock file, do a theme upload MYFILE --force, or restart theme watch.

I am the only one working on store, is it because I switch branches? What is the ideal set up I should be doing so I don’t run into this issue constantly? Any help would be greatly appreciated.

I am considering downgrading, where/how can I get an older release?

My Environment

OS (including version): MacOS 10.12.6 Sierra Themekit version: ThemeKit 0.7.3 darwin/amd64 Ignore Files(if any):

screen shot 2017-08-30 at 10 01 40 am

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 35 (13 by maintainers)

Most upvoted comments

@yifanchen If you run upload you would see the full error

➜  theme upload layout/theme.liquid
09:33:40 Unexpected changes made on remote.
Diff:
        Updated Files:
                - layout/theme.liquid local:[Jul 24 10:14AM 2017] remote:[Nov 13 3:33AM 2017]

You can solve this by running 'theme download' to get the most recent copy of these files.
Running 'theme download' will overwrite any changes you have made so make sure your work is
commited to your VCS before doing so.

If you are certain that you want to overwrite any changes then use the --force flag

I will however add this description to the error output of the 409 so that there is no longer any confusion.

@seangeng Have you run theme download templates/product.liquid to get the most recent version of that file?

The tool is telling you that the remote file has changed so you can’t upload changes. theme download [filename] fetches the remote. I honestly don’t see what is so “hacky” about this at all.

Using theme download [filename] worked for me… then fired up theme watch and used Cntrl + Z in my IDE to Undo the downloaded changes and send the new updates.

@tanema Update: things seem to be working much smoother now with the patch.

I cleaned out my theme.lock file, it might actually be working. I’ll let you know if it seems to be corrected. Another thing I’m trying is shutting down theme watch before I switch branches

Hey @rickmurt thanks for this extra info, it really helps an incredible amount. I will have time to devote to looking into this tomorrow.