Shopify / slate

Slate is a toolkit for developing Shopify themes. It's designed to assist your workflow and speed up the process of developing, testing, and deploying themes.
https://shopify.github.io/slate
MIT License
1.28k stars 364 forks source link

Slate Stuck on Uploading 0/0 #957

Open Kcaden20 opened 5 years ago

Kcaden20 commented 5 years ago

Problem

When uploading, at times Slate will become stuck saying it's uploading "0/0" and stay there. After hitting ctrl+c to end the process and restarting Slate, CSS and other edits I've made remain in my code but are no longer visible on the site.

Replication steps

When I create a new Slate starter kit, it completes itself but I get the errors:

(node:63956) UnhandledPromiseRejectionWarning: Error: read ECONNRESET at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27) (node:63956) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:63956) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I'm not sure if this may be related as I see there are other issues open about this error happening.

screen shot 2019-01-23 at 6 55 08 pm

More Information

em-cd commented 5 years ago

I'm also having this issue. Uploading will hang within a few minutes regardless of whether I've made any changes to the code.

em-cd commented 5 years ago

I managed to work out why this wasn't working for me - I had several files in SLATE_IGNORE_FILES and they were being ignored correctly in Slate but not in Themekit, which was still trying to upload them. I reduced my ignored files to only one and now it works.

Kcaden20 commented 5 years ago

I mean, maybe that would be it but I only have the /config/settings_data.json in my ignore files so I'd have to ignore everything at that point.

Kcaden20 commented 5 years ago

Actually I have it set as config/settings_data.json but the path from the root of the ENV is src/config/settings_data.json could that be the issue why?