Skip to content

Commit 4f41e30

Browse files
authored
Merge pull request #9 from sir-gon/develop
Develop
2 parents 5d04032 + 8956691 commit 4f41e30

File tree

4 files changed

+105
-3
lines changed

4 files changed

+105
-3
lines changed

.github/workflows/cpp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
3434
- name: Install dependencies
3535
run: |
36-
vcpkg integrate install
37-
vcpkg install
36+
vcpkg --x-wait-for-lock integrate install
37+
vcpkg --x-wait-for-lock install
3838
3939
# yamllint disable rule:line-length
4040
- name: Build

.vscode/launch.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "(lldb) Launch",
6+
"type": "cppdbg",
7+
"request": "launch",
8+
// Resolved by CMake Tools:
9+
"program": "${command:cmake.launchTargetPath}",
10+
"args": [],
11+
"stopAtEntry": false,
12+
"cwd": "${workspaceFolder}/src/tests",
13+
"environment": [
14+
{
15+
// add the directory where our target was built to the PATHs
16+
// it gets resolved by CMake Tools:
17+
"name": "PATH",
18+
"value": "$PATH:${command:cmake.launchTargetDirectory}"
19+
}
20+
],
21+
"externalConsole": true,
22+
"MIMode": "lldb",
23+
}
24+
]
25+
}

CMakePresets.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
{
66
"name": "debug",
77
"cacheVariables": {
8-
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
8+
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
9+
"CMAKE_BUILD_TYPE": "Debug"
910
},
1011
"generator": "Unix Makefiles",
1112
"binaryDir": "${sourceDir}/build/default"

Environment-Notes.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Environment notes
2+
3+
OS: MacOS Sonoma 14.6.1 (23G93)
4+
5+
```sh
6+
uname -a
7+
```
8+
9+
```text
10+
Darwin epoch.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:00 PDT 2024; root:xnu-10063.141.2~1/RELEASE_X86_64 x86_64
11+
```
12+
13+
## Enable debugging with VSCode
14+
15+
<https://github.com/microsoft/vscode-cmake-tools/issues/3034>
16+
17+
## Tools
18+
19+
Required tools:
20+
21+
- Homebrew
22+
- Xcode command line tools
23+
24+
<https://www.freecodecamp.org/news/install-xcode-command-line-tools/>
25+
26+
Then, the C++ local stack I choose:
27+
28+
```sh
29+
brew install --cask cmake
30+
brew install clang-format cppcheck make vcpkg
31+
32+
```
33+
34+
## Visual Studio Code extensions
35+
36+
Suggested for a C++ stack
37+
38+
```sh
39+
code --install-extension ms-vscode.cpptools-extension-pack
40+
code --install-extension ms-vscode.cmake-tools
41+
code --install-extension xaver.clang-format
42+
code --install-extension ryanluker.vscode-coverage-gutters
43+
code --install-extension NathanJ.cpp-tools-plugin
44+
code --install-extension ms-vscode.makefile-tools
45+
```
46+
47+
General purpose
48+
49+
```sh
50+
code --install-extension ms-azuretools.vscode-docker
51+
code --install-extension EditorConfig.EditorConfig
52+
code --install-extension donjayamanne.githistory
53+
code --install-extension shd101wyy.markdown-preview-enhanced
54+
code --install-extension DavidAnson.vscode-markdownlint
55+
code --install-extension bpruitt-goddard.mermaid-markdown-syntax-highlighting
56+
code --install-extension esbenp.prettier-vscode
57+
code --install-extension redhat.vscode-yaml
58+
```
59+
60+
Optional (cosmetic purpose)
61+
62+
```sh
63+
code --install-extension aaron-bond.better-comments
64+
code --install-extension isotechnics.commentlinks
65+
code --install-extension johnpapa.vscode-peacock
66+
code --install-extension vscode-icons-team.vscode-icons
67+
```
68+
69+
Extra for complementary external services
70+
71+
```sh
72+
code --install-extension snyk-security.snyk-vulnerability-scanner
73+
code --install-extension SonarSource.sonarlint-vscode
74+
code --install-extension github.vscode-github-actions
75+
76+
```

0 commit comments

Comments
 (0)