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

[browser] fix emscripten out/err overrides #100630

Merged
merged 6 commits into from
Apr 9, 2024

Conversation

pavelsavara
Copy link
Member

Emscripten changed the way how they export Module.out/Module.err but they still need to be overridden via Module.print and Module.printErr

Contributes to #100591

@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript os-browser Browser variant of arch-wasm labels Apr 4, 2024
@pavelsavara pavelsavara added this to the 9.0.0 milestone Apr 4, 2024
@pavelsavara pavelsavara requested a review from maraf April 4, 2024 11:20
@pavelsavara pavelsavara self-assigned this Apr 4, 2024
Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

@maraf
Copy link
Member

maraf commented Apr 4, 2024

We should have a test for this

@pavelsavara pavelsavara marked this pull request as ready for review April 9, 2024 12:52
@pavelsavara
Copy link
Member Author

We should have a test for this

image

@pavelsavara pavelsavara merged commit e60d9a3 into dotnet:main Apr 9, 2024
34 of 36 checks passed
@pavelsavara pavelsavara deleted the browser_emscripten_out_err branch April 9, 2024 13:11
@pavelsavara
Copy link
Member Author

/backport to release/8.0

Copy link
Contributor

github-actions bot commented Apr 9, 2024

Started backporting to release/8.0: https://github.com/dotnet/runtime/actions/runs/8616454583

Copy link
Contributor

github-actions bot commented Apr 9, 2024

@pavelsavara backporting to release/8.0 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: fix emscripten out/err overrides
Using index info to reconstruct a base tree...
A	src/mono/browser/runtime/loader/assets.ts
A	src/mono/browser/runtime/loader/icu.ts
A	src/mono/browser/runtime/loader/run.ts
A	src/mono/browser/runtime/startup.ts
A	src/mono/browser/runtime/types/internal.ts
M	src/mono/sample/wasm/browser-advanced/main.js
Falling back to patching base and 3-way merge...
Auto-merging src/mono/wasm/runtime/types/internal.ts
CONFLICT (content): Merge conflict in src/mono/wasm/runtime/types/internal.ts
Auto-merging src/mono/wasm/runtime/startup.ts
CONFLICT (content): Merge conflict in src/mono/wasm/runtime/startup.ts
Auto-merging src/mono/wasm/runtime/loader/run.ts
Auto-merging src/mono/wasm/runtime/loader/icu.ts
Auto-merging src/mono/wasm/runtime/loader/assets.ts
Auto-merging src/mono/sample/wasm/browser-advanced/main.js
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 fix emscripten out/err overrides
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

Copy link
Contributor

github-actions bot commented Apr 9, 2024

@pavelsavara an error occurred while backporting to release/8.0, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

pavelsavara added a commit to pavelsavara/runtime that referenced this pull request Apr 9, 2024
lewing pushed a commit that referenced this pull request Apr 15, 2024
matouskozak pushed a commit to matouskozak/runtime that referenced this pull request Apr 30, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants