Closed ilobilo closed 2 years ago
Hi @ilobilo . Could you provide the output of the C/C++: Log Diagnostics
command, with a file open that reproduces these issues? That should provide us with information on how IntelliSense is configured for that file. Could you provide example code that you are using to reproduce these issues, as well as your configuration (contents of c_cpp_properties.json
or relevant C_Cpp.*
settings), so that we can reproduce and investigate these issues?
For # 3, could you also provide the setting you are using to provide the value of this define?
For # 4, Does the same code that reproduces this issue also compile successfully? The locations of system headers are determined by querying the compiler (either the default compiler, or one you specified in your configuration).
output of log diagnostics: https://termbin.com/q5tc also it compiles normally, no errors from clang For # 3.
"defines": [
"GIT_VERSION=0",
"KERNEL_VERSION=0"
],
Hi @ilobilo . I see from your diagnostics logs that your project is configured to use the Makefile Tools extension, to provide IntelliSense configurations to the C/C++ extension. And, it also appears that your project is (or involves) the Linux kernel.
It's unclear to me whether Makefile tools itself has been configured, as there does not appear to be any custom configuration information reflected in your log. Rather, the file you opened appears to be using only your base configuration specified in c_cpp_properties.json
. Since it looks like you working with Linux kernel source code, using Makefile Tools would be the correct way to get things configured, as there are numerous defines and include paths that would otherwise need to be specified in c_cpp_properties.json
to get proper IntelliSense for Linux kernel sources. If you're having difficulty configuring the Makefile Tools extension, its repo is here: https://github.com/microsoft/vscode-makefile-tools
For # 3, The defines you specified don't appear to include the DEFINE_NAME
macro you indicated was not being defined correctly.
hey @Colengms I'm not building the Linux kernel, this is my own osdev project Also DEFINE_NAME was not real name I meant KERNEL_VERSION and GIT_VERSION defines by that
Hi @ilobilo . Your # 3 refers to quoted text within a macro, but those macros do not have quotes in them. So, I'm not sure how to help you with that issue.
Do you still have issues here that are not yet addressed? If so, could you please provide clear, stand-alone examples that we can use to fully reproduce those issues ourselves, to investigate further?
This issue has been closed automatically because it needs more information and has not had recent activity.