You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e727a15
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: DEVELOPMENT.md
+7-34Lines changed: 7 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,22 +8,18 @@ After following this guide, you will be able to execute all the local PC develop
8
8
To run all repository tooling locally, you will need the following prerequisites:
9
9
10
10
*[Latest version of LLVM](https://github.com/llvm/llvm-project/releases)
11
-
* Select: ☑️ Add LLVM to the system PATH for the current user
12
11
*[Visual Studio Build Tools for C++](https://visualstudio.microsoft.com/visual-cpp-build-tools/) with components:
13
12
* Workload: Desktop development with C++
14
-
*[Latest version of Visual Studio Code](https://code.visualstudio.com/Download) with extensions:
15
-
* C/C++ (ms-vscode.cpptools)
16
-
* rust-analyzer (rust-lang.rust-analyzer)
17
-
* WSL (ms-vscode-remote.remote-wsl)
18
-
19
-
> 💡 Using an IDE other than Visual Studio Code is possible, though the setup process is not documented here.
20
-
21
13
*[Latest version of Git](https://git-scm.com/downloads/win) with components:
22
14
* Git LFS (Large File Storage)
23
15
*[Latest version of PowerShell 7](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows)
24
16
25
17
For detailed configuration of the above, use your own judgement - the defaults should work but customization is also generally fine.
26
18
19
+
The following directories must be in PATH:
20
+
21
+
*`c:\Program Files\LLVM\bin`
22
+
27
23
This guide assumes a clean Windows PC in other regards.
28
24
29
25
# Windows environment setup
@@ -39,23 +35,20 @@ After installing the Rust toolchain, we setup repository-specific tooling:
39
35
> 💡 Even though the Windows and Linux development environments are largely independent, they will both use the same working directory (created by the above `git clone` command). This allows you to build and test your changes immediately on both operating systems.
40
36
41
37
2. Switch to the `oxidizer` directory: `cd oxidizer`.
42
-
2. Execute `git config --local include.path ./.gitconfig` to attach the repo-specific Git configuration.
43
38
2. Execute `just anvil-setup` to install all necessary Rust toolchain versions and development tooling.
44
39
2. Execute `Install-Module -Name Pester -RequiredVersion 5.7.1 -Force -Scope CurrentUser -SkipPublisherCheck` to install the release-script test dependency.
45
-
2. Open `.vscode/settings.template.jsonc` and save a copy as `.vscode/settings.json` to apply repo-specific settings for Visual Studio Code. Part of this file should be the same for everyone but the rest you can customize - refer to inline comments.
46
40
47
41
## Validate Windows environment
48
42
49
43
1. Execute `just anvil-build` to build the workspace. Verify that the build is successful.
50
44
1. Execute `just anvil-pr-test` to execute the test and coverage group. Verify that it succeeds.
51
45
1. Execute `just test-scripts` to run the Pester suite for the release-related PowerShell scripts. Verify that all tests pass.
52
-
1. Validate that debugging works by opening `crates/tick/examples/tick_basic.rs` and pressing the `Debug` link that appears above `main()`. This should successfully launch the example app under the debugger.
53
46
54
47
# Linux (WSL) environment setup
55
48
56
-
The Linux distribution we use for development is **Ubuntu 24.04**, running as a WSL virtual machine.
49
+
The Linux distribution we use for development is **Ubuntu**, running as a WSL virtual machine.
57
50
58
-
1. Install [Ubuntu 24.04.1 LTS](https://apps.microsoft.com/detail/9NZ3KLHXDJP5?hl=en-us&gl=US&ocid=pdpshare) from the Microsoft Store.
51
+
1. Install [Ubuntu](https://apps.microsoft.com/detail/9PDXGNCFSCZV?hl=en-us&gl=US&ocid=pdpshare) from the Microsoft Store.
59
52
1. Open an Ubuntu terminal (e.g. from the Microsoft Store page, from the Start menu or in Windows Terminal).
60
53
* If you get an error about a required feature not being installed, try first restarting the PC to complete the feature installation.
61
54
1. You will be asked to create a user account the first time you run Ubuntu. This is a local account unique to the Linux VM and is not related to your account on the host machine.
@@ -67,7 +60,7 @@ Next, we upgrade, install and configure development prerequisites:
67
60
1. Execute `sudo apt update && sudo apt dist-upgrade -y` to upgrade everything that is already installed.
68
61
1. Execute `sudo apt install -y curl clang llvm libclang-dev gdb perl python3 python3-pip git git-lfs build-essential cmake pkg-config libssl-dev valgrind` to ensure that essential packages are installed.
1. Execute `git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exe"` to set the correct Git authentication flow.
63
+
1. Execute `git config --global credential.helper "/mnt/c/Program\ Files/Git/ucrt64/bin/git-credential-manager.exe"` to set the correct Git authentication flow.
71
64
1. Execute `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh` and install Rust with all default settings.
72
65
1. Reopen the terminal to apply changes.
73
66
1. Execute `cargo install just --locked` to install the Just utility (unless already installed).
@@ -96,26 +89,6 @@ After installing the Rust toolchains, we setup the build target directory for fa
96
89
1. Execute `just anvil-pr-test` to execute the test and coverage group. Verify that it succeeds.
97
90
1. Execute `just test-scripts` to run the Pester suite for the release-related PowerShell scripts. Verify that all tests pass.
98
91
99
-
## Setup Visual Studio Code integration
100
-
101
-
Visual Studio Code is also our standard Linux IDE and requires some additional setup to work with the Linux workspace.
102
-
103
-
> ⚠️ While the IDE runs on the Windows desktop, all tooling runs in the Linux VM, including Visual Studio Code extensions. The below steps will instruct you to install the minimum set of required Visual Studio Code extensions for the Linux environment.
104
-
105
-
1. In an Ubuntu terminal, in the `oxidizer` directory, execute `code .` to open the project in Visual Studio Code.
106
-
1. Open the Extensions panel in Visual Studio Code.
107
-
1. Install following extensions by selecting "Install in WSL" for each:
108
-
* C/C++ (ms-vscode.cpptools)
109
-
* rust-analyzer (rust-lang.rust-analyzer)
110
-
1. Close Visual Studio Code and open it again via `code .` to complete extension setup.
111
-
112
-
Validate the setup by executing the following tasks from the task palette (F1):
113
-
114
-
1.`Tasks: Run Build Task`
115
-
1.`Tasks: Run Test Task`
116
-
117
-
Validate that debugging works by opening `crates/tick/examples/tick_basic.rs` and pressing the `Debug` link that appears above `main()`. This should successfully launch the example app under the debugger.
118
-
119
92
# Before submitting a pull request
120
93
121
94
Run all essential CI checks locally with a single command:
0 commit comments