Open yuw444 opened 1 day ago
Hi @yuw444 I'm not easily able to repro this issue. However, you appear to be using a specific version of gcc installed under your home directory, so that may explain the difference.
If there are preprocessor conditionals around the definition, it's possible that IntelliSense hasn't been provided (or generated) those definitions. 'Go To Definition' may still work, as that feature is based on a lexical/syntactic parse of source/header files (which get stored into a database), while IntelliSense squiggles are a result of a semantic parse (front end compilation) of the source and headers it includes.
Does the file that is repro'ing the issue compile directly via command line? If so, are those same arguments also present in your configuration? IntelliSense internally uses a C++ front-end to compile source code, so would require the same information required to compile the file via command line.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
Error squiggles on the constant macro from, but
Go to Definition
could locate the constant from theincludedPath
Steps to reproduce:
view problem
Go to Definition
, definitions showed up from 3 possible paths, which are inincludedPath
Expected behavior: no error squiggles, but I don't like to disable the error.squiggles feature when true error shows
Configuration and Logs
Other Extensions
No response
Additional context
No response