Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRunning wasm output via node does not work when in a different directory #4542
Comments
This comment has been minimized.
This comment has been minimized.
|
This is actually quite ugly to work around in our test runner. |
This comment has been minimized.
This comment has been minimized.
|
Yeah, sorry about this. I'm not sure what we can do to improve. On both node.js and on the web, there isn't a One specific possibility is you can add some code using |
This comment has been minimized.
This comment has been minimized.
rschulman
commented
Sep 7, 2016
|
I'm not sure that it will be as ugly as you thought at first glance, @brson. I think that there may be a solution in Do you think that would fix the problem we're seeing? Or is there only one way to find out? |
This comment has been minimized.
This comment has been minimized.
|
@rschulman Yes, either of those solutions should work. The only thing I suspect might cause problems is the various paths being passed around - if any of them are relative things could break. But let's just try and see what happens. |
bors
added a commit
to rust-lang/rust
that referenced
this issue
Sep 28, 2016
bors
added a commit
to rust-lang/rust
that referenced
this issue
Oct 1, 2016
RReverser
referenced this issue
Apr 29, 2017
Closed
Search for .mem in same directory as Node script #4942
This was referenced Jun 7, 2017
bors
added a commit
to rust-lang/rust
that referenced
this issue
Jun 15, 2017
bors
added a commit
to rust-lang/rust
that referenced
this issue
Jun 15, 2017
bors
added a commit
to rust-lang/rust
that referenced
this issue
Jun 16, 2017
zandaqo
referenced this issue
Jun 26, 2017
Closed
Workaround for crossplatform loading of .wasm files #5342
nazar-pc
referenced this issue
Jul 7, 2017
Merged
Fix for loading wasm files under Node.js and in browser when files we… #5368
This comment has been minimized.
This comment has been minimized.
patrickroberts
commented
Jul 8, 2018
•
At least in Node.js, you have |
This comment has been minimized.
This comment has been minimized.
|
@patrickroberts, #5368 fixes this issue. It just wasn't merged yet. |
This comment has been minimized.
This comment has been minimized.
patrickroberts
commented
Jul 10, 2018
|
@nazar-pc thanks for letting me know. I tried to check out your fork of emscripten and rebuild emsdk with it, but the expected versions of llvm caused compilation to fail. What commit of emsdk should I fork that's compatible with your pull request? |
This comment has been minimized.
This comment has been minimized.
|
Try to install version that was latest stable approximately at the time of last commit in that PR. |
This comment has been minimized.
This comment has been minimized.
|
Quick update: PR was rebased against incoming (look for commits with green tests) so that you can benefit from Emscripten's improvements over the last year. Will hopefully be merged soon. |
brson commentedSep 6, 2016
•
edited
The Rust test suite runs tests using commands like
This results in the following error:
This instead works successfully:
I suspect I can work around this by changing the directory in our test runner.