clasp push hangs

Created on 13 Mar 2018  ยท  5Comments  ยท  Source: google/clasp

Expected Behavior

Times out and or have a debugging capability from #65 to figure out why it is hanging.

Actual Behavior

โฏ clasp push
\ Pushing files...   

Goes on forever

help wanted

All 5 comments

The error was due to a file not existing ENOENT within the node_modules directory. The error is basically getting swallowed by logError around line 633.

                            recursive(rootDir || path.join('.', '/'), function (err, filePaths) {
                                console.log('recursive');
                                console.log({filePaths});
                                console.log({err});  // ENOENT error is truthy, thus hitting logError
                                if (err)
                                    return logError(err);

To actually take on this issue, I'll need more details around what files are being pushed so I can reproduce this error.

I'm going to close this as it might be outdated and there's not a great way to reproduce the error.
I think .claspignore wasn't implemented at this point and could prevent this problem.

Ping here if you see this issue (and please provide repro steps).

I just got this bug when I tried clasp push having a .claspignore file in my repo. But deleting the .claspignore file made it work again. The bug appears whatever .claspignore contains, or if it is empty.

Specs:

clasp -v
2.3.0

node -v
v14.14.0

Btw, it's weird I have clasp 2.3.0 when the latest release on github is 2.2.0... I installed clasp via npm.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OleksandrRakovets picture OleksandrRakovets  ยท  3Comments

PopGoesTheWza picture PopGoesTheWza  ยท  4Comments

hariharasuthan-balaji picture hariharasuthan-balaji  ยท  8Comments

coccoinomane picture coccoinomane  ยท  5Comments

labnol picture labnol  ยท  4Comments