Open hiroshi opened 3 months ago
Hello, I am a code review bot on flows.network. Here are my reviews of code commits in this PR.
Key Changes:
git checkout v0.5.0-alpha
command to the hello_world.md
file.Most Important Findings:
git checkout v0.5.0-alpha
command without any explanation or context in the hello_world.md
file. This change implies that the user should switch to the specified version after downloading the wasmedge_quickjs.wasm
file. However, it lacks clarity on why this specific version needs to be checked out and how it is related to the downloaded file.Potential Problems:
git checkout v0.5.0-alpha
command without context can be confusing for users. It is important to provide clear explanations and reasoning behind such changes in documentation to ensure users understand the purpose and implications.v0.5.0-alpha
version. This could lead to unexpected behavior or errors during runtime.@hiroshi Thank you very much for your PR, but I think the solution to this issue should be for me to fix quickjs-wasi.
So,what wasmedge version are you using?
docker run --platform=linux/amd64 --rm -v$PWD:/app -w/app wasmedge/slim-runtime:0.13.5 wasmedge --dir .:. wasmedge_quickjs.wasm example_js/wasi_http_fetch.js WasmEdge Runtime
edit2: The HEAD of the main branch ATM is https://github.com/second-state/wasmedge-quickjs/commit/ab181109404403e37a5ac9d3961c78d528ae91aa.
I built wasmedge_quickjs.wasm and it works with main HEAD of wasmedge_quickjs.wasm repo.
So the bug is gone?
I think incompatibility of wasmedge-quickjs.wasm binary and wasmedge-quickjs/modules causes the error. Am I wrong?
I think incompatibility of wasmedge-quickjs.wasm binary and wasmedge-quickjs/modules causes the error. Am I wrong?
I don't know, because I can't reproduce it on any machine I have access to.
You can't reproduce this? https://github.com/WasmEdge/docs/pull/236#issuecomment-2182552851
hmm... the docker image have only amd64 image. So I think it will be reproducible... https://hub.docker.com/r/wasmedge/slim-runtime/tags
docker run --platform=linux/amd64 --rm -v$PWD:/app -w/app wasmedge/slim-runtime:0.13.5 wasmedge --dir .:. wasmedge_quickjs.wasm example_js/wasi_http_fetch.js WasmEdge Runtime
edit2: The HEAD of the main branch ATM is second-state/wasmedge-quickjs@ab18110.
In your example, the wasm file doesn't seem to have changed. Where does it come from
In your example, the wasm file doesn't seem to have changed. Where does it come from
In your example, the wasm file doesn't seem to have changed. Where does it come from
I see what's going on now, thank you for your PR.
But I prefer to update them to 0.6.0 overall instead of checkout back to 0.5
Explanation
Using v0.5.0-alpha wasmedge_quickjs.wasm from https://github.com/second-state/wasmedge-quickjs/releases/download/v0.5.0-alpha/wasmedge_quickjs.wasm
with current HEAD of wasmedge-quickjs cloned git repo (ab181109404403e37a5ac9d3961c78d528ae91aa).
Running http.fetch like example_js/wasi_http_fetch.js. I got
InternalError: invalid socket address syntax
It resolved with
checkout v0.5.0-alpha
. Obviously though, but can be a pit fall.Related issue
What type of PR is this
Proposed Changes