-
Notifications
You must be signed in to change notification settings - Fork 22
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 file not found #24
Comments
Hi! Force including a single header will still make the clang compiler fail when searching for that include, as it is just an extra include added on top of everything. Could you try adding the If this still fails. You can try adding to the Extra Compiler Command Line Arguments in the extension settings the include directory where Please let me know if this fixes the issue. |
Hmm, maybe this wont work then... I thought the addon could parse the text and show struct sizes, I didnt know it was tied to clang. (which wont work I think as its MIPS code) "AdditionalPreprocessorDefinitions": "",
"AdditionalIncludeDirs": "${ProjectDir};${ProjectDir}\\include;${ProjectDir}\\include\\PR;",
"AdditionalForceIncludes": "${ProjectDir}\\include\\ultra64.h;",
"AdditionalCommandLine": "", here is an example struct typedef struct PathData
{
s32 *pads; /*0x00*/
u8 id; /*0x04*/
u8 flags; /*0x05*/
u16 len; /*0x06*/
} PathData; I was expecting it to show it as 2 words long (32 + 8 + 8 + 16) Also, the ultra64.h contains the defs for s32 (int) u8 (char) etc |
Yes. The extension is using Clang to parse the C++ and then extract from its AST the actual offsets and sizes from the active configuration. It only uses the compiler's frontend so it should be fine if the target is MIPS (not familiar with it, so I might be wrong and maybe Clang has some problems dealing with it). As you said, the whole point of the extension is to get the information you mentioned. For some odd reason it is failing to find that include in
Also if possible, check in the StructLayout output pane inside VS if the command line for compilation is complete or if anything is missing in there. |
I'm having the same issue all of a sudden. The extension was working great but now it's stopped with the same cannot find file error.
The strange thing is the include path has been correctly detected and supplied:
Manually adding the path doesn't work. Any ideas on what might be going on? I also don't understand why it just stopped working randomly. |
Okay, figured out why it stopped working, no idea of the actual cause: Having this include path in the args, breaks it:
I just noticed that it also has quotation marks around it where the others dont. These are auto infered so I'm not sure what's going on there... |
That's strange. |
I keep getting "File not found" no matter if I explicitly include the file in settings or not.
the message reads
I have explicitly included ultra64.h in the settings dialog but it still complains.
The text was updated successfully, but these errors were encountered: