Closed lifw555 closed 2 years ago
@lifw555 Could you share the sample code or full source cpp file that reproduces this behavior on the breadcrumbs navigation bar?
Could you also share the log from running the command C/C++: Log Diagnostics
?
#include <iostream>
#include <windows.h>
using namespace std;
void test()
{
cout << "11111111" << endl;
}
int main(int argc, char *argv[])
{
//MessageBox(NULL, "START", "hello test", 0);
cout << "hello test!!!-1" << endl;
test();
//111
//Sleep(5*1000);
//char c = getchar();
//cout << "c:" << c <<endl;
cout << "hello test!!!-2" << endl;
return 0;
}
how to get "Log Diagnostics" ?
befor vscode 1.64.0 , it works.
update to 1.64.0 above, it can not work.
@lifw555 I was not able to reproduce the issue using the sample code.
It could be the extension did not install correctly on your machine after updating VS Code to 1.64.0. Could you try uninstalling the C/C++ extension, and then make sure the folder of the extension (path C:\Users\%username%\.vscode\extensions\ms-vscode.cpptools-1.8.4
) is deleted after uninstalling? And then re-install the extension again?
If re-installing seems to have worked and code navigation is still not working, could you send logs by following these instructions https://code.visualstudio.com/docs/cpp/enable-logging-cpp#_enable-logging-for-the-language-server?
sorry ,i use mingw32-8.1.0-posix-dwarf , not vs.
@lifw555 Could you send logs by following these instructions https://code.visualstudio.com/docs/cpp/enable-logging-cpp#_enable-logging-for-the-language-server? The logs will show what the extension is trying to do and if the extension was successful in getting the include paths from the compiler that you use. The logs will help further investigate the issue.
Also, did you try uninstall and reinstall the extension?
yes, uninstall and reinstall . vscode and extension all done .
later , i will do that follow your instructions.
this vscode and extension all new installed.
loggingLevel: Debug $/setTraceNotification $/setTraceNotification $/setTraceNotification cpptools/didChangeCppProperties Attempting to get defaults from C compiler in "compilerPath" property: 'C:\mingw32-8.1.0-posix-dwarf\bin\gcc.exe' Compiler query command line: "C:\mingw32-8.1.0-posix-dwarf\bin\gcc.exe" -std=gnu17 -Wp,-v -E -dM -x c -m32 nul Code browsing service initialized Attempting to get defaults from C++ compiler in "compilerPath" property: 'C:\mingw32-8.1.0-posix-dwarf\bin\gcc.exe' Compiler query command line: "C:\mingw32-8.1.0-posix-dwarf\bin\gcc.exe" -std=gnu++14 -Wp,-v -E -dM -x c++ -m32 nul Folder: C:/MINGW32-8.1.0-POSIX-DWARF/I686-W64-MINGW32/INCLUDE/ will be indexed Folder: C:/MINGW32-8.1.0-POSIX-DWARF/INCLUDE/ will be indexed Folder: C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE/ will be indexed Folder: C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE-FIXED/ will be indexed Folder: D:/GITHUB/BACKTRACE-MINGW/ will be indexed Folder: D:/PROJECTS_VSCODE/H2/ will be indexed textDocument/didOpen: D:\projects_vscode\h2\main.cpp Discovering files... cpptools/textEditorSelectionChange cpptools/didChangeSettings IntelliSense Engine = Default. The extension will use the Tag Parser for IntelliSense when #includes don't resolve. Enhanced Colorization is enabled. Error squiggles are enabled if all header dependencies are resolved. Autocomplete is enabled. cpptools/didChangeSettings IntelliSense Engine = Default. The extension will use the Tag Parser for IntelliSense when #includes don't resolve. Enhanced Colorization is enabled. Error squiggles are enabled if all header dependencies are resolved. Autocomplete is enabled. cpptools/didChangeSettings IntelliSense Engine = Default. The extension will use the Tag Parser for IntelliSense when #includes don't resolve. Enhanced Colorization is enabled. Error squiggles are enabled if all header dependencies are resolved. Autocomplete is enabled. cpptools/activeDocumentChange: D:\projects_vscode\h2\main.cpp cpptools/getDocumentSymbols: D:\projects_vscode\h2\main.cpp (id: 2) cpptools/getCodeActions: D:\projects_vscode\h2\main.cpp (id: 3) cpptools/getFoldingRanges: D:\projects_vscode\h2\main.cpp (id: 4) cpptools/getSemanticTokens: D:\projects_vscode\h2\main.cpp (id: 5) Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/I686-W64-MINGW32/INCLUDE/ cpptools/getDocumentSymbols Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/INCLUDE/ Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE/ sending compilation args for D:\projects_vscode\h2\main.cpp include: C:\MINGW32-8.1.0-POSIX-DWARF\LIB\GCC\I686-W64-MINGW32\8.1.0\INCLUDE\C++ include: C:\MINGW32-8.1.0-POSIX-DWARF\LIB\GCC\I686-W64-MINGW32\8.1.0\INCLUDE\C++\I686-W64-MINGW32 include: C:\MINGW32-8.1.0-POSIX-DWARF\LIB\GCC\I686-W64-MINGW32\8.1.0\INCLUDE\C++\BACKWARD include: C:\MINGW32-8.1.0-POSIX-DWARF\LIB\GCC\I686-W64-MINGW32\8.1.0\INCLUDE include: C:\MINGW32-8.1.0-POSIX-DWARF\LIB\GCC\I686-W64-MINGW32\8.1.0\INCLUDE-FIXED include: C:\MINGW32-8.1.0-POSIX-DWARF\I686-W64-MINGW32\INCLUDE define: DBL_MIN_EXP=(-1021) define: FLT32X_MAX_EXP=1024 define: pentiumpro=1 define: UINT_LEAST16_MAX=0xffff define: ATOMIC_ACQUIRE=2 define: __FLT128_MAX_10_EXP=4932 define: FLT_MIN=1.17549435082228750796873653722224568e-38F define: GCC_IEC_559_COMPLEX=2 define: UINT_LEAST8_TYPE=unsigned char define: SIZEOF_FLOAT80=12 define: _WIN32=1 define: __INTMAX_C(c)=c ## LL define: CHAR_BIT=8 define: UINT8_MAX=0xff define: WINT_MAX=0xffff define: FLT32_MIN_EXP=(-125) define: ORDER_LITTLE_ENDIAN=1234 define: SIZE_MAX=0xffffffffU define: WCHAR_MAX=0xffff define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: DBL_DENORM_MIN=double(4.94065645841246544176568792868221372e-324L) define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: GCC_ATOMIC_CHAR_LOCK_FREE=2 define: GCC_IEC_559=2 define: FLT32X_DECIMAL_DIG=17 define: FLT_EVAL_METHOD=2 define: FLT64_DECIMAL_DIG=17 define: GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: UINT_FAST64_MAX=0xffffffffffffffffULL define: SIG_ATOMIC_TYPE=int define: DBL_MIN_10_EXP=(-307) define: FINITE_MATH_ONLY=0 define: GNUC_PATCHLEVEL=0 define: FLT32_HAS_DENORM=1 define: UINT_FAST8_MAX=0xff define: _stdcall=attribute((stdcall)) define: DEC64_MAX_EXP=385 define: INT8_C(c)=c define: INT_LEAST8_WIDTH=8 define: UINT_LEAST64_MAX=0xffffffffffffffffULL define: __SHRT_MAX=0x7fff define: LDBL_MAX=1.18973149535723176502126385303097021e+4932L define: FLT64X_MAX_10_EXP=4932 define: UINT_LEAST8_MAX=0xff define: GCC_ATOMIC_BOOL_LOCK_FREE=2 define: FLT128_DENORM_MIN=6.47517511943802511092443895822764655e-4966F128 define: UINTMAX_TYPE=long long unsigned int define: DEC32_EPSILON=1E-6DF define: FLT_EVAL_METHOD_TS_18661_3=2 define: UINT32_MAX=0xffffffffU define: GXX_EXPERIMENTAL_CXX0X=1 define: LDBL_MAX_EXP=16384 define: FLT128_MIN_EXP=(-16381) define: WINT_MIN=0 define: FLT128_MIN_10_EXP=(-4931) define: INT_LEAST16_WIDTH=16 define: SCHAR_MAX=0x7f define: FLT128_MANT_DIG=113 define: WCHAR_MIN=0 define: INT64_C(c)=c ## LL define: DBL_DIG=15 define: GCC_ATOMIC_POINTER_LOCK_FREE=2 define: FLT64X_MANT_DIG=64 define: __SIZEOF_INT=4 define: SIZEOF_POINTER=4 define: GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: USER_LABEL_PREFIX=_ define: __FLT64X_EPSILON=1.08420217248550443400745280086994171e-19F64x define: STDC_HOSTED=1 define: WIN32=1 define: LDBL_HAS_INFINITY=1 define: __FLT32_DIG=6 define: FLT_EPSILON=1.19209289550781250000000000000000000e-7F define: GXX_WEAK=1 define: SHRT_WIDTH=16 define: LDBL_MIN=3.36210314311209350626267781732175260e-4932L define: DEC32_MAX=9.999999E96DF define: FLT64X_DENORM_MIN=3.64519953188247460252840593361941982e-4951F64x define: MINGW32=1 define: FLT32X_HAS_INFINITY=1 define: INT32_MAX=0x7fffffff define: INT_WIDTH=32 define: SIZEOF_LONG=4 define: UINT16_C(c)=c define: __PTRDIFF_WIDTH=32 define: DECIMAL_DIG=21 define: FLT64_EPSILON=2.22044604925031308084726333618164062e-16F64 define: INTMAX_WIDTH=64 define: FLT64_MIN_EXP=(-1021) define: FLT64X_MIN_10_EXP=(-4931) define: LDBL_HAS_QUIET_NAN=1 define: FLT64_MANT_DIG__=53 define: _REENTRANT=1 define: GNUC=8 define: _cdecl=attribute((cdecl)) define: __GXX_RTTI=1 define: FLT_HAS_DENORM=1 define: SIZEOF_LONG_DOUBLE=12 define: BIGGEST_ALIGNMENT=16 define: STDC_UTF_16=1 define: FLT64_MAX_10_EXP=308 define: i686=1 define: FLT32_HAS_INFINITY=1 define: DBL_MAX__=double(1.79769313486231570814527423731704357e+308L) define: _thiscall=attribute((thiscall)) define: INT_FAST32_MAX=0x7fffffff define: WINNT=1 define: DBL_HAS_INFINITY=1 define: WINNT=1 define: DEC32_MIN_EXP=(-94) define: INTPTR_WIDTH=32 define: FLT32X_HAS_DENORM=1 define: INT_FAST16_TYPE__=short int define: _fastcall=attribute((fastcall)) define: LDBL_HAS_DENORM=1 define: cplusplus=201402L define: DEC128_MAX=9.999999999999999999999999999999999E6144DL define: INT_LEAST32_MAX=0x7fffffff define: DEC32_MIN=1E-95DF define: DEPRECATED=1 define: DBL_MAX_EXP=1024 define: WCHAR_WIDTH=16 define: FLT32_MAX=3.40282346638528859811704183484516925e+38F32 define: DEC128_EPSILON=1E-33DL define: ATOMIC_HLE_RELEASE=131072 define: WIN32=1 define: PTRDIFF_MAX=0x7fffffff define: ATOMIC_HLE_ACQUIRE=65536 define: __FLT32_HAS_QUIET_NAN=1 define: GNUG=8 define: LONG_LONG_MAX=0x7fffffffffffffffLL define: SIZEOF_SIZE_T=4 define: FLT64X_MIN_EXP=(-16381) define: SIZEOF_WINT_T=2 define: LONG_LONG_WIDTH=64 define: FLT32_MAX_EXP=128 define: GCC_HAVE_DWARF2_CFI_ASM=1 define: GXX_ABI_VERSION=1012 define: FLT128_HAS_INFINITY=1 define: FLT_MIN_EXP=(-125) define: i686=1 define: FLT64X_HAS_QUIET_NAN=1 define: INT_FAST64_TYPE=long long int define: FLT64_DENORM_MIN=4.94065645841246544176568792868221372e-324F64 define: DBL_MIN=double(2.22507385850720138309023271733240406e-308L) define: FLT32X_EPSILON=2.22044604925031308084726333618164062e-16F32x define: DECIMAL_BID_FORMAT=1 define: GXX_TYPEINFO_EQUALITY_INLINE=0 define: FLT64_MIN_10_EXP=(-307) define: FLT64X_DECIMAL_DIG=21 define: DEC128_MIN=1E-6143DL define: REGISTER_PREFIX= define: UINT16_MAX=0xffff define: DBL_HAS_DENORM=1 define: cdecl=attribute((cdecl)) define: FLT32_MIN=1.17549435082228750796873653722224568e-38F32 define: UINT8_TYPE=unsigned char define: NO_INLINE=1 define: i386=1 define: FLT_MANT_DIG=24 define: LDBL_DECIMAL_DIG=21 define: VERSION="8.1.0" define: __UINT64_C(c)=c ## ULL define: GCC_ATOMIC_INT_LOCK_FREE=2 define: FLT128_MAX_EXP=16384 define: FLT32_MANT_DIG=24 define: X86=1 define: FLOAT_WORD_ORDER=ORDER_LITTLE_ENDIAN define: FLT128_HAS_DENORM=1 define: FLT128_DIG=33 define: SCHAR_WIDTH=8 define: INT32_C(c)=c define: __DEC64_EPSILON=1E-15DD define: ORDER_PDP_ENDIAN=3412 define: DEC128_MIN_EXP=(-6142) define: code_model_32=1 define: FLT32_MAX_10_EXP=38 define: INT_FAST32_TYPE=int define: UINT_LEAST16_TYPE=short unsigned int define: FLT64X_HAS_INFINITY=1 define: INT16_MAX=0x7fff define: i386=1 define: SIZE_TYPE=unsigned int define: UINT64_MAX=0xffffffffffffffffULL define: FLT64X_DIG=18 define: INT8_TYPE=signed char define: GCC_ASM_FLAG_OUTPUTS=1 define: FLT_RADIX=2 define: INT_LEAST16_TYPE=short int define: LDBL_EPSILON=1.08420217248550443400745280086994171e-19L define: UINTMAX_C(c)=c ## ULL define: SIG_ATOMIC_MAX=0x7fffffff define: GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: SIZEOF_PTRDIFF_T=4 define: FLT32X_MANT_DIG=53 define: FLT32X_MIN_EXP=(-1021) define: DEC32_SUBNORMAL_MIN=0.000001E-95DF define: pentiumpro=1 define: MSVCRT=1 define: INT_FAST16_MAX=0x7fff define: FLT64_DIG=15 define: UINT_FAST32_MAX=0xffffffffU define: UINT_LEAST64_TYPE=long long unsigned int define: FLT_HAS_QUIET_NAN=1 define: FLT_MAX_10_EXP=38 define: LONG_MAX=0x7fffffffL define: FLT64X_HAS_DENORM=1 define: DEC128_SUBNORMAL_MIN=0.000000000000000000000000000000001E-6143DL define: FLT_HAS_INFINITY=1 define: UINT_FAST16_TYPE=short unsigned int define: DEC64_MAX=9.999999999999999E384DD define: INT_FAST32_WIDTH=32 define: CHAR16_TYPE=short unsigned int define: PRAGMA_REDEFINE_EXTNAME=1 define: SIZE_WIDTH=32 define: SEG_FS=1 define: INT_LEAST16_MAX=0x7fff define: DEC64_MANT_DIG=16 define: INT64_MAX=0x7fffffffffffffffLL define: UINT_LEAST32_MAX=0xffffffffU define: SEG_GS=1 define: FLT32_DENORM_MIN=1.40129846432481707092372958328991613e-45F32 define: GCC_ATOMIC_LONG_LOCK_FREE=2 define: SIG_ATOMIC_WIDTH=32 define: INT_LEAST64_TYPE=long long int define: INT16_TYPE=short int define: INT_LEAST8_TYPE=signed char define: DEC32_MAX_EXP=97 define: INT_FAST8_MAX=0x7f define: FLT128_MAX=1.18973149535723176508575932662800702e+4932F128 define: INTPTR_MAX=0x7fffffff define: GXX_MERGED_TYPEINFO_NAMES=0 define: FLT64_HAS_QUIET_NAN=1 define: stdcall=attribute((stdcall)) define: __FLT32_MIN_10_EXP=(-37) define: EXCEPTIONS=1 define: LDBL_MANT_DIG=64 define: DBL_HAS_QUIET_NAN=1 define: FLT64_HAS_INFINITY=1 define: FLT64X_MAX=1.18973149535723176502126385303097021e+4932F64x define: SIG_ATOMIC_MIN=(-SIG_ATOMIC_MAX - 1) define: INTPTR_TYPE=int define: UINT16_TYPE=short unsigned int define: WCHAR_TYPE=short unsigned int define: SIZEOF_FLOAT=4 define: UINTPTR_MAX=0xffffffffU define: INT_FAST64_WIDTH=64 define: DEC64_MIN_EXP=(-382) define: FLT32_DECIMAL_DIG=9 define: INT_FAST64_MAX=0x7fffffffffffffffLL define: GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: FLT_DIG=6 define: FLT64X_MAX_EXP=16384 define: UINT_FAST64_TYPE=long long unsigned int define: INT_MAX=0x7fffffff define: WIN32=1 define: INT64_TYPE=long long int define: FLT_MAX_EXP=128 define: DBL_MANT_DIG=53 define: SIZEOF_FLOAT128=16 define: INT_LEAST64_MAX=0x7fffffffffffffffLL define: DEC64_MIN=1E-383DD define: WINT_TYPE=short unsigned int define: UINT_LEAST32_TYPE=unsigned int define: SIZEOF_SHORT=2 define: LDBL_MIN_EXP=(-16381) define: FLT64_MAX=1.79769313486231570814527423731704357e+308F64 define: WINT_WIDTH=16 define: INT_LEAST8_MAX=0x7f define: FLT32X_MAX_10_EXP=308 define: WCHAR_UNSIGNED=1 define: LDBL_MAX_10_EXP=4932 define: ATOMIC_RELAXED=0 define: __DBL_EPSILON=double(2.22044604925031308084726333618164062e-16L) define: thiscall=attribute((thiscall)) define: FLT128_MIN=3.36210314311209350626267781732175260e-4932F128 define: UINT8_C(c)=c define: FLT64_MAX_EXP=1024 define: INT_LEAST32_TYPE=int define: SIZEOF_WCHAR_T=2 define: FLT128_HAS_QUIET_NAN=1 define: INT_FAST8_TYPE=signed char define: fastcall=attribute((fastcall)) define: __FLT64X_MIN=3.36210314311209350626267781732175260e-4932F64x define: GNUC_STDC_INLINE=1 define: FLT64_HAS_DENORM=1 define: FLT32_EPSILON=1.19209289550781250000000000000000000e-7F32 define: DBL_DECIMAL_DIG=17 define: STDC_UTF_32=1 define: INT_FAST8_WIDTH=8 define: DEC_EVAL_METHOD=2 define: FLT32X_MAX=1.79769313486231570814527423731704357e+308F32x define: ORDER_BIG_ENDIAN=4321 define: UINT64_TYPE=long long unsigned int define: UINT32_C(c)=c ## U define: INTMAX_MAX=0x7fffffffffffffffLL define: BYTE_ORDER=ORDER_LITTLE_ENDIAN define: WINNT=1 define: FLT_DENORM_MIN=1.40129846432481707092372958328991613e-45F define: INT8_MAX=0x7f define: LONG_WIDTH=32 define: UINT_FAST32_TYPE=unsigned int define: CHAR32_TYPE=unsigned int define: FLT_MAX=3.40282346638528859811704183484516925e+38F define: INT32_TYPE=int define: SIZEOF_DOUBLE=8 define: FLT_MIN_10_EXP=(-37) define: FLT64_MIN=2.22507385850720138309023271733240406e-308F64 define: INT_LEAST32_WIDTH=32 define: INTMAX_TYPE=long long int define: i386=1 define: _INTEGRAL_MAX_BITS=64 define: DEC128_MAX_EXP=6145 define: __FLT32X_HAS_QUIET_NAN=1 define: ATOMIC_CONSUME=1 define: __GNUC_MINOR=1 define: INT_FAST16_WIDTH=16 define: UINTMAX_MAX=0xffffffffffffffffULL define: DEC32_MANT_DIG=7 define: FLT32X_DENORM_MIN=4.94065645841246544176568792868221372e-324F32x define: DBL_MAX_10_EXP=308 define: LDBL_DENORM_MIN=3.64519953188247460252840593361941982e-4951L define: INT16_C(c)=c define: STDC=1 define: __FLT32X_DIG=15 define: PTRDIFF_TYPE=int define: ATOMIC_SEQ_CST=5 define: __UINT32_TYPE=unsigned int define: FLT32X_MIN_10_EXP=(-307) define: UINTPTR_TYPE=unsigned int define: DEC64_SUBNORMAL_MIN=0.000000000000001E-383DD define: DEC128_MANT_DIG=34 define: LDBL_MIN_10_EXP=(-4931) define: FLT128_EPSILON=1.92592994438723585305597794258492732e-34F128 define: SIZEOF_LONG_LONG=8 define: FLT128_DECIMAL_DIG=36 define: GCC_ATOMIC_LLONG_LOCK_FREE=2 define: FLT32X_MIN=2.22507385850720138309023271733240406e-308F32x define: LDBL_DIG=18 define: FLT_DECIMAL_DIG=9 define: UINT_FAST16_MAX=0xffff define: GCC_ATOMIC_SHORT_LOCK_FREE=2 define: INT_LEAST64_WIDTH=64 define: UINT_FAST8_TYPE=unsigned char define: ATOMIC_ACQ_REL=4 define: ATOMIC_RELEASE=3 define: declspec(x)=attribute__((x)) define: _DEBUG define: UNICODE define: _UNICODE other: --g++ other: --gnu_version=80100 stdver: c++14 intelliSenseMode: windows-gcc-x86 Checking for syntax errors: D:\projects_vscode\h2\main.cpp Queueing IntelliSense update for files in translation unit of: D:\projects_vscode\h2\main.cpp Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE-FIXED/ Processing folder (recursive): D:/GITHUB/BACKTRACE-MINGW/ Processing folder (recursive): D:/PROJECTS_VSCODE/H2/ Discovering files: 2437 file(s) processed 0 file(s) removed from database Done discovering files. Populating include completion cache. Parsing remaining files... Parsing: 0 files(s) processed Done parsing remaining files. cpptools/finishUpdateSquiggles Error squiggle count: 0 Update IntelliSense time (sec): 0.513 cpptools/getFoldingRanges: D:\projects_vscode\h2\main.cpp (id: 6) cpptools/textEditorSelectionChange cpptools/getCodeActions: D:\projects_vscode\h2\main.cpp (id: 7)
Version: 1.64.2 (user setup) Commit: f80445acd5a3dadef24aa209168452a3d97cc326 Date: 2022-02-09T22:02:28.252Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19044
After closing VS Code instances, you should verify that no dangling cpptools processes exist that could have a lock on the database. Also, when you run "C/C++: Reset IntelliSense Database" do you see a tag parsing file: <path>/main.cpp
message in the logging?
What does the Explorer->Outline view show?
Also, could you check if any breadcrumb settings are configured.
Breadcrumb settings:
it is checked。
after closeing VS Code instances, I confirm that this process “cpptools” is not in the process list
when i run "C/C++: Reset IntelliSense Database"
cpptools/resetDatabase cpptools/resetDatabaseReady Database safe to open Code browsing service initialized Discovering files... Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/I686-W64-MINGW32/INCLUDE/ Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/INCLUDE/ Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE/ Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE-FIXED/ Processing folder (recursive): D:/GITHUB/BACKTRACE-MINGW/ Processing folder (recursive): D:/PROJECTS_VSCODE/H3/ Discovering files: 2437 file(s) processed 0 file(s) removed from database Done discovering files. Populating include completion cache. Parsing remaining files... tag parsing file: D:\projects_vscode\h3\main.cpp Tag parsing encountered an error, but it may not matter. Let us know if symbols in the file can't be found: D:\PROJECTS_VSCODE\H3\MAIN.CPP Parsing: 1 files(s) processed Done parsing remaining files.
after start VS Code instances, all log:
loggingLevel: Debug cpptools/didChangeCppProperties Attempting to get defaults from C compiler in "compilerPath" property: 'C:\mingw32-8.1.0-posix-dwarf\bin\gcc.exe' Compiler query command line: "C:\mingw32-8.1.0-posix-dwarf\bin\gcc.exe" -std=gnu17 -Wp,-v -E -dM -x c -m32 nul Code browsing service initialized Attempting to get defaults from C++ compiler in "compilerPath" property: 'C:\mingw32-8.1.0-posix-dwarf\bin\gcc.exe' Compiler query command line: "C:\mingw32-8.1.0-posix-dwarf\bin\gcc.exe" -std=gnu++14 -Wp,-v -E -dM -x c++ -m32 nul Folder: C:/MINGW32-8.1.0-POSIX-DWARF/I686-W64-MINGW32/INCLUDE/ will be indexed Folder: C:/MINGW32-8.1.0-POSIX-DWARF/INCLUDE/ will be indexed Folder: C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE/ will be indexed Folder: C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE-FIXED/ will be indexed Folder: D:/GITHUB/BACKTRACE-MINGW/ will be indexed Folder: D:/PROJECTS_VSCODE/H3/ will be indexed textDocument/didOpen: D:\projects_vscode\h3\main.cpp Discovering files... cpptools/textEditorSelectionChange cpptools/activeDocumentChange: D:\projects_vscode\h3\main.cpp cpptools/getDocumentSymbols: D:\projects_vscode\h3\main.cpp (id: 2) cpptools/getCodeActions: D:\projects_vscode\h3\main.cpp (id: 3) cpptools/getDocumentSymbols Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/I686-W64-MINGW32/INCLUDE/ sending compilation args for D:\projects_vscode\h3\main.cpp include: C:\MINGW32-8.1.0-POSIX-DWARF\LIB\GCC\I686-W64-MINGW32\8.1.0\INCLUDE\C++ include: C:\MINGW32-8.1.0-POSIX-DWARF\LIB\GCC\I686-W64-MINGW32\8.1.0\INCLUDE\C++\I686-W64-MINGW32 include: C:\MINGW32-8.1.0-POSIX-DWARF\LIB\GCC\I686-W64-MINGW32\8.1.0\INCLUDE\C++\BACKWARD include: C:\MINGW32-8.1.0-POSIX-DWARF\LIB\GCC\I686-W64-MINGW32\8.1.0\INCLUDE include: C:\MINGW32-8.1.0-POSIX-DWARF\LIB\GCC\I686-W64-MINGW32\8.1.0\INCLUDE-FIXED include: C:\MINGW32-8.1.0-POSIX-DWARF\I686-W64-MINGW32\INCLUDE define: DBL_MIN_EXP=(-1021) define: FLT32X_MAX_EXP=1024 define: pentiumpro=1 define: UINT_LEAST16_MAX=0xffff define: ATOMIC_ACQUIRE=2 define: __FLT128_MAX_10_EXP=4932 define: FLT_MIN=1.17549435082228750796873653722224568e-38F define: GCC_IEC_559_COMPLEX=2 define: UINT_LEAST8_TYPE=unsigned char define: SIZEOF_FLOAT80=12 define: _WIN32=1 define: __INTMAX_C(c)=c ## LL define: CHAR_BIT=8 define: UINT8_MAX=0xff define: WINT_MAX=0xffff define: FLT32_MIN_EXP=(-125) define: ORDER_LITTLE_ENDIAN=1234 define: SIZE_MAX=0xffffffffU define: WCHAR_MAX=0xffff define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: DBL_DENORM_MIN=double(4.94065645841246544176568792868221372e-324L) define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: GCC_ATOMIC_CHAR_LOCK_FREE=2 define: GCC_IEC_559=2 define: FLT32X_DECIMAL_DIG=17 define: FLT_EVAL_METHOD=2 define: FLT64_DECIMAL_DIG=17 define: GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: UINT_FAST64_MAX=0xffffffffffffffffULL define: SIG_ATOMIC_TYPE=int define: DBL_MIN_10_EXP=(-307) define: FINITE_MATH_ONLY=0 define: GNUC_PATCHLEVEL=0 define: FLT32_HAS_DENORM=1 define: UINT_FAST8_MAX=0xff define: _stdcall=attribute((stdcall)) define: DEC64_MAX_EXP=385 define: INT8_C(c)=c define: INT_LEAST8_WIDTH=8 define: UINT_LEAST64_MAX=0xffffffffffffffffULL define: __SHRT_MAX=0x7fff define: LDBL_MAX=1.18973149535723176502126385303097021e+4932L define: FLT64X_MAX_10_EXP=4932 define: UINT_LEAST8_MAX=0xff define: GCC_ATOMIC_BOOL_LOCK_FREE=2 define: FLT128_DENORM_MIN=6.47517511943802511092443895822764655e-4966F128 define: UINTMAX_TYPE=long long unsigned int define: DEC32_EPSILON=1E-6DF define: FLT_EVAL_METHOD_TS_18661_3=2 define: UINT32_MAX=0xffffffffU define: GXX_EXPERIMENTAL_CXX0X=1 define: LDBL_MAX_EXP=16384 define: FLT128_MIN_EXP=(-16381) define: WINT_MIN=0 define: FLT128_MIN_10_EXP=(-4931) define: INT_LEAST16_WIDTH=16 define: SCHAR_MAX=0x7f define: FLT128_MANT_DIG=113 define: WCHAR_MIN=0 define: INT64_C(c)=c ## LL define: DBL_DIG=15 define: GCC_ATOMIC_POINTER_LOCK_FREE=2 define: FLT64X_MANT_DIG=64 define: __SIZEOF_INT=4 define: SIZEOF_POINTER=4 define: GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: USER_LABEL_PREFIX=_ define: __FLT64X_EPSILON=1.08420217248550443400745280086994171e-19F64x define: STDC_HOSTED=1 define: WIN32=1 define: LDBL_HAS_INFINITY=1 define: __FLT32_DIG=6 define: FLT_EPSILON=1.19209289550781250000000000000000000e-7F define: GXX_WEAK=1 define: SHRT_WIDTH=16 define: LDBL_MIN=3.36210314311209350626267781732175260e-4932L define: DEC32_MAX=9.999999E96DF define: FLT64X_DENORM_MIN=3.64519953188247460252840593361941982e-4951F64x define: MINGW32=1 define: FLT32X_HAS_INFINITY=1 define: INT32_MAX=0x7fffffff define: INT_WIDTH=32 define: SIZEOF_LONG=4 define: UINT16_C(c)=c define: __PTRDIFF_WIDTH=32 define: DECIMAL_DIG=21 define: FLT64_EPSILON=2.22044604925031308084726333618164062e-16F64 define: INTMAX_WIDTH=64 define: FLT64_MIN_EXP=(-1021) define: FLT64X_MIN_10_EXP=(-4931) define: LDBL_HAS_QUIET_NAN=1 define: FLT64_MANT_DIG__=53 define: _REENTRANT=1 define: GNUC=8 define: _cdecl=attribute((cdecl)) define: __GXX_RTTI=1 define: FLT_HAS_DENORM=1 define: SIZEOF_LONG_DOUBLE=12 define: BIGGEST_ALIGNMENT=16 define: STDC_UTF_16=1 define: FLT64_MAX_10_EXP=308 define: i686=1 define: FLT32_HAS_INFINITY=1 define: DBL_MAX__=double(1.79769313486231570814527423731704357e+308L) define: _thiscall=attribute((thiscall)) define: INT_FAST32_MAX=0x7fffffff define: WINNT=1 define: DBL_HAS_INFINITY=1 define: WINNT=1 define: DEC32_MIN_EXP=(-94) define: INTPTR_WIDTH=32 define: FLT32X_HAS_DENORM=1 define: INT_FAST16_TYPE__=short int define: _fastcall=attribute((fastcall)) define: LDBL_HAS_DENORM=1 define: cplusplus=201402L define: DEC128_MAX=9.999999999999999999999999999999999E6144DL define: INT_LEAST32_MAX=0x7fffffff define: DEC32_MIN=1E-95DF define: DEPRECATED=1 define: DBL_MAX_EXP=1024 define: WCHAR_WIDTH=16 define: FLT32_MAX=3.40282346638528859811704183484516925e+38F32 define: DEC128_EPSILON=1E-33DL define: ATOMIC_HLE_RELEASE=131072 define: WIN32=1 define: PTRDIFF_MAX=0x7fffffff define: ATOMIC_HLE_ACQUIRE=65536 define: __FLT32_HAS_QUIET_NAN=1 define: GNUG=8 define: LONG_LONG_MAX=0x7fffffffffffffffLL define: SIZEOF_SIZE_T=4 define: FLT64X_MIN_EXP=(-16381) define: SIZEOF_WINT_T=2 define: LONG_LONG_WIDTH=64 define: FLT32_MAX_EXP=128 define: GCC_HAVE_DWARF2_CFI_ASM=1 define: GXX_ABI_VERSION=1012 define: FLT128_HAS_INFINITY=1 define: FLT_MIN_EXP=(-125) define: i686=1 define: FLT64X_HAS_QUIET_NAN=1 define: INT_FAST64_TYPE=long long int define: FLT64_DENORM_MIN=4.94065645841246544176568792868221372e-324F64 define: DBL_MIN=double(2.22507385850720138309023271733240406e-308L) define: FLT32X_EPSILON=2.22044604925031308084726333618164062e-16F32x define: DECIMAL_BID_FORMAT=1 define: GXX_TYPEINFO_EQUALITY_INLINE=0 define: FLT64_MIN_10_EXP=(-307) define: FLT64X_DECIMAL_DIG=21 define: DEC128_MIN=1E-6143DL define: REGISTER_PREFIX= define: UINT16_MAX=0xffff define: DBL_HAS_DENORM=1 define: cdecl=attribute((cdecl)) define: FLT32_MIN=1.17549435082228750796873653722224568e-38F32 define: UINT8_TYPE=unsigned char define: NO_INLINE=1 define: i386=1 define: FLT_MANT_DIG=24 define: LDBL_DECIMAL_DIG=21 define: VERSION="8.1.0" define: __UINT64_C(c)=c ## ULL define: GCC_ATOMIC_INT_LOCK_FREE=2 define: FLT128_MAX_EXP=16384 define: FLT32_MANT_DIG=24 define: X86=1 define: FLOAT_WORD_ORDER=ORDER_LITTLE_ENDIAN define: FLT128_HAS_DENORM=1 define: FLT128_DIG=33 define: SCHAR_WIDTH=8 define: INT32_C(c)=c define: __DEC64_EPSILON=1E-15DD define: ORDER_PDP_ENDIAN=3412 define: DEC128_MIN_EXP=(-6142) define: code_model_32=1 define: FLT32_MAX_10_EXP=38 define: INT_FAST32_TYPE=int define: UINT_LEAST16_TYPE=short unsigned int define: FLT64X_HAS_INFINITY=1 define: INT16_MAX=0x7fff define: i386=1 define: SIZE_TYPE=unsigned int define: UINT64_MAX=0xffffffffffffffffULL define: FLT64X_DIG=18 define: INT8_TYPE=signed char define: GCC_ASM_FLAG_OUTPUTS=1 define: FLT_RADIX=2 define: INT_LEAST16_TYPE=short int define: LDBL_EPSILON=1.08420217248550443400745280086994171e-19L define: UINTMAX_C(c)=c ## ULL define: SIG_ATOMIC_MAX=0x7fffffff define: GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: SIZEOF_PTRDIFF_T=4 define: FLT32X_MANT_DIG=53 define: FLT32X_MIN_EXP=(-1021) define: DEC32_SUBNORMAL_MIN=0.000001E-95DF define: pentiumpro=1 define: MSVCRT=1 define: INT_FAST16_MAX=0x7fff define: FLT64_DIG=15 define: UINT_FAST32_MAX=0xffffffffU define: UINT_LEAST64_TYPE=long long unsigned int define: FLT_HAS_QUIET_NAN=1 define: FLT_MAX_10_EXP=38 define: LONG_MAX=0x7fffffffL define: FLT64X_HAS_DENORM=1 define: DEC128_SUBNORMAL_MIN=0.000000000000000000000000000000001E-6143DL define: FLT_HAS_INFINITY=1 define: UINT_FAST16_TYPE=short unsigned int define: DEC64_MAX=9.999999999999999E384DD define: INT_FAST32_WIDTH=32 define: CHAR16_TYPE=short unsigned int define: PRAGMA_REDEFINE_EXTNAME=1 define: SIZE_WIDTH=32 define: SEG_FS=1 define: INT_LEAST16_MAX=0x7fff define: DEC64_MANT_DIG=16 define: INT64_MAX=0x7fffffffffffffffLL define: UINT_LEAST32_MAX=0xffffffffU define: SEG_GS=1 define: FLT32_DENORM_MIN=1.40129846432481707092372958328991613e-45F32 define: GCC_ATOMIC_LONG_LOCK_FREE=2 define: SIG_ATOMIC_WIDTH=32 define: INT_LEAST64_TYPE=long long int define: INT16_TYPE=short int define: INT_LEAST8_TYPE=signed char define: DEC32_MAX_EXP=97 define: INT_FAST8_MAX=0x7f define: FLT128_MAX=1.18973149535723176508575932662800702e+4932F128 define: INTPTR_MAX=0x7fffffff define: GXX_MERGED_TYPEINFO_NAMES=0 define: FLT64_HAS_QUIET_NAN=1 define: stdcall=attribute((stdcall)) define: __FLT32_MIN_10_EXP=(-37) define: EXCEPTIONS=1 define: LDBL_MANT_DIG=64 define: DBL_HAS_QUIET_NAN=1 define: FLT64_HAS_INFINITY=1 define: FLT64X_MAX=1.18973149535723176502126385303097021e+4932F64x define: SIG_ATOMIC_MIN=(-SIG_ATOMIC_MAX - 1) define: INTPTR_TYPE=int define: UINT16_TYPE=short unsigned int define: WCHAR_TYPE=short unsigned int define: SIZEOF_FLOAT=4 define: UINTPTR_MAX=0xffffffffU define: INT_FAST64_WIDTH=64 define: DEC64_MIN_EXP=(-382) define: FLT32_DECIMAL_DIG=9 define: INT_FAST64_MAX=0x7fffffffffffffffLL define: GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: FLT_DIG=6 define: FLT64X_MAX_EXP=16384 define: UINT_FAST64_TYPE=long long unsigned int define: INT_MAX=0x7fffffff define: WIN32=1 define: INT64_TYPE=long long int define: FLT_MAX_EXP=128 define: DBL_MANT_DIG=53 define: SIZEOF_FLOAT128=16 define: INT_LEAST64_MAX=0x7fffffffffffffffLL define: DEC64_MIN=1E-383DD define: WINT_TYPE=short unsigned int define: UINT_LEAST32_TYPE=unsigned int define: SIZEOF_SHORT=2 define: LDBL_MIN_EXP=(-16381) define: FLT64_MAX=1.79769313486231570814527423731704357e+308F64 define: WINT_WIDTH=16 define: INT_LEAST8_MAX=0x7f define: FLT32X_MAX_10_EXP=308 define: WCHAR_UNSIGNED=1 define: LDBL_MAX_10_EXP=4932 define: ATOMIC_RELAXED=0 define: __DBL_EPSILON=double(2.22044604925031308084726333618164062e-16L) define: thiscall=attribute((thiscall)) define: FLT128_MIN=3.36210314311209350626267781732175260e-4932F128 define: UINT8_C(c)=c define: FLT64_MAX_EXP=1024 define: INT_LEAST32_TYPE=int define: SIZEOF_WCHAR_T=2 define: FLT128_HAS_QUIET_NAN=1 define: INT_FAST8_TYPE=signed char define: fastcall=attribute((fastcall)) define: __FLT64X_MIN=3.36210314311209350626267781732175260e-4932F64x define: GNUC_STDC_INLINE=1 define: FLT64_HAS_DENORM=1 define: FLT32_EPSILON=1.19209289550781250000000000000000000e-7F32 define: DBL_DECIMAL_DIG=17 define: STDC_UTF_32=1 define: INT_FAST8_WIDTH=8 define: DEC_EVAL_METHOD=2 define: FLT32X_MAX=1.79769313486231570814527423731704357e+308F32x define: ORDER_BIG_ENDIAN=4321 define: UINT64_TYPE=long long unsigned int define: UINT32_C(c)=c ## U define: INTMAX_MAX=0x7fffffffffffffffLL define: BYTE_ORDER=ORDER_LITTLE_ENDIAN define: WINNT=1 define: FLT_DENORM_MIN=1.40129846432481707092372958328991613e-45F define: INT8_MAX=0x7f define: LONG_WIDTH=32 define: UINT_FAST32_TYPE=unsigned int define: CHAR32_TYPE=unsigned int define: FLT_MAX=3.40282346638528859811704183484516925e+38F define: INT32_TYPE=int define: SIZEOF_DOUBLE=8 define: FLT_MIN_10_EXP=(-37) define: FLT64_MIN=2.22507385850720138309023271733240406e-308F64 define: INT_LEAST32_WIDTH=32 define: INTMAX_TYPE=long long int define: i386=1 define: _INTEGRAL_MAX_BITS=64 define: DEC128_MAX_EXP=6145 define: __FLT32X_HAS_QUIET_NAN=1 define: ATOMIC_CONSUME=1 define: __GNUC_MINOR=1 define: INT_FAST16_WIDTH=16 define: UINTMAX_MAX=0xffffffffffffffffULL define: DEC32_MANT_DIG=7 define: FLT32X_DENORM_MIN=4.94065645841246544176568792868221372e-324F32x define: DBL_MAX_10_EXP=308 define: LDBL_DENORM_MIN=3.64519953188247460252840593361941982e-4951L define: INT16_C(c)=c define: STDC=1 define: __FLT32X_DIG=15 define: PTRDIFF_TYPE=int define: ATOMIC_SEQ_CST=5 define: __UINT32_TYPE=unsigned int define: FLT32X_MIN_10_EXP=(-307) define: UINTPTR_TYPE=unsigned int define: DEC64_SUBNORMAL_MIN=0.000000000000001E-383DD define: DEC128_MANT_DIG=34 define: LDBL_MIN_10_EXP=(-4931) define: FLT128_EPSILON=1.92592994438723585305597794258492732e-34F128 define: SIZEOF_LONG_LONG=8 define: FLT128_DECIMAL_DIG=36 define: GCC_ATOMIC_LLONG_LOCK_FREE=2 define: FLT32X_MIN=2.22507385850720138309023271733240406e-308F32x define: LDBL_DIG=18 define: FLT_DECIMAL_DIG=9 define: UINT_FAST16_MAX=0xffff define: GCC_ATOMIC_SHORT_LOCK_FREE=2 define: INT_LEAST64_WIDTH=64 define: UINT_FAST8_TYPE=unsigned char define: ATOMIC_ACQ_REL=4 define: ATOMIC_RELEASE=3 define: declspec(x)=attribute__((x)) define: _DEBUG define: UNICODE define: _UNICODE other: --g++ other: --gnu_version=80100 stdver: c++14 intelliSenseMode: windows-gcc-x86 Checking for syntax errors: D:\projects_vscode\h3\main.cpp Queueing IntelliSense update for files in translation unit of: D:\projects_vscode\h3\main.cpp Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/INCLUDE/ Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE/ Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE-FIXED/ Processing folder (recursive): D:/GITHUB/BACKTRACE-MINGW/ Processing folder (recursive): D:/PROJECTS_VSCODE/H3/ Discovering files: 2437 file(s) processed 0 file(s) removed from database Done discovering files. Populating include completion cache. Parsing remaining files... Parsing: 0 files(s) processed Done parsing remaining files. cpptools/getFoldingRanges: D:\projects_vscode\h3\main.cpp (id: 4) cpptools/getSemanticTokens: D:\projects_vscode\h3\main.cpp (id: 5) cpptools/finishUpdateSquiggles Error squiggle count: 0 Update IntelliSense time (sec): 0.33 cpptools/getFoldingRanges: D:\projects_vscode\h3\main.cpp (id: 6) cpptools/resetDatabase cpptools/resetDatabaseReady Code browsing service initialized Discovering files... Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/I686-W64-MINGW32/INCLUDE/ Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/INCLUDE/ Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE/ Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE-FIXED/ Processing folder (recursive): D:/GITHUB/BACKTRACE-MINGW/ Processing folder (recursive): D:/PROJECTS_VSCODE/H3/ Discovering files: 2437 file(s) processed 0 file(s) removed from database Done discovering files. Populating include completion cache. Parsing remaining files... tag parsing file: D:\projects_vscode\h3\main.cpp Tag parsing encountered an error, but it may not matter. Let us know if symbols in the file can't be found: D:\PROJECTS_VSCODE\H3\MAIN.CPP Parsing: 1 files(s) processed Done parsing remaining files. cpptools/resetDatabase cpptools/resetDatabaseReady Database safe to open Code browsing service initialized Discovering files... Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/I686-W64-MINGW32/INCLUDE/ Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/INCLUDE/ Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE/ Processing folder (recursive): C:/MINGW32-8.1.0-POSIX-DWARF/LIB/GCC/I686-W64-MINGW32/8.1.0/INCLUDE-FIXED/ Processing folder (recursive): D:/GITHUB/BACKTRACE-MINGW/ Processing folder (recursive): D:/PROJECTS_VSCODE/H3/ Discovering files: 2437 file(s) processed 0 file(s) removed from database Done discovering files. Populating include completion cache. Parsing remaining files... tag parsing file: D:\projects_vscode\h3\main.cpp Tag parsing encountered an error, but it may not matter. Let us know if symbols in the file can't be found: D:\PROJECTS_VSCODE\H3\MAIN.CPP Parsing: 1 files(s) processed Done parsing remaining files.
nothing in Explorer->Outline view!
after start VS Code instances, in the processing list , has 2 processes about cpp:
Ah, the error "Tag parsing encountered an error, but it may not matter. Let us know if symbols in the file can't be found:" is not expected in this case. It appears something is causing a tag parser failure. That appears to be the cause of the breadcrumb not working.
any other information need to provide ?
@lifw555 No. Thanks for providing the previous info.
ok
@lifw555 What encoding is the file? UTF-8 or something else? It should show in the bottom right status bar when the file is active.
utf-8
@lifw555 Does the issue repro with code
void test()
{
}
int main(int argc, char *argv[])
{
test();
return 0;
}
or do you know what the minimum repro is?
your code is reproducible
my code
void test() { printf("this is test.\n"); }
int main(int argc, char const *argv[]) { test(); return 0; }
Do you have any files named cpp.hint in the directory where the main.cpp exists or in any parent directory?
no such file
Is there any scenario where you are able to get symbols in the breadcrumbs or Outline view? What about with a main.ts (TypeScript) file with
function foo()
{
}
Also, if you add int global_var;
at the top of the main.cpp file do you see that symbol in the Explorer->Outline view after saving?
int global_var;
not have.
function foo() {
}
this work
c++ not work
Also, the files.exclude and C_Cpp.files.exclude settings could also cause the breadcrumb to not appear (if they match the main.cpp or its folder), but in that case you wouldn't get the "tag parse" message.
Other than that, unfortunately, I think we're all out of ideas as to what could be causing our tag parser to fail for you, so I don't think we'd be able to fix it unless we think of something else.
:-(
not set "files.exclude" and "C_Cpp.files.exclude".
Degraded version (vscode 1.57.1), and install the extensions
it works.
?
Ah, one more idea, can you try setting `"C_Cpp.default.browse.databaseFilename": "${workspaceFolder}/.vscode/vc.db" (it's also settable via the property in the c_cpp_properties.json via the "databaseFilename" property of a "browse" property) -- it's possible the default database location may not have write permissions for some unusual reason.
Hmm...downgrading to VS Code 1.57.1 uses which version of the C/C++ extension? You might also try switching back to VS Code 1.64.2 or 1.65.0 and instead downgrading the C/C++ extension to an earlier version? If the issue doesn't repro with an older C/C++ extension, that would imply it's some regression in our code.
1.65.0 ?
the latest version is 1.64.2.
and after switch back , it is not work .
vscode : 1.57.1 C/C++ extension : 1.5.1
it is vscode bug?
1.65.0 is VS Code Insiders.
Does the bug repro if you use 1.64.2 and then downgrade to C/C++ version 1.5.1 (or some version earlier than 1.8.4).
downgrade to C/C++ version 1.7.1 (vscode 1.62.3) work fine.
C/C++ version 1.8.4 (vscode 1.64.2) , i got the error in log(window):
[2022-02-18 08:55:39.939] [renderer1] [error] [Extension Host] (node:7268) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use Code --trace-deprecation ...
to show where the warning was created)
Bug type: Debugger
Describe the bug
To Reproduce Please include a code sample and
launch.json
configuration. Steps to reproduce the behavior:link vscode issue: https://github.com/microsoft/vscode/issues/142945
Additional context If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your
launch.json
Add any other context about the problem here including log or error messages in your Debug Console or Output windows.