Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open file '/dev/stdout' #144

Open
mauricioszabo opened this issue Oct 19, 2015 · 1 comment
Open

Unable to open file '/dev/stdout' #144

mauricioszabo opened this issue Oct 19, 2015 · 1 comment

Comments

@mauricioszabo
Copy link

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

@aklt
Copy link

aklt commented Jan 19, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants