Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ailabs-software/fbdbea61e2c8999d745feab4264770ab to your computer and use it in GitHub Desktop.
Save ailabs-software/fbdbea61e2c8999d745feab4264770ab to your computer and use it in GitHub Desktop.
Trying to send dart compile js output to stdout
% dart compile js web/main.dart -o /dev/stdout --no-source-maps
Almost works, but at the end there is an error:
if (typeof dartMainRunner === "function")
dartMainRunner(callMain, []);
else
callMain([]);
});
})();
The compiler crashed: FileSystemException: Cannot create file, path = '/dev/stdout.deps' (OS Error: Operation not permitted, errno = 1)
#0 _File.throwIfError (dart:io/file_impl.dart:635:7)
#1 _File.createSync (dart:io/file_impl.dart:273:5)
#2 writeString (package:compiler/src/dart2js.dart:1095:39)
#3 compile.compilationDone (package:compiler/src/dart2js.dart:907:5)
<asynchronous suspension>
#4 main (package:compiler/src/dart2js.dart:1373:3)
<asynchronous suspension>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment