Closed fcharlie closed 1 year ago
@fcharlie Are you able to install the CMake Tools extension, configure it, and set the configurationProvider ? Does that fix the issue? We can try it ourselves too later. It's possible adding "${workspaceFolder}/**" to the start of your includePath could also fix the issue, but using CMake Tools is the preferred method of configuration (it's more accurate).
@fcharlie Are you able to install the CMake Tools extension, configure it, and set the configurationProvider ? Does that fix the issue? We can try it ourselves too later. It's possible adding "${workspaceFolder}/**" to the start of your includePath could also fix the issue, but using CMake Tools is the preferred method of configuration (it's more accurate).
I'll try it when I have time
@sean-mcmanus No issues have been reported so far with cmake tools enabled.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
Recently, when I used VSCode to develop my open source project baulk, I found that the c++ extension incorrectly reported the error of json.hpp, I believe that this cannot be the error of json.hpp, because my project can be compiled normally Yes, the operation is normal. So I speculate that the C++ language service of vscode-cpptools may not be able to parse this version of json.hpp correctly.
json.hpp release: https://github.com/nlohmann/json/releases/tag/v3.11.2
Steps to reproduce:
Expected behavior
No response
Code sample and Logs
Syntax errors are no longer reported after deleting c_cpp_properties.json under the workspace.
Screenshots
Error screenshot
Additional context
Open this project with visual studio + cmake, there is no error in syntax parsing