microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.4k stars 1.51k forks source link

Tag Parsing appears to stall #11117

Closed EmbeddedBacon closed 1 year ago

EmbeddedBacon commented 1 year ago

Environment

In my current project the tag parsing appears to have stalled. During the tag parsing the process stalls at a large hardware generated header file which is about 223 MB in size. There are 2,552 files with a total size of 556MB of all files. Issue is also referenced in #11003.

Bug Summary and Steps to Reproduce

Bug Summary:

Steps to reproduce:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior:

Configuration and Logs

loggingLevel: Debug
cpptools version (TypeScript): 1.16.1
cpptools version (native): 1.16.1.0
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
IntelliSense Engine = default.
LSP: cpptools/queryCompilerDefaults (id: 1)
LSP: cpptools/didChangeCppProperties (id: 2)
LSP: cpptools/queryCompilerDefaults (id: 3)
Querying compiler for default C++ language standard using command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -x c++ -E -dM /dev/null
LSP: Message ignored due to no registered handler: $/setTrace
LSP: Message ignored due to no registered handler: $/setTrace
Compiler returned default language standard version: c++11. Since this version is old, will try to use newer version c++17 as default.
Querying compiler's default target using command line: "/opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac" -dumpmachine
Querying compiler for default C++ language standard using command line: /usr/bin/gcc -x c++ -E -dM /dev/null
LSP: Message ignored due to no registered handler: $/setTrace
LSP: Message ignored due to no registered handler: $/setTrace
Detected language standard version: gnu++17
Querying compiler's default target using command line: "/usr/bin/gcc" -dumpmachine
Compiler returned default target value: x86_64-redhat-linux
Compiler query command line: /usr/bin/gcc -std=c17 -m64 -Wp,-v -E -dM -x c /dev/null
Attempting to get defaults from C compiler in "compilerPath" property: '/usr/bin/gcc'
Compiler query command line: /usr/bin/gcc -std=gnu++17 -m64 -Wp,-v -E -dM -x c++ /dev/null
Attempting to get defaults from C++ compiler in "compilerPath" property: '/usr/bin/gcc'
Code browsing service initialized
Querying compiler for default C++ language standard using command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -x c++ -E -dM /dev/null
Compiler returned default language standard version: c++11. Since this version is old, will try to use newer version c++17 as default.
Querying compiler's default target using command line: "/opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac" -dumpmachine
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=c++14 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=c++1y --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=c++11 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=c++0x --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=c++03 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=c++98 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu++23 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu++2b --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu++20 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu++2a --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu++17 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu++1z --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu++14 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu++1y --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu++11 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu++0x --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu++03 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu++98 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c++ /dev/null
Failed to query default include paths and defines for /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac.
DesignWare ARC C/C++ Compiler S-2021.06 (build 004) (LLVM 11.1.0)
(c) Copyright 2013-2021 Synopsys Corporation
#define _ARC 1
#define _ARCOMPACT 1
#define _ARCVER 0x41
#define _ARC_LE 1
#define _ASM(x) __asm(x)
#define _ATT4 1
#define _Asm __asm__
#define _CC(x) __attribute__((x))
#define _Exception __attribute__((__exception__))
#define _FORCE_INLINE __always_inline__
#define _Far __attribute__((__far__))
#define _Fast_Interrupt __attribute__((__fast_interrupt__))
#define _GNU_SOURCE 1
#define _ILP32 1
#define _Inline inline
#define _Interrupt __attribute__((__interrupt__))
#define _Interrupt1 __attribute__((__interrupt__(1)))
#define _Interrupt2 __attribute__((__interrupt__(2)))
#define _LE 1
#define _MT 1
#define _NO_STACK __naked__
#define _Near __attribute__((__near__))
#define _Never_returns __attribute__((__noreturn__))
#define _Overlay(n...) __attribute__((__overlay__(n)))
#define _OverlayFunction(n...) __attribute__((__overlayfunction__(n)))
#define _Packed __attribute__((__aligned_packed__))
#define _Preserve_flags __attribute__((__preserve_flags__))
#define _REENTRANT 1
#define _Rarely(x) __builtin_expect((bool)(x),false)
#define _SAVE_ALL_REGS __save_all_regs__
#define _Save_all_regs __attribute__((__save_all_regs__))
#define _Unaligned __attribute__((__unaligned__))
#define _Uncached __attribute__((__uncached__))
#define _Unpacked __attribute__((__unpacked__))
#define _Usually(x) __builtin_expect((bool)(x),true)
#define __ATOMIC_ACQUIRE 2
#define __ATOMIC_ACQ_REL 4
#define __ATOMIC_CONSUME 1
#define __ATOMIC_RELAXED 0
#define __ATOMIC_RELEASE 3
#define __ATOMIC_SEQ_CST 5
#define __BIGGEST_ALIGNMENT__ 4
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __CCAC__ 110001
#define __CHAR16_TYPE__ unsigned short
#define __CHAR32_TYPE__ unsigned int
#define __CHAR_BIT__ 8
#define __CHAR_UNSIGNED__ 1
#define __CLANG_ATOMIC_BOOL_LOCK_FREE 2
#define __CLANG_ATOMIC_CHAR16_T_LOCK_FREE 2
#define __CLANG_ATOMIC_CHAR32_T_LOCK_FREE 2
#define __CLANG_ATOMIC_CHAR_LOCK_FREE 2
#define __CLANG_ATOMIC_INT_LOCK_FREE 2
#define __CLANG_ATOMIC_LLONG_LOCK_FREE 0
#define __CLANG_ATOMIC_LONG_LOCK_FREE 2
#define __CLANG_ATOMIC_POINTER_LOCK_FREE 2
#define __CLANG_ATOMIC_SHORT_LOCK_FREE 2
#define __CLANG_ATOMIC_WCHAR_T_LOCK_FREE 2
#define __CLANG__ 1
#define __CONSTANT_CFSTRINGS__ 1
#define __CPLUSPLUS__ 1
#define __DBL_DECIMAL_DIG__ 17
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __DBL_DIG__ 15
#define __DBL_EPSILON__ 2.2204460492503131e-16
#define __DBL_HAS_DENORM__ 1
#define __DBL_HAS_INFINITY__ 1
#define __DBL_HAS_QUIET_NAN__ 1
#define __DBL_MANT_DIG__ 53
#define __DBL_MAX_10_EXP__ 308
#define __DBL_MAX_EXP__ 1024
#define __DBL_MAX__ 1.7976931348623157e+308
#define __DBL_MIN_10_EXP__ (-307)
#define __DBL_MIN_EXP__ (-1021)
#define __DBL_MIN__ 2.2250738585072014e-308
#define __DECIMAL_DIG__ __LDBL_DECIMAL_DIG__
#define __ELF__ 1
#define __FINITE_MATH_ONLY__ 0
#define __FLT_DECIMAL_DIG__ 9
#define __FLT_DENORM_MIN__ 1.40129846e-45F
#define __FLT_DIG__ 6
#define __FLT_EPSILON__ 1.19209290e-7F
#define __FLT_EVAL_METHOD__ 0
#define __FLT_HAS_DENORM__ 1
#define __FLT_HAS_INFINITY__ 1
#define __FLT_HAS_QUIET_NAN__ 1
#define __FLT_MANT_DIG__ 24
#define __FLT_MAX_10_EXP__ 38
#define __FLT_MAX_EXP__ 128
#define __FLT_MAX__ 3.40282347e+38F
#define __FLT_MIN_10_EXP__ (-37)
#define __FLT_MIN_EXP__ (-125)
#define __FLT_MIN__ 1.17549435e-38F
#define __FLT_RADIX__ 2
#define __GCC_ATOMIC_BOOL_LOCK_FREE 2
#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2
#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2
#define __GCC_ATOMIC_CHAR_LOCK_FREE 2
#define __GCC_ATOMIC_INT_LOCK_FREE 2
#define __GCC_ATOMIC_LLONG_LOCK_FREE 0
#define __GCC_ATOMIC_LONG_LOCK_FREE 2
#define __GCC_ATOMIC_POINTER_LOCK_FREE 2
#define __GCC_ATOMIC_SHORT_LOCK_FREE 2
#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1
#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2
#define __GNUC_GNU_INLINE__ 1
#define __GNUC_MINOR__ 2
#define __GNUC_PATCHLEVEL__ 1
#define __GNUC__ 4
#define __GNUG__ 4
#define __GXX_ABI_VERSION 1002
#define __GXX_EXPERIMENTAL_CXX0X__ 1
#define __GXX_RTTI 1
#define __GXX_WEAK__ 1
#de…
Attempting to get defaults from C++ compiler in "compilerPath" property: '/opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac'
Querying compiler for default C++ language standard using command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -x c++ -E -dM /dev/null
Compiler returned default language standard version: c++11. Since this version is old, will try to use newer version c++17 as default.
Querying compiler's default target using command line: "/opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac" -dumpmachine
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=c99 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=c89 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu23 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu2x --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu18 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu17 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu11 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu1x --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu99 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu9x --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -std=gnu89 --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c /dev/null
Compiler query command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac --target=arm-arm-none-eabi -Wp,-v -fno-blocks -E -dM -x c /dev/null
Failed to query default include paths and defines for /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac.
DesignWare ARC C/C++ Compiler S-2021.06 (build 004) (LLVM 11.1.0)
(c) Copyright 2013-2021 Synopsys Corporation
#define _ARC 1
#define _ARCOMPACT 1
#define _ARCVER 0x41
#define _ARC_LE 1
#define _ASM(x) __asm(x)
#define _ATT4 1
#define _Asm __asm__
#define _CC(x) __attribute__((x))
#define _Exception __attribute__((__exception__))
#define _FORCE_INLINE __always_inline__
#define _Far __attribute__((__far__))
#define _Fast_Interrupt __attribute__((__fast_interrupt__))
#define _ILP32 1
#define _Inline inline
#define _Interrupt __attribute__((__interrupt__))
#define _Interrupt1 __attribute__((__interrupt__(1)))
#define _Interrupt2 __attribute__((__interrupt__(2)))
#define _LE 1
#define _MT 1
#define _NO_STACK __naked__
#define _Near __attribute__((__near__))
#define _Never_returns __attribute__((__noreturn__))
#define _Overlay(n...) __attribute__((__overlay__(n)))
#define _OverlayFunction(n...) __attribute__((__overlayfunction__(n)))
#define _Packed __attribute__((__aligned_packed__))
#define _Preserve_flags __attribute__((__preserve_flags__))
#define _REENTRANT 1
#define _Rarely(x) __builtin_expect((x) != 0,0)
#define _SAVE_ALL_REGS __save_all_regs__
#define _Save_all_regs __attribute__((__save_all_regs__))
#define _Unaligned __attribute__((__unaligned__))
#define _Uncached __attribute__((__uncached__))
#define _Unpacked __attribute__((__unpacked__))
#define _Usually(x) __builtin_expect((x) != 0,1)
#define __ATOMIC_ACQUIRE 2
#define __ATOMIC_ACQ_REL 4
#define __ATOMIC_CONSUME 1
#define __ATOMIC_RELAXED 0
#define __ATOMIC_RELEASE 3
#define __ATOMIC_SEQ_CST 5
#define __BIGGEST_ALIGNMENT__ 4
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __CCAC__ 110001
#define __CHAR16_TYPE__ unsigned short
#define __CHAR32_TYPE__ unsigned int
#define __CHAR_BIT__ 8
#define __CHAR_UNSIGNED__ 1
#define __CLANG_ATOMIC_BOOL_LOCK_FREE 2
#define __CLANG_ATOMIC_CHAR16_T_LOCK_FREE 2
#define __CLANG_ATOMIC_CHAR32_T_LOCK_FREE 2
#define __CLANG_ATOMIC_CHAR_LOCK_FREE 2
#define __CLANG_ATOMIC_INT_LOCK_FREE 2
#define __CLANG_ATOMIC_LLONG_LOCK_FREE 0
#define __CLANG_ATOMIC_LONG_LOCK_FREE 2
#define __CLANG_ATOMIC_POINTER_LOCK_FREE 2
#define __CLANG_ATOMIC_SHORT_LOCK_FREE 2
#define __CLANG_ATOMIC_WCHAR_T_LOCK_FREE 2
#define __CLANG__ 1
#define __CONSTANT_CFSTRINGS__ 1
#define __DBL_DECIMAL_DIG__ 17
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __DBL_DIG__ 15
#define __DBL_EPSILON__ 2.2204460492503131e-16
#define __DBL_HAS_DENORM__ 1
#define __DBL_HAS_INFINITY__ 1
#define __DBL_HAS_QUIET_NAN__ 1
#define __DBL_MANT_DIG__ 53
#define __DBL_MAX_10_EXP__ 308
#define __DBL_MAX_EXP__ 1024
#define __DBL_MAX__ 1.7976931348623157e+308
#define __DBL_MIN_10_EXP__ (-307)
#define __DBL_MIN_EXP__ (-1021)
#define __DBL_MIN__ 2.2250738585072014e-308
#define __DECIMAL_DIG__ __LDBL_DECIMAL_DIG__
#define __ELF__ 1
#define __FINITE_MATH_ONLY__ 0
#define __FLT_DECIMAL_DIG__ 9
#define __FLT_DENORM_MIN__ 1.40129846e-45F
#define __FLT_DIG__ 6
#define __FLT_EPSILON__ 1.19209290e-7F
#define __FLT_EVAL_METHOD__ 0
#define __FLT_HAS_DENORM__ 1
#define __FLT_HAS_INFINITY__ 1
#define __FLT_HAS_QUIET_NAN__ 1
#define __FLT_MANT_DIG__ 24
#define __FLT_MAX_10_EXP__ 38
#define __FLT_MAX_EXP__ 128
#define __FLT_MAX__ 3.40282347e+38F
#define __FLT_MIN_10_EXP__ (-37)
#define __FLT_MIN_EXP__ (-125)
#define __FLT_MIN__ 1.17549435e-38F
#define __FLT_RADIX__ 2
#define __GCC_ATOMIC_BOOL_LOCK_FREE 2
#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2
#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2
#define __GCC_ATOMIC_CHAR_LOCK_FREE 2
#define __GCC_ATOMIC_INT_LOCK_FREE 2
#define __GCC_ATOMIC_LLONG_LOCK_FREE 0
#define __GCC_ATOMIC_LONG_LOCK_FREE 2
#define __GCC_ATOMIC_POINTER_LOCK_FREE 2
#define __GCC_ATOMIC_SHORT_LOCK_FREE 2
#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1
#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2
#define __GNUC_MINOR__ 2
#define __GNUC_PATCHLEVEL__ 1
#define __GNUC_STDC_INLINE__ 1
#define __GNUC__ 4
#define __GXX_ABI_VERSION 1002
#define __HAS_LONGLONG 1
#define __ILP32__ 1
#define __INT16_C_SUFFIX__ 
#define __INT16_FMTd__ "hd"
#define __INT16_FMTi__ "hi"
#define __INT16_MAX__ 32767
…
Attempting to get defaults from C compiler in "compilerPath" property: '/opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac'
  Folder: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/inc/ will be indexed
  Folder: /users/ZZZZZ/projects/YYYYYYY/repo/ will be indexed
