$kanso watch, making trouble. Only for me?

Skip to first unread message


Aug 6, 2013, 5:50:11 AM8/6/13
to ka...@googlegroups.com
I am trying to figure out couchdb and do so with help of kanso. Now, pushing is something that happens quite alot. I have configured .kansorc to simplify with usr:pwd but if I coulc get '$kanso watch' to work things would be so much easier.

I tried it in the root of my project and it starts off and seems to go into waiting for changes. So, I change a file and save it. Then this happens:

Reading dependency tree...
Error: Conflicting property at: _utils.setPropertyPath
Between: "function (obj, p, val) {
\n    // normalize to remove unessecary . and .. from paths
\n    var parts = path.normalize(p).split('/');
\n    var curr = [];
\n    // loop through all parts of the path except the last, creating the
\n    // properties if they don't exist
\n    var prop = parts.slice(0, parts.length - 1).reduce(function (a, x) {
\n        curr.push(x);
\n        if (a[x] === undefined) {
\n            a[x] = {};
\n        }
\n        if (typeof a[x] === 'object' && !Array.isArray(a[x])) {
\n            a = a[x];
\n        }
\n        else {
\n            throw new Error(
\n                'Updating \"' + p + '\" would overwrite \"' +
\n                    curr.join('/') + '\"\\n' +
\n                '\\n' +
\n                'This can sometimes happen when a file has the same name as\\n' +
\n                'a directory and both paths are added to the design doc.\\n' +
\n                'There is no way to map this structure in the design doc.\\n'
\n            );
\n        }
\n        return a;
\n    }, obj);
\n    // set the final property to the given value
\n    prop[path.basename(parts[parts.length - 1], '.js')] = val;
\n    return val;
\n}" and undefined
    at Object.exports.merge (/usr/lib/node_modules/kanso/lib/packages.js:387:23)
    at Object.exports.merge (/usr/lib/node_modules/kanso/lib/packages.js:383:28)
    at /usr/lib/node_modules/kanso/lib/packages.js:48:17
    at /usr/lib/node_modules/kanso/node_modules/async/lib/async.js:105:25
    at /usr/lib/node_modules/kanso/node_modules/async/lib/async.js:105:25
    at /usr/lib/node_modules/kanso/lib/packages.js:177:24
    at /usr/lib/node_modules/kanso/node_modules/async/lib/async.js:97:13
    at Array.forEach (native)
    at _forEach (/usr/lib/node_modules/kanso/node_modules/async/lib/async.js:26:24)
    at Object.async.forEach (/usr/lib/node_modules/kanso/node_modules/async/lib/async.js:96:9)

(Above is painstakingly formatted by hand so please forgive any misstakes.)

As far as I understand it is the async-folder and the async-file that makes the problem, no?

Is there any way to avoid this, except for the obvious; to ge rid of async, but what to replace it with?

Or maybe It can be removed? My experimenting is based on the Simplestpossibleform, found through Kan.so -> docs, and I merely try to figure out my own views, lists etc and present them by templates. (It is so much easier for me to piggyback on something that works and then modify it when I learn rather than plow through the merely non-existent 'tutorials' 'out there')

Help, anyone?
Reply all
Reply to author
0 new messages