Times out and or have a debugging capability from #65 to figure out why it is hanging.
โฏ clasp push
\ Pushing files...
Goes on forever
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);
So it gets eaten up here https://github.com/google/clasp/blob/master/index.ts#L595 .
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.