speclj
speclj copied to clipboard
Unable to open file '/dev/stdout'
Just a simple correction, on some linux versions (mine is Ubuntu 14.04), this error happens when trying to use speclj on ClojureScript with the generated code you provide, or with the bin/speclj that you document. I've corrected using the following bin/speclj:
#! /usr/bin/env phantomjs
var fs = require("fs");
var p = require('webpage').create();
var sys = require('system');
p.onConsoleMessage = function (x) {
sys.stdout.write(x); // <- use the internal API
};
p.injectJs("resources/private/js/polyfill.js");
p.injectJs(phantom.args[0]);
var result = p.evaluate(function () {
speclj.run.standard.armed = true;
return speclj.run.standard.run_specs(
cljs.core.keyword("color"), true
);
});
phantom.exit(result);
So that others with the same problem as me could have somewhere to search :)
Thanks for that, I ran into the same issue :-)