From abddd1e640c04defb937b47944334002df30e8e7 Mon Sep 17 00:00:00 2001 From: "Martin R. Smith" <1695515+ms609@users.noreply.github.com> Date: Thu, 14 Nov 2024 09:41:00 +0000 Subject: [PATCH] Specify Boost location --- developer/setup/vscode.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/developer/setup/vscode.md b/developer/setup/vscode.md index 73b9cbc8..a5ae90ee 100644 --- a/developer/setup/vscode.md +++ b/developer/setup/vscode.md @@ -12,7 +12,7 @@ You will first need to inst Now you will need to install three extensions to get RevBayes to work nicely. To do this click on the button shown below in VSCode. - +Location of Extension button in VSCode Getting RevBayes working ------------------------ @@ -22,4 +22,18 @@ Now that these are installed, Cmake tools will prompt in the lower right asking Once the Cmake build finishes, you can setup debugging by clicking the triangle with the small beatle in the lower left. Now click on the gear shown below. This will open a new file called `launch.json`. You need to change the values for the `"program:"` object to the path where your `rb` executeable is. For example, `"${workspaceFolder}/projects/cmake/rb"`. In vscode `${workspaceFolder}` refers to the root folder of the project you opened. To test a specific rev script, change the value of the `"args"` object to a location of a Rev script.With that you can use debugging in VSCode by pressing the play button or using the command palette (CTRL/CMD + SHIFT + P) and using the "Cmake: Debug" command. - +Location of Debug command in VSCode + +If you encounter the error `BOOST_ROOT not set`, create a file `.vscode/settings.json` with the content + +```json +{ + "cmake.environment": { + "BOOST_ROOT": "C:/Program Files/Boost/boost_1_86_0", + "BOOST_LIBRARYDIR": "C:/Program Files/Boost/boost_1_86_0/lib" + } +} +``` + +Update each path to match the location of your own Boost installation. +