catchorg / Catch2

A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
https://discord.gg/4CWS9zD
Boost Software License 1.0
18.58k stars 3.05k forks source link

Visual Studio Code IntelliSense Error #2890

Open Riley-horrix opened 2 months ago

Riley-horrix commented 2 months ago

Describe the bug The following intellisense error is occurring in all of my testing suites.

Screenshot 2024-07-22 at 22 50 12

When compiling and executing this code, all tests pass and there are no errors.

Expected behavior This should not be an error.

Platform information:

lfmunoz commented 2 days ago

Works for me paste your c_cpp_properties.json file inside the .vscode directory. Are you pointing to catch2 header file folder?

image

Riley-horrix commented 2 days ago

Hi,

Regarding your recent email, my c_cpp_properties looked like the attached image. Adding the standard, Completely fixed the error and removed the intellisense warning.

Many thanks Riley

-- @.***

On Wed, Oct 16, 2024, at 4:13 AM, Luis wrote:

Works for me paste your c_cpp_properties.json file inside the .vscode directory. Are you pointing to catch2 header file folder?

image.png (view on web) https://github.com/user-attachments/assets/97c47615-52d7-4cc6-9b51-8c1f24c7e301

— Reply to this email directly, view it on GitHub https://github.com/catchorg/Catch2/issues/2890#issuecomment-2415637672, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATN5K6CIVTL6RYXT6HTHY63Z3XKXPAVCNFSM6AAAAABLJEN6ZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVGYZTONRXGI. You are receiving this because you authored the thread.Message ID: @.***>