Discovering files...
Querying compiler for default C++ language standard using command line: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac -x c++ -E -dM /dev/null
Compiler returned default language standard version: c++11. Since this version is old, will try to use newer version c++17 as default.
Querying compiler's default target using command line: "/opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/bin/ccac" -dumpmachine
  Processing folder (recursive): /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/inc/
  Processing folder (recursive): /users/ZZZZZ/projects/YYYYYYY/repo/
LSP: cpptools/didChangeCppProperties (id: 4)
LSP: cpptools/didChangeSettings
LSP: cpptools/didChangeSettings
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
IntelliSense Engine = default.
Enhanced Colorization is enabled.
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
IntelliSense Engine = default.
Enhanced Colorization is enabled.
LSP: cpptools/didChangeSettings
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
IntelliSense Engine = default.
Enhanced Colorization is enabled.
LSP: cpptools/didChangeSettings
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
IntelliSense Engine = default.
Enhanced Colorization is enabled.
LSP: textDocument/didOpen: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c
LSP: textDocument/didOpen: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h
LSP: cpptools/getDocumentSymbols: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c (id: 5)
LSP: cpptools/getDocumentSymbols: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h (id: 6)
LSP: cpptools/getCodeActions: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c (id: 7)
LSP: cpptools/getCodeActions: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h (id: 8)
LSP: cpptools/getInlayHints: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c (id: 9)
LSP: cpptools/getInlayHints: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h (id: 10)
LSP: cpptools/getDocumentSymbols: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c (id: 11)
LSP: cpptools/getDocumentSymbols: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h (id: 12)
LSP: cpptools/getSemanticTokens: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c (id: 13)
LSP: cpptools/getSemanticTokens: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h (id: 14)
Checking for syntax errors: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h
LSP: $/cancelRequest (cpptools/getDocumentSymbols, id: 11)
LSP: $/cancelRequest (cpptools/getDocumentSymbols, id: 12)
LSP: $/cancelRequest (cpptools/getDocumentSymbols, id: 6)
LSP: cpptools/getDocumentSymbols: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h (id: 15)
LSP: cpptools/getDocumentSymbols: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h (id: 16)
LSP: cpptools/getDocumentSymbols: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c (id: 17)
LSP: cpptools/getDocumentSymbols: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h (id: 18)
Checking for syntax errors: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c
LSP: cpptools/getCodeActions: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c (id: 19)
LSP: cpptools/getCodeActions: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h (id: 20)
LSP: $/cancelRequest (cpptools/getInlayHints, id: 9)
LSP: $/cancelRequest (cpptools/getInlayHints, id: 10)
LSP: cpptools/getCodeActions: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c (id: 21)
LSP: cpptools/getCodeActions: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h (id: 22)
LSP: cpptools/getInlayHints: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c (id: 23)
LSP: Request canceled by server (<unknown/completed>, code: -32802, id: 9)
LSP: cpptools/getInlayHints: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h (id: 24)
LSP: Request canceled by server (<unknown/completed>, code: -32802, id: 10)
LSP: cpptools/getDocumentSymbols: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c (id: 25)
LSP: cpptools/getDocumentSymbols: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.h (id: 26)
  Discovering files: 123264 file(s) processed
  0 file(s) removed from database
