-
Notifications
You must be signed in to change notification settings - Fork 15
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
devcontainer fails with zig build
#53
Comments
It looks lacking the codes of Newlib. This is registered as a submodule. How about doing |
@saza-ku It worked, thanks. |
mewz/examples/hello_world/README.md Lines 1 to 28 in 1c0ea8a
Are the steps for using
This looks like the |
Yeah that's right. The last command builds a kernel image of Mewz, then runs it on a QEMU virtual machine. I think the entire process may not be so different from other wasm runtimes. |
|
@saza-ku I'm having a problem developing with For example, if I click on a function name, I can't jump to it. Have you encountered such a problem? |
Have you installed https://marketplace.visualstudio.com/items?itemName=ziglang.vscode-zig ? And it might be necessary to confirm the paths of (Also we need to set |
Thanks, I didn't have ZLS installed before. Just restart VScode after installing it. Adding some zig plugins could be better. |
We should add more documents about the usages and the architecture. @dierbei Please share what you learn and didn't understand if you don't mind! This information would help us to update the docs 😃 |
No problem. I'm happy to do it. |
@saza-ku The code for the project is difficult for me and I have no knowledge of it. Don't know how to start. Can you give me some ideas? Thanks |
Are you trying to read and understand the codes, or add some feature? |
After my initial perusal of the code, I was completely unable to understand why the code was written the way it was. This state of affairs left me feeling a bit confused, as if I had just started learning programming and I had absolutely no clue as to how to add some functionality to the In the midst of this confusion, I felt like a novice programmer, and I felt completely directionless as to what I should do next. next I will learn how to debug zig. |
I see. I would tell you some hints to understand the codes.
There are a few exceptions: |
@saza-ku Okay, thanks. I'll start with the I haven't tried it before, and I've just been following |
To debug it, you can use GDB. This repository contains .gdbinit. |
@saza-ku Indeed, the code is particularly primitive and not very well understood. It looks like kernel code, which I've never touched before. I was hoping to get involved, but realized there is still a lot to learn. |
If you would like to touch the codes, how about starting with adding integration tests? The integration tests are written in wasi.zig(L632) (also we should separate them from wasi.zig by creating another file🤒) It could help you understand the codes through directly interacting with WASI API provided by Mewz. |
Thanks for the advice, you helped me a lot. |
We can now pass the integration tests by only doing We now have only tests of |
Wow, that's great, maybe I'll be able to try that. |
@saza-ku I just read your share on youtobe, haha! https://www.youtube.com/watch?v=-bCTkwvMzw8 |
To close this issue, we might need to ensure the command is executed automatically. |
@sa Do you mean: run I got this error before because I didn't run |
Yeah, but it's tedeous, isn't it? 😃 |
I am a zig newbie and would like to try to learn.
I'm having problems compiling
mewz
, I runzig build
with the following error. Can you help me with this? Thanks for the help.The text was updated successfully, but these errors were encountered: