arboleya / coffee-toaster

Minimalist build system for CoffeeScript.
114 stars 23 forks source link

toaster . -c throws TypeError: ('Arguments to path.resolve must be strings'); #69

Closed stefanoortisi closed 11 years ago

stefanoortisi commented 11 years ago

on osx 10.8, node 0.10

quickfix was to update toaster.js

from: if (srcpath instanceof Object) { params = srcpath; } else if (path.resolve(srcpath !== srcpath)) { folder = path.join(this.basepath, srcpath); }

to: if (srcpath instanceof Object) { params = srcpath; } else if (path.resolve(srcpath) !== srcpath) { folder = path.join(this.basepath, srcpath); }

COMPLETE ERROR:

$node_modules/coffee-toaster/bin/toaster . -c

path.js:313 throw new TypeError('Arguments to path.resolve must be strings'); ^ TypeError: Arguments to path.resolve must be strings at Object.exports.resolve (path.js:313:15) at Toast.__t.Toast.Toast.toast (/Users/stefanoortisi/Sites/hires/theoricus/node_modules/coffee-toaster/lib/toaster.js:109:23) at Toast.toast (/Users/stefanoortisi/Sites/hires/theoricus/node_modules/coffee-toaster/lib/toaster.js:27:61) at Toast.eval (eval at Toast (/Users/stefanoortisi/Sites/hires/theoricus/node_modules/coffee-toaster/lib/toaster.js:90:16), :2:6) at new Toast (/Users/stefanoortisi/Sites/hires/theoricus/node_modules/coffee-toaster/lib/toaster.js:90:11) at new Toaster (/Users/stefanoortisi/Sites/hires/theoricus/node_modules/coffee-toaster/lib/toaster.js:1363:22) at Object.exports.run (/Users/stefanoortisi/Sites/hires/theoricus/node_modules/coffee-toaster/lib/toaster.js:1305:12) at Object. (/Users/stefanoortisi/Sites/hires/theoricus/node_modules/coffee-toaster/bin/toaster:7:27) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10)

arboleya commented 11 years ago

Hi, this erros was fixed in #64 ~> https://github.com/serpentem/coffee-toaster/commit/51ccb90c312c9c27dee316e5efef48f66651cb5f

Are you running the most recent version (0.6.13)? If not, update and it should work.

Let me know if something goest wrong.

stefanoortisi commented 11 years ago

Hi, yes you're right. I was using an older version. Now everything runs smoothly. Thank you for help!

Best!

Stefano

On 10 Apr 2013, at 22:02, Anderson Arboleya notifications@github.com wrote:

Hi, this erros was fixed in #64 ~> 51ccb90

Are you running the most recent version (0.6.13)? If not, update and it should work.

Let me know if something goest wrong.

— Reply to this email directly or view it on GitHub.

arboleya commented 11 years ago

You're welcome.