speclj icon indicating copy to clipboard operation
speclj copied to clipboard

Unable to open file '/dev/stdout'

Open mauricioszabo opened this issue 10 years ago • 1 comments

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 :)

mauricioszabo avatar Oct 19 '15 20:10 mauricioszabo

Thanks for that, I ran into the same issue :-)

aklt avatar Jan 19 '16 01:01 aklt