Skip to content

Commit 6ecf867

Browse files
authored
chore: improve developer experience (#35)
* chore: ignore files * doc: how to set AX_CONFIG_PATH
1 parent 554f0c7 commit 6ecf867

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ apps/*/build/
99
**/target/
1010
**/Cargo.lock
1111
!/vendor/**/Cargo.lock
12-
/.axconfig.*
12+
/.axconfig.*
13+
*.img

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@ make ARCH=x86_64 LOG=info AX_TESTCASE=nimbos run
141141

142142
Note: Arguments like `NET`, `BLK`, and `GRAPHIC` enable devices in QEMU, which take effect only at runtime, not at build time. More features can be found in the [Cargo.toml of arceos](https://github.com/oscomp/arceos/blob/main/ulib/axstd/Cargo.toml).
143143

144+
#### Development with Visual Studio Code
145+
146+
Since ArceOS relies on special build scripts and some environment variables, this usually causes `rust-analyzer` to prompt some annoying errors. You may want to put the following configuration into `.vscode/settings.json` (ie workspace settings):
147+
```json
148+
{
149+
"rust-analyzer.cargo.extraEnv": {
150+
"AX_CONFIG_PATH": "${workspaceFolder}/.axconfig.toml"
151+
}
152+
}
153+
```
154+
144155
## Test for oscomp testcases
145156

146157
We can run [testcases of the OS competition](https://github.com/oscomp/testsuits-for-oskernel/tree/pre-2025) with StarryOS. Guidence can be found in [Starry-Tutorial](https://azure-stars.github.io/Starry-Tutorial-Book/ch03-02.html).

apps/oscomp/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
testcase_list
2+
*.out

apps/oscomp/testcase_list

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)