ftpush fails on first contact with an empty directory
hawkrives opened this issue · comments
Running "ftpush:dist" (ftpush) task
[D] Task source: /Users/hawken/Dropbox/Benchmark Website/site/theme/node_modules/grunt-ftpush/tasks/ftpush.coffee
>> Authenticated as hawkrives
[D] Touch '/dev.bmc/wp-content/themes/benchmark/'
[D] Touch '/dev.bmc/wp-content/themes/benchmark/_'
[D] Touch '/dev.bmc/wp-content/themes/benchmark/_/fonts'
[D] Touch '/dev.bmc/wp-content/themes/benchmark/_/img'
[D] Touch '/dev.bmc/wp-content/themes/benchmark/_/img/icons'
[D] Touch '/dev.bmc/wp-content/themes/benchmark/_/img/samples'
[D] Touch '/dev.bmc/wp-content/themes/benchmark/_/js'
[D] Touch '/dev.bmc/wp-content/themes/benchmark/inc'
>> Got diff for / 20 0 0
[D] Diff { upload:
[ [ '404.php', 1375118497000 ],
[ 'archive.php', 1375118497000 ],
[ 'comments.php', 1375118497000 ],
[ 'content-page.php', 1375118497000 ],
[ 'content-single.php', 1375118497000 ],
[ 'content.php', 1375118497000 ],
[ 'footer.php', 1375118497000 ],
[ 'functions.php', 1375118497000 ],
[ 'header.php', 1375118497000 ],
[ 'image.php', 1375118497000 ],
[ 'index.php', 1375118497000 ],
[ 'no-results.php', 1375118497000 ],
[ 'page.php', 1375118497000 ],
[ 'screenshot.png', 1375118497000 ],
[ 'search.php', 1375118497000 ],
[ 'searchform.php', 1375118497000 ],
[ 'sidebar.php', 1375118497000 ],
[ 'single-proof.php', 1375118497000 ],
[ 'single.php', 1375118497000 ],
[ 'style.css', 1375118497000 ] ],
rm: [],
rmDir: [] }
[D] Upload '404.php' '/' 1375118497000
[D] Upload 'archive.php' '/' 1375118497000
[D] Upload 'comments.php' '/' 1375118497000
[D] Upload 'content-page.php' '/' 1375118497000
[D] Upload 'content-single.php' '/' 1375118497000
[D] Upload 'content.php' '/' 1375118497000
[D] Upload 'footer.php' '/' 1375118497000
[D] Upload 'functions.php' '/' 1375118497000
[D] Upload 'header.php' '/' 1375118497000
[D] Upload 'image.php' '/' 1375118497000
[D] Upload 'index.php' '/' 1375118497000
[D] Upload 'no-results.php' '/' 1375118497000
[D] Upload 'page.php' '/' 1375118497000
[D] Upload 'screenshot.png' '/' 1375118497000
[D] Upload 'search.php' '/' 1375118497000
[D] Upload 'searchform.php' '/' 1375118497000
[D] Upload 'sidebar.php' '/' 1375118497000
[D] Upload 'single-proof.php' '/' 1375118497000
[D] Upload 'single.php' '/' 1375118497000
[D] Upload 'style.css' '/' 1375118497000
/Users/hawken/Dropbox/Benchmark Website/site/theme/node_modules/grunt-contrib-compass/node_modules/tmp/lib/tmp.js:260
throw err;
^
TypeError: Cannot read property 'length' of undefined
at /Users/hawken/Dropbox/Benchmark Website/site/theme/node_modules/grunt-ftpush/tasks/ftpush.coffee:245:22
at entriesToList (/Users/hawken/Dropbox/Benchmark Website/site/theme/node_modules/grunt-ftpush/node_modules/jsftp/lib/jsftp.js:759:29)
at /Users/hawken/Dropbox/Benchmark Website/site/theme/node_modules/grunt-ftpush/node_modules/jsftp/lib/jsftp.js:787:21
at parse (/Users/hawken/Dropbox/Benchmark Website/site/theme/node_modules/grunt-ftpush/node_modules/jsftp/lib/jsftp.js:419:21)
at onElement (/Users/hawken/Dropbox/Benchmark Website/site/theme/node_modules/grunt-ftpush/node_modules/jsftp/node_modules/streamer/core.js:195:36)
at Socket.<anonymous> (/Users/hawken/Dropbox/Benchmark Website/site/theme/node_modules/grunt-ftpush/node_modules/jsftp/lib/jsftp.js:357:25)
at Array.forEach (native)
at Socket.<anonymous> (/Users/hawken/Dropbox/Benchmark Website/site/theme/node_modules/grunt-ftpush/node_modules/jsftp/lib/jsftp.js:338:23)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:736:14)
ftpush
appears to fail as soon as it hits the first empty directory.
(I've taken to blowing away both the .grunt/ftpush folder and the remote one on update, to remove an extra spot of altercation.)
Can you try including module from this repo's master branch? To make sure it got fixed.
I've been running npm install grunt-ftpush --save-dev
each time you release a new version, and it's been printing successively higher version numbers.
I must admit that I don't know how to specify a module from anywhere but npm
. Would I git clone
this repo, then npm install
from within the directory?
(oh look, you pushed a commit. I'm going to try and figure out how to install it locally.
npm install https://github.com/inossidabile/grunt-ftpush.git
Well.
$ sudo npm install https://github.com/inossidabile/grunt-ftpush.git
npm WARN package.json benchmark-theme@0.3.0 No readme data.
npm http GET https://github.com/inossidabile/grunt-ftpush.git
npm http 200 https://github.com/inossidabile/grunt-ftpush.git
npm ERR! not a package /Users/hawken/tmp/npm-65132/1375131283984-0.08385970210656524/tmp.tgz
npm ERR! Error: ENOENT, open '/Users/hawken/tmp/npm-65132/1375131283984-0.08385970210656524/package/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Darwin 12.4.0
npm ERR! command "/usr/local/Cellar/node/0.10.12/bin/node" "/usr/local/bin/npm" "install" "https://github.com/inossidabile/grunt-ftpush.git"
npm ERR! cwd /Users/hawken/Dropbox/Benchmark Website/site/theme
npm ERR! node -v v0.10.12
npm ERR! npm -v 1.2.32
npm ERR! path /Users/hawken/tmp/npm-65132/1375131283984-0.08385970210656524/package/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/hawken/Dropbox/Benchmark Website/site/theme/npm-debug.log
npm ERR! not ok code 0
Please try 0.1.6 and reopen the bug unless it's solved.