Open Et7f3 opened 5 years ago
@Et7f3 A new version of Pastel has been released. I'll spend some time in the next couple days making it so that snapshots don't cause these errors if they aren't being used.
I filed https://github.com/ocsigen/js_of_ocaml/issues/913 to add unix_is_atty to JSOO along with my thoughts on implementation.
I've verified that your example now works if you provide a manual stub for unix_isatty, use the latest version of Pastel, and create a snapshot directory.
I'm blind I don't see where you fix str issue 👀.
I'm blind I don't see where you fix str issue 👀.
@Et7f3 I removed references to str here https://github.com/facebookexperimental/reason-native/commit/d3203eaeb05b49837fa85b1daed4b31390b64e27, we just hadn't cut a Pastel release since then
Hy I wanted to update https://github.com/bryphe/reason-gl-matrix to rely. I was able to convert to rely natively but I can't run when building with JSOO.
I have some repro on my fork on branch Et7f3/test/switch_to_rely or commit instead https://github.com/Et7f3/reason-gl-matrix/commit/ec2fd9d2c5ea8ddc6f5172435cb49551e8db8aec
I quote some message from discord (https://ptb.discordapp.com/channels/235176658175262720/469417973820686336/641021659989540925).
Me:
@bandersongit
Me:
@bandersongit
function unix_isatty (f) { return false; };
module MockSnapshotIO = { let readSnapshotNames = => []; let readFile: string => string = s => s; let removeFile: string => unit = => (); let writeFile: (string, string) => unit = (, ) => (); let existsFile: string => bool = => false; let mkdirp = => (); }; /* Snapshots will be virtual-modulified at some point, until then we need to inject