VSCode Intellisense fails when including NXDK PDCLib
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- c, vscode
- Domain
- developer-experience
Research direction
Start by reading the reported VSCode C/C++ IntelliSense configuration and how nxdk exposes PDCLib headers, especially the pdclib/platform/xbox/include/ path. Reproduce the missing pdclib/_PDCLIB_config.h error with the provided include paths and investigate why adding that path removes other hints. Done when IntelliSense resolves the header and continues providing hints; the issue names no test or source file.
Written by the indexing model from the issue text.
Description
I'm attempting to get VSCode's intellisense to handle NXDK but I seem to be running into an issue.
This is the error code when you do not set the correct location:
cannot open source file "pdclib/_PDCLIB_config.h" (dependency of "stdint.h")
You can get it to work even with the error above (just missing hints for those parts) by setting "C_Cpp.intelliSenseEngineFallback": "Enabled". If you correctly set the include folder for that header intellisense will stop finding hints for everything however it will stop complaining about the error.
Here is my current config:
{
"C_Cpp.intelliSenseEngineFallback": "Enabled",
"C_Cpp.default.systemIncludePath": [
"/home/wsl/Projects/nxdk/lib/",
"/home/wsl/Projects/nxdk/lib/winapi/",
"/home/wsl/Projects/nxdk/lib/pdclib/include/",
//"/home/wsl/Projects/nxdk/lib/pdclib/platform/xbox/include/" // <- this is the problem
],
}
I know the big guys around these parts don't very much care for such features but I find it incredibly helpful and I'm sure new users would as well.
Any ideas or guidance?
- Dominant language
- C
- Stars
- 600
- Forks
- 97
- Avg merge
- 11h 48m
- Merged PRs (30d)
- 2
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from XboxDev/nxdk
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Use faster memcpyOpen
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 1/5 Under an hour Newbie friendliness 38/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
libsndfile/libsndfile#1239 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100