Include error with node_api.h in addon.cpp when performing some changes in C files
sahilk45 opened this issue ยท 1 comments
sahilk45 commented
Description
Encountered an error when when performing some changes in C files of base folder.
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit
Configuration
I've tried configuring my c_cpp_properties.json as follows:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"E:/gs_2_stdlib/node_modules/@stdlib/",
"E:/gs_2_stdlib/include/"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:\\MinGW\\bin\\gcc.exe",
"cStandard": "c17",
"cppStandard": "gnu++17",
"intelliSenseMode": "windows-gcc-x64"
}
],
"version": 4
}
### Related Issues
Related issues # , # , and # .
### Questions
How to update includepath in c_cpp_properties.json in VScode?
### Demo
_No response_
### Reproduction
```shell
1. Clone the stdlib repository
2. Navigate to the addon.cpp file at any of addon.cpp file of base: `node_modules\@stdlib\stats\base\..\src\addon.cpp`
3. The IDE shows errors for `#include <node_api.h>`Expected Results
The node_api.h header should be found correctly without manual path configuration.Actual Results
Error to find include pathVersion
@stdlib/stdlib@0.3.2
Environments
Node.js
Browser Version
No response
Node.js / npm Version
v20.14.0
Platform
No response
Checklist
- Read and understood the Code of Conduct.
- Searched for existing issues and pull requests.
stdlib-bot commented
๐ Hi there! ๐
And thank you for opening your first issue! We will get back to you shortly. ๐ ๐จ