Done discovering files.
Populating include completion cache.
Parsing remaining files...
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_mgmt.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/cs/cs_logging.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/inc/shared_mem.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/inc/fsa_messaging.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/ftl/cftl/include/ftl/cftl_fla_common.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/init/shared/inc/nand_config.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/platform/bcmd_types.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/inc/CommonLogCatCodes.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/common_log/CommonLogApiPrivate.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/platform/ftl_logging_platform.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/include/shared_mem_be.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/inc/shared_mem_cs.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/inc/sam_config.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/HAL/hal_nvme.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/cs/messaging.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/ftl/cftl/include/ftl/cftl.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/utilities/shared/inc/be_config.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/HAL/hal_hif.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/inc/CommonLogApi.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/ftl/ftl_logging_params.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/utilities/hs/inc/nand_features.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/read_recov/inc/reh_defs.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/ftl/pftl/XXXXX_performance/include/ftl/scan_defs.h
Unable to finalize updates for file, error = 0x80004005: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/ftl/pftl/XXXXX_performance/include/ftl/scan_defs.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/logging/inc/time_based_log_persist.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/inc/fpm.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_accessNandViaRamdisk.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/fe/include/fw_htag_allocator.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/ftl/cftl/include/ftl/cftl_fla.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/cs/cs_rtos.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/ftl/cftl/portable/XXXXX_fpga/include/cftl_portmacro.h
    tag parsing error (this can be ignored unless symbols can't be found):
    line 47 (col. 18): error: expected a ')'
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/ftl/cftl/include/ftl/cftl_config.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/HAL/hal_port.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/HAL/hal_sam.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/common_log/CommonLog.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/inc/thermal_monitor_api_defs.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/utilities/hs/inc/nand_PageMap.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/inc/cs_resets.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/ftl/pftl/XXXXX_performance/include/ftl/oob_messaging/oob_msg_req_deallocate.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/fe/vs_raven.h
Unable to finalize updates for file, error = 0x80004005: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/fe/vs_raven.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/cs/taskdef.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/ftl/pftl/XXXXX_performance/include/ftl/oob_messaging/oob_transport.h
  tag parsing file: /users/ZZZZZ/projects/YYYYYYY/repo/contract/controller/XXXXX/asic/fpga_d5/CHDR_HIF_SS_PCIE_TOP_PCIE_PHY_PHY_CRA_reg_access.h
sending compilation args for /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c
  include: /users/ZZZZZ/projects/YYYYYYY/repo/contract
  include: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/inc/arc
  include: /opt/synopsys/MetaWare/S-2021.06/MetaWare/arc/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/common
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/cs
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/platform
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/HAL
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/sec/aegis6/visual_studio
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/ftl/cftl/include
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/init/shared/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/common_log
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/include
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/fe/include
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/ftl/pftl/XXXXX_performance/include
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/mtfw/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/sec/include
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/die_mgmt/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/fe/sideband/include
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/fe
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/controller/inc/XXXXX
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/utilities/shared/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/eif/shared/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/include/ftl
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/ntk/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/eif/shared/plat/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/eif/chan/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/error_handling/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/driver/hs/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/utilities/hs/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/read_recov/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/controller/dps/XXXXX/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/init/hs/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/fe/include/drivers
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/fe/include/public
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/fe/nvme-io/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/mtfw/platform/project
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/controller/nfc/yosemite/sequencer/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/controller/nfc/yosemite/nfcd/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/be/controller/ldpc/XXXXX/inc
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/ftl/cftl/portable/XXXXX_fpga/include
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/sec/aegis6/src/sec_lib/include
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/mtfw/platform/nandtype
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/mtfw/platform/controller
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/sec/aegis6/src/include
  include: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/sec/aegis6/src/see_lib/include
  define: __arc__=1
  define: CPU_ID=_CPU_ID_HS0
# defines removed
  stdver: c99
  intelliSenseMode: linux-clang-arm
Checking for syntax errors: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c
Queueing IntelliSense update for files in translation unit of: /users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c
Error squiggle count: 307
Error squiggles will be disabled in: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c
LSP: cpptools/getCodeActions: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c (id: 27)
LSP: cpptools/textEditorSelectionChange
LSP: cpptools/activeDocumentChange: file:///users/ZZZZZ/projects/YYYYYYY/repo/firmware/src/cs/fsa/fsa_bootFiles.c

Other Extensions

No response

Additional context

No response

sean-mcmanus commented 1 year ago

Can you attach a debugger to cpptools, break into the debugger, and provide the call stack that appears to have tag parsing work on it? It could be related to the "fixed" bug https://github.com/microsoft/vscode-cpptools/issues/9076 (i.e. the fix there might not be good enough in your case).

The workaround is to add the file's folder to the C_Cpp.files.exclude (or the file itself, if you change the C_Cpp.exclusionPolicy to run on files).

sean-mcmanus commented 1 year ago

And this is a 1.16.x regression?

EmbeddedBacon commented 1 year ago

@sean-mcmanus , I think I found part of my problem. In the project there are settings for the extension in .vscode/c_cpp_properties.json and .vscode/settings.json. I had been placing settings in the .vscode/c_cpp_properties.json, but without me knowing others had place settings in the .vscode/settings.json. They are mostly the same, but some differences. I updated these settings so everything is in the .vscode/c_cpp_properties.json. Seems tag parsing and intellisense works better now.

I do have a question, if the standard convention to place settings in .vscode/settings.json or .vscode/c_cpp_properties.json for the c/c++ extension?

bobbrow commented 1 year ago

It depends on the setting and how your code is organized, so we haven't made any convention recommendations here. There's not a lot of overlap between those two configuration files. We have C_Cpp.default.* settings which sets defaults for anything that's not set explicitly in c_cpp_properties.json (and allows for configuration of source files when c_cpp_properties.json is not available because there are no folders open in the workspace).

So if all your configurations require the same default values, you can use the C_Cpp.default.* settings so that you don't have to set the same values repeatedly in your c_cpp_properties.json configurations.