Skip to content

Commit e727a15

Browse files
committed
Merge remote-tracking branch 'origin/u/sasaares/clean-dev-env-jank' into u/sasaares/friendly-adventure
2 parents 9e73397 + db24991 commit e727a15

5 files changed

Lines changed: 7 additions & 333 deletions

File tree

‎.gitconfig‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎.vscode/extensions.json‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎.vscode/settings.template.jsonc‎

Lines changed: 0 additions & 85 deletions
This file was deleted.

‎.vscode/tasks.json‎

Lines changed: 0 additions & 197 deletions
This file was deleted.

‎DEVELOPMENT.md‎

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,18 @@ After following this guide, you will be able to execute all the local PC develop
88
To run all repository tooling locally, you will need the following prerequisites:
99

1010
* [Latest version of LLVM](https://github.com/llvm/llvm-project/releases)
11-
* Select: ☑️ Add LLVM to the system PATH for the current user
1211
* [Visual Studio Build Tools for C++](https://visualstudio.microsoft.com/visual-cpp-build-tools/) with components:
1312
* 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-
2113
* [Latest version of Git](https://git-scm.com/downloads/win) with components:
2214
* Git LFS (Large File Storage)
2315
* [Latest version of PowerShell 7](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows)
2416

2517
For detailed configuration of the above, use your own judgement - the defaults should work but customization is also generally fine.
2618

19+
The following directories must be in PATH:
20+
21+
* `c:\Program Files\LLVM\bin`
22+
2723
This guide assumes a clean Windows PC in other regards.
2824

2925
# Windows environment setup
@@ -39,23 +35,20 @@ After installing the Rust toolchain, we setup repository-specific tooling:
3935
> 💡 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.
4036
4137
2. Switch to the `oxidizer` directory: `cd oxidizer`.
42-
2. Execute `git config --local include.path ./.gitconfig` to attach the repo-specific Git configuration.
4338
2. Execute `just anvil-setup` to install all necessary Rust toolchain versions and development tooling.
4439
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.
4640

4741
## Validate Windows environment
4842

4943
1. Execute `just anvil-build` to build the workspace. Verify that the build is successful.
5044
1. Execute `just anvil-pr-test` to execute the test and coverage group. Verify that it succeeds.
5145
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.
5346

5447
# Linux (WSL) environment setup
5548

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.
5750

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.
5952
1. Open an Ubuntu terminal (e.g. from the Microsoft Store page, from the Start menu or in Windows Terminal).
6053
* If you get an error about a required feature not being installed, try first restarting the PC to complete the feature installation.
6154
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:
6760
1. Execute `sudo apt update && sudo apt dist-upgrade -y` to upgrade everything that is already installed.
6861
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.
6962
1. [Install PowerShell 7](https://learn.microsoft.com/en-us/powershell/scripting/install/install-ubuntu?view=powershell-7.5#installation-via-package-repository-the-package-repository).
70-
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.
7164
1. Execute `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh` and install Rust with all default settings.
7265
1. Reopen the terminal to apply changes.
7366
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
9689
1. Execute `just anvil-pr-test` to execute the test and coverage group. Verify that it succeeds.
9790
1. Execute `just test-scripts` to run the Pester suite for the release-related PowerShell scripts. Verify that all tests pass.
9891

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-
11992
# Before submitting a pull request
12093

12194
Run all essential CI checks locally with a single command:

0 commit comments

Comments
 (0)