Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include error with node_api.h in addon.cpp when performing some changes in C files #6207

Open
2 tasks done
sahilk45 opened this issue Mar 19, 2025 · 1 comment
Open
2 tasks done

Comments

@sahilk45
Copy link

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 path

Version

@stdlib/[email protected]

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
Copy link
Contributor

👋 Hi there! 👋

And thank you for opening your first issue! We will get back to you shortly. 🏃 💨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants