You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem:
Just updated node to version v0.10.25 and tracegl throws an error now.
Error:
[trace.GL] See your code. This product has a commercial license.
[trace.GL] WebGL trace UI: http://0.0.0.0:2000
[trace.GL] Checking for update...up to date.
Some server console messages...
Message order error 27833 33899
/Users/levi/.../server/api.js:52
;_$_.e(25674,_$_b)}catch(x){_$_.e(25674,_$_b,x,1);throw x;}}))); // fs.lsta
My setup:
I created a symlink to tracegl.js in /usr/bin so that I can run tracegl server.js.
The code:
function load_modules(path) {
var fs = require('fs');
fs.lstat(path, function(err, stat) {
if (stat.isDirectory()) {
// Found a directory, do a tree walk
fs.readdir(path, function(err, files) {
var f, l = files.length;
for (var i = 0; i < l; i++) {
if (files[i] != ".DS_Store") { // Skip OSX's finder files.
f = path_module.join(path, files[i]);
load_modules(f); // walk tree
}
}
});
} else {
// Found a file, load it
var this_module = require(path);
var module_name = path.substring(path.lastIndexOf("/") + 1 , path.lastIndexOf("/").len);
module_name = module_name.substring(0, module_name.length - 3); // remove .js from module_name
api[module_name] = this_module;
try {
var moduleVersion = api[module_name].init();
console.log("[" + module_name + "] API Module v" + moduleVersion + " Loaded");
} catch (err) {
console.error("[" + module_name + "] Error: Could not initialize module!");
console.info("IMPORTANT: Make sure required module.init method is in your module.");
console.error(err);
}
} // if (stat.isDirectory()) {
}); // fs.lstat(path, function(err, stat) {
} // This is line 52 that breaks tracegl
Activity