Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ../../../../js.io/jsio_compile -vv Orbited2.pkg -j jsio-3.3alpha -o ../static/Orbited2.js -d
- (node) process.compile should not be used. Use require('vm').runInThisContext instead.
- node.js:134
- throw e; // process.nextTick error, or 'error' event on first tick
- ^
- TypeError: Object function (path, moduleDef, opts) {
- opts = opts || {};
- if (gSrcTable[moduleDef.path]) {
- moduleDef.src = '';
- return;
- }
- logger.info('compiling', moduleDef.path);
- // prevent double import
- gSrcTable[moduleDef.path] = true;
- var self = moduleDef.path;
- if (opts.path) {
- if (JS.isArray(opts.path)) {
- for (var i = 0, len = opts.path.length; i < len; ++i) {
- jsio.path.add(opts.path);
- }
- } else if (typeof opts.path == 'string') {
- jsio.path.add(opts.path);
- }
- }
- if (opts.autoDetectPaths) {
- jsioAddPath.lastIndex = 0;
- logger.debug('detecting paths for', self);
- while (true) {
- var match = jsioAddPath.exec(moduleDef.src);
- if (!match) { break; }
- try {
- jsio.path.add(eval(match[1]));
- logger.info('added path ' + match[1]);
- } catch(e) {
- logger.info('failed to add path ' + match[1]);
- }
- }
- }
- jsioNormal.lastIndex = 0;
- while (true) {
- var match = jsioNormal.exec(moduleDef.src);
- if (!match) { break; }
- logger.debug('detected', match[0])
- var cmd = match[1],
- inlineOpts = match[2] ? match[2].substring(1) : '';
- try {
- cmd = eval(cmd);
- } catch(e) {
- logger.warn('could not compile import from', self + ':', cmd);
- continue;
- }
- try {
- inlineOpts = eval(inlineOpts);
- } catch(e) {
- logger.warn('could not parse opts for jsio in', self + ':', inlineOpts);
- inlineOpts = {};
- }
- run(moduleDef, cmd, opts, inlineOpts);
- }
- jsioDynamic.lastIndex = 0;
- while(true) {
- var match = jsioDynamic.exec(moduleDef.src);
- if (!match) { break; }
- var cmd = match[1],
- inlineOpts = match[2] || '';
- if (opts.dynamicImports && cmd in opts.dynamicImports) {
- var dynamicImports = opts.dynamicImports[cmd];
- if (!dynamicImports) {
- logger.debug('Dynamic import ' + cmd + ': <nothing>');
- continue;
- } else if (JS.isArray(dynamicImports)) {
- for (var j = 0, line; line = dynamicImports[j]; ++j) {
- logger.debug('Dynamic import ' + cmd + ': ' + line);
- run(moduleDef, line, opts, inlineOpts);
- }
- } else {
- logger.debug('Dynamic import ' + cmd + ': ' + dynamicImports);
- run(moduleDef, dynamicImports, opts, inlineOpts);
- }
- } else {
- logger.error('Missing: import definition\nConstant', cmd, 'for DYNAMIC_IMPORT_' + cmd, ' was not provided to the compiler');
- }
- }
- gSrcTable[moduleDef.path] = JS.shallowCopy(moduleDef);
- moduleDef.src = '';
- } has no method 'setDebugLevel'
- at Object.run (./compiler.js:6:214)
- at Object.init (./node_interface.js:2:332)
- at Object.start (./compiler.js:1:426)
- at Object.<anonymous> (/home/erikba/Projects/js.io/jsio_compile:83:26)
- at Module._compile (module.js:402:26)
- at Object..js (module.js:408:10)
- at Module.load (module.js:334:31)
- at Function._load (module.js:293:12)
- at Array.<anonymous> (module.js:421:10)
- at EventEmitter._tickCallback (node.js:126:26)
- make: *** [debug] Error 1
Advertisement
Add Comment
Please, Sign In to add comment