Closed diablodale closed 1 month ago
Also reproduces with same OP except...
-------- Diagnostics - 5/6/2024, 3:42:18 PM
Version: 1.19.9
Current Configuration:
{
"name": "Linux",
"includePath": [
"/mnt/c/repos-nobackup/cpptools-bug-hover-constexpr/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c17",
"cppStandard": "gnu++14",
"intelliSenseMode": "linux-gcc-x64",
"compilerPathInCppPropertiesJson": "/usr/bin/gcc",
"intelliSenseModeIsExplicit": false,
"cStandardIsExplicit": false,
"cppStandardIsExplicit": false,
"mergeConfigurations": false,
"compilerPathIsExplicit": false,
"browse": {
"path": [
"/mnt/c/repos-nobackup/cpptools-bug-hover-constexpr/**",
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true
}
}
cpptools version (native): 1.19.9.0
Translation Unit Mappings:
[ /mnt/c/repos-nobackup/cpptools-bug-hover-constexpr/my-cpp-project/src/main.cpp - source TU]:
Translation Unit Configurations:
[ /mnt/c/repos-nobackup/cpptools-bug-hover-constexpr/my-cpp-project/src/main.cpp ]:
Process ID: 57904
Memory Usage: 11 MB
Compiler Path: /usr/bin/gcc
Includes:
/usr/include/c++/9
/usr/include/x86_64-linux-gnu/c++/9
/usr/include/c++/9/backward
/usr/lib/gcc/x86_64-linux-gnu/9/include
/usr/local/include
/usr/include/x86_64-linux-gnu
/usr/include
Standard Version: c++14
IntelliSense Mode: linux-gcc-x64
Other Flags:
--g++
--gnu_version=90400
Total Memory Usage: 11 MB
------- Workspace parsing diagnostics -------
Number of files discovered (not excluded): 2498
@diablodale I've filed a bug on our shared VS implementation at https://developercommunity.visualstudio.com/t/C-IntelliSense-doesnt-show-the-hover/10653170 .
got it. Does that team also own the code that is used in WSL with GCC? I thought there were separate components provided by the GCC project for hover/parsing.
@diablodale Sorry, I missed your earlier comment -- our team/extension owns the IntelliSense code that is used with WSL/gcc (although it is still shared with VS and depends on the EDG parser at the lowest layer).
@diablodale This is fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.22.1 .
yay. confirmed fix using cpptools v1.22.9 with kits
Environment
Bug Summary and Steps to Reproduce
Summary
Some combinations of static/not for constexpr formula are not evaluated by intellisense hover. Statements as
static constexpr...
sometimes do not evaluate.Setup
Repro
Result
Only 6 of 8 variables have their results evaluated on hover. Two of the
static constexpr...
fail to show their result.Expected
All 8 variables show their evaluated result on hover.
Configuration and Logs