nrw / coffee-script-precompiler

http://kan.so/docs/Using_coffeescript_with_kanso
9 stars 5 forks source link

fail #10

Open fimble opened 12 years ago

fimble commented 12 years ago

CoffeeScript version 1.2.0 node version v0.6.19 kanso version 0.2.1

▾ Map/ ▾ js/ test.coffee ▾ lib/ app.coffee ▸ packages/ index.html kanso.json

kanso.json:

{ "name": "example-app", "version": "0.0.1", "description": "The simplest possible app", "attachments": ["index.html"],

"dependencies": { "attachments": null, "coffee-script-precompiler": null },

"coffee-script": { "modules": ["lib"], "attachments": ["js"] } }

push:

kanso push example Reading dependency tree... loading . preprocessor attachments/add preprocessor coffee-script-precompiler/compile loading packages/attachments loading packages/coffee-script-precompiler Compiling attachment js/app.coffee Compiling module lib/app.coffee preprocessor coffee-script-precompiler/remove postprocessor attachments/cleanup Build complete: 120ms Uploading... Error: doc_validation Bad special document member: _modules at IncomingMessage. (/usr/lib/node_modules/kanso/lib/couchdb.js:220:35) at IncomingMessage.emit (events.js:88:20) at HTTPParser.parserOnMessageComplete as onMessageComplete at Socket.socketOnData as ondata at TCP.onread (net.js:374:27) Failed

fimble commented 12 years ago

when I remove 'modules' from config:

kanso push example Reading dependency tree... loading . preprocessor attachments/add preprocessor coffee-script-precompiler/compile loading packages/attachments loading packages/coffee-script-precompiler Error: Error when running preprocessor: "coffee-script-precompiler/compile" Error: TypeError: Cannot read property '0' of undefined at Object.abspath (/home/az/work/Map/packages/coffee-script-precompiler/node_modules/kanso-utils/utils.js:426:10) at Object.normalizePaths (/home/az/work/Map/packages/coffee-script-precompiler/node_modules/kanso-precompiler-base/lib/precompiler.js:28:29) at /home/az/work/Map/packages/coffee-script-precompiler/build/compile.js:46:29 at BuildManager.runStep (/usr/lib/node_modules/kanso/lib/buildsteps.js:375:12) at /usr/lib/node_modules/kanso/lib/buildsteps.js:133:18 at Array.forEach (native) at BuildManager.run (/usr/lib/node_modules/kanso/lib/buildsteps.js:130:16) at Object.preprocess (/usr/lib/node_modules/kanso/lib/packages.js:281:8) at /usr/lib/node_modules/kanso/lib/packages.js:69:21 at /usr/lib/node_modules/kanso/node_modules/async/lib/async.js:194:13 preprocessor coffee-script-precompiler/remove Failed

nrw commented 12 years ago

@fimble: I have a fix for the second error. I've been unable to reproduce the first error. Can you link me to a repo of a project that generates these errors? Thanks.

fimble commented 12 years ago

The first error was gone after I delete and create same simple project again, I don't know how to reproduce it. Thanks for fast responce! :)

mark-hahn commented 12 years ago

FWIW, I'm getting the first problem Bad special document member: _modules. I'll try creating the project again.

Edit: My problem was that modules was not properly installed.