Closed SSoelvsten closed 1 year ago
A lot of IntelliSense is missing for Visual Studio Code on Windows if you use the C++ compiler of Windows Subsystem for Linux (WSL) as I and Anna have done. The solution is to open the project in VSCode with WSL (https://code.visualstudio.com/docs/cpp/config-wsl). For example, one can do so as follows.
code .
Just ensure, the addons also are installed for the WSL version.
Yewt, this only adds IntellliSense to the src/ folder, but not the test/ folder. The problem here is, that the build dependencies of each .cpp is unknown to CMake and it does not include any of the common definitions.
test.h
file.test_*.cpp
file into its own build target with dependencies and import test.h
.test.cpp
to test_all.cpp
This has the added benefit, that one can faster compile and run a subset of the unit tests.
Currently all test files have red scripples all over them in Visual Studio Code. It would be better, if we somehow can get it to work properly. Adding
#include <adiar/adiar.h>
at the top of each test file does not seem to work. One probably needs to mess with CMake.