vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

IntelliSense not working

Open NemesisWasAlienToo opened this issue 2 years ago • 23 comments

Hello there and good day all. I love vscode and its really awesome. thanks for creating this editor. it made my life easier. first when i installed vscode the IntelliSense was not detecting a lot of the problems until i compiled my code. but recently it has stopped working all together. even after i compile my code the errors are not detected anymore. i have to read my console and manually find the error. since gcc 's errors are really hard to read since gcc writes all the namespace names and aliases. it has been making my coding as hard as it was before i found vscode. i have searched for this issue and tried everything but i cant seem to get it to work.

im using: ubuntu 20.04 LTS vscode version 1.65.0 c++ extension v1.8.4

all my active extensions are: Auto hide Bracket Pair Colorizer 2 C/C++ C/C++ extension pack Docker Doxygen Documentation Generator Makefile Tools Python Remote - Containers Remove - SSH

this is my setting.json { "[dart]": { "editor.formatOnSave": true, "editor.formatOnType": true, "editor.rulers": [ 80 ], "editor.selectionHighlight": false, "editor.suggest.snippetsPreventQuickSuggestions": false, "editor.suggestSelection": "first", "editor.tabCompletion": "onlySnippets", "editor.wordBasedSuggestions": false }, "workbench.iconTheme": "vscode-icons", "files.autoSave": "afterDelay", "editor.fontFamily": "Fira Code", "editor.fontLigatures": true, "editor.fontSize": 15, "git.autofetch": true, "window.zoomLevel": 1, "terminal.integrated.tabs.enabled": false, "editor.cursorSmoothCaretAnimation": true, "bracket-pair-colorizer-2.depreciation-notice": false, "files.exclude": { "/.classpath": true, "/.project": true, "/.settings": true, "/.factorypath": true } }

thank you very much

NemesisWasAlienToo avatar Mar 08 '22 11:03 NemesisWasAlienToo

@NemesisWasAlienToo Could you provide the following logs that might help show why IntelliSense has stopped working:

  • Logs from running C/C++: Log Diagnostics from the VS Code command palette.
  • Logs from the language server logging. See https://code.visualstudio.com/docs/cpp/enable-logging-cpp#_enable-logging-for-the-language-server for instructions.

Also, are you using the extension on a local machine or a remote machine?

michelleangela avatar Mar 08 '22 20:03 michelleangela

windows vscode version 1.65.1 c++ extension v1.8.4 does't work too, but reinstall c++ extension v1.7.1, it works again

app104 avatar Mar 09 '22 08:03 app104

@app104 Could you provide more information on which part of IntelliSense is not working? Are there any error messages that show IntelliSense server is shutting down or that says it's not available? Or is it only certain IntelliSense features that are not working?

Also, can you provide logs:

  • Logs from running C/C++: Log Diagnostics from the VS Code command palette.
  • Logs from the language server logging. See https://code.visualstudio.com/docs/cpp/enable-logging-cpp#_enable-logging-for-the-language-server for instructions.

michelleangela avatar Mar 09 '22 23:03 michelleangela

@michelleangela sorry, i am not good at english , i can only discribe down below: at the outline window , it doesn't show any message at the breadcrumb , it can only show message file and can't show function

app104 avatar Mar 10 '22 04:03 app104

@app104 Your issue appears to be https://github.com/microsoft/vscode-cpptools/issues/8851 (which may be different from the original user's issue). We've added tag parser error logging with 1.9.3 (Pre-Release) with C_Cpp.loggingLevel set to "Warning" or greater. You should see some text like

  tag parsing file: <path>
    tag parsing error (this can be ignored unless symbols can't be found):
    line 8 (col. 8): error: incorrectly formed universal character name

in the C/C++ logging pane. Can you try that and report what error message is being shown?

sean-mcmanus avatar Mar 10 '22 05:03 sean-mcmanus

@app104 1.9.4 has the fix the tag parsing issue.

sean-mcmanus avatar Mar 16 '22 21:03 sean-mcmanus

Thank you for your answer. Im using vscode on my own laptop which is my local machine.

here is the diagnostics log:

-------- Diagnostics - 3/31/2022, 5:23:02 PM
Version: 1.9.7
Current Configuration:
{
    "name": "Linux",
    "includePath": [
        "/home/nemesis/Projects/CoreKit/Library/**",
        "${workspaceFolder}/Library/**"
    ],
    "compilerPath": "/usr/bin/clang",
    "cStandard": "c99",
    "cppStandard": "c++20",
    "intelliSenseMode": "linux-clang-x64",
    "compilerPathIsExplicit": true,
    "cStandardIsExplicit": true,
    "cppStandardIsExplicit": true,
    "intelliSenseModeIsExplicit": true,
    "compilerArgs": [],
    "mergeConfigurations": false,
    "browse": {
        "path": [
            "/home/nemesis/Projects/CoreKit/Library/**",
            "${workspaceFolder}/Library/**",
            "${workspaceFolder}"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
Translation Unit Mappings:
[ /home/nemesis/Projects/CoreCoin/Source/Main.cpp ]:
    /home/nemesis/Projects/CoreCoin/Library/Consensus.hpp *
    /home/nemesis/Projects/CoreCoin/Source/Main.cpp
Translation Unit Configurations:
[ /home/nemesis/Projects/CoreCoin/Source/Main.cpp ]:
    Process ID: 43065
    Memory Usage: 247 MB
    Compiler Path: /usr/bin/clang
    Includes:
        /usr/include/c++/9
        /usr/include/x86_64-linux-gnu/c++/9
        /usr/include/c++/9/backward
        /usr/local/include
        /usr/lib/llvm-10/lib/clang/10.0.0/include
        /usr/include/x86_64-linux-gnu
        /usr/include
        /home/nemesis/Projects/CoreKit/Library
        /home/nemesis/Projects/CoreCoin/Library
    Standard Version: c++20
    IntelliSense Mode: linux-clang-x64
    Other Flags:
        --clang
        --clang_version=100000
Total Memory Usage: 247 MB

------- Workspace parsing diagnostics -------
Number of files discovered (not excluded): 6397
Number of files parsed: 1496

and here are the logs from language server after i did a build and debug run:

loggingLevel: Debug
loggingLevel has changed to: Debug
cpptools/didChangeCppProperties
$/setTraceNotification
cpptools/getCodeActions: /home/nemesis/Projects/CoreKit/Source/Main.cpp (id: 10)
cpptools/textEditorSelectionChange
cpptools/textEditorSelectionChange
cpptools/activeDocumentChange: /home/nemesis/Projects/CoreKit/Source/Main.cpp
cpptools/getFoldingRanges: /home/nemesis/Projects/CoreKit/Source/Main.cpp (id: 11)
cpptools/getCodeActions: /home/nemesis/Projects/CoreKit/Source/Main.cpp (id: 12)
cpptools/textEditorSelectionChange
cpptools/activeDocumentChange: /home/nemesis/Projects/CoreKit/Source/Main.cpp
cpptools/pauseCodeAnalysis
cpptools/fileDeleted: /home/nemesis/Projects/CoreKit/Build/Test.o
Checking for syntax errors: /home/nemesis/Projects/CoreKit/Source/Main.cpp
Queueing IntelliSense update for files in translation unit of: /home/nemesis/Projects/CoreKit/Source/Main.cpp
cpptools/fileDeleted: /home/nemesis/Projects/CoreKit/Build/Test_Target.elf
Checking for syntax errors: /home/nemesis/Projects/CoreKit/Source/Main.cpp
Queueing IntelliSense update for files in translation unit of: /home/nemesis/Projects/CoreKit/Source/Main.cpp
cpptools/finishUpdateSquiggles
Error squiggle count: 0
Update IntelliSense time (sec): 0.527
cpptools/getSemanticTokens: /home/nemesis/Projects/CoreKit/Source/Main.cpp (id: 13)
cpptools/getFoldingRanges: /home/nemesis/Projects/CoreKit/Source/Main.cpp (id: 14)
cpptools/fileCreated: /home/nemesis/Projects/CoreKit/Build/Main.o
cpptools/fileCreated: /home/nemesis/Projects/CoreKit/Build/Main_Target.elf
cpptools/resumeCodeAnalysis
textDocument/hover: /home/nemesis/Projects/CoreKit/Source/Main.cpp (id: 15)
sending compilation args for /home/nemesis/Projects/CoreKit/Source/Main.cpp
  include: /home/nemesis/Projects/CoreKit/Library
  include: /usr/include/c++/9
  include: /usr/include/x86_64-linux-gnu/c++/9
  include: /usr/include/c++/9/backward
  include: /usr/local/include
  include: /usr/lib/llvm-10/lib/clang/10.0.0/include
  include: /usr/include/x86_64-linux-gnu
  include: /usr/include
  define: _GNU_SOURCE=1
  define: _LP64=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__=16
  define: __BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__
  define: __CHAR16_TYPE__=unsigned short
  define: __CHAR32_TYPE__=unsigned int
  define: __CHAR_BIT__=8
  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_CHAR8_T_LOCK_FREE=2
  define: __CLANG_ATOMIC_CHAR_LOCK_FREE=2
  define: __CLANG_ATOMIC_INT_LOCK_FREE=2
  define: __CLANG_ATOMIC_LLONG_LOCK_FREE=2
  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: __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: __DEPRECATED=1
  define: __ELF__=1
  define: __EXCEPTIONS=1
  define: __FINITE_MATH_ONLY__=0
  define: __FLOAT128__=1
  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: __FXSR__=1
  define: __GCC_ASM_FLAG_OUTPUTS__=1
  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_CHAR8_T_LOCK_FREE=2
  define: __GCC_ATOMIC_CHAR_LOCK_FREE=2
  define: __GCC_ATOMIC_INT_LOCK_FREE=2
  define: __GCC_ATOMIC_LLONG_LOCK_FREE=2
  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: __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: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1
  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
  define: __INT16_C_SUFFIX__=
  define: __INT16_FMTd__="hd"
  define: __INT16_FMTi__="hi"
  define: __INT16_MAX__=32767
  define: __INT16_TYPE__=short
  define: __INT32_C_SUFFIX__=
  define: __INT32_FMTd__="d"
  define: __INT32_FMTi__="i"
  define: __INT32_MAX__=2147483647
  define: __INT32_TYPE__=int
  define: __INT64_C_SUFFIX__=L
  define: __INT64_FMTd__="ld"
  define: __INT64_FMTi__="li"
  define: __INT64_MAX__=9223372036854775807L
  define: __INT64_TYPE__=long int
  define: __INT8_C_SUFFIX__=
  define: __INT8_FMTd__="hhd"
  define: __INT8_FMTi__="hhi"
  define: __INT8_MAX__=127
  define: __INT8_TYPE__=signed char
  define: __INTMAX_C_SUFFIX__=L
  define: __INTMAX_FMTd__="ld"
  define: __INTMAX_FMTi__="li"
  define: __INTMAX_MAX__=9223372036854775807L
  define: __INTMAX_TYPE__=long int
  define: __INTMAX_WIDTH__=64
  define: __INTPTR_FMTd__="ld"
  define: __INTPTR_FMTi__="li"
  define: __INTPTR_MAX__=9223372036854775807L
  define: __INTPTR_TYPE__=long int
  define: __INTPTR_WIDTH__=64
  define: __INT_FAST16_FMTd__="hd"
  define: __INT_FAST16_FMTi__="hi"
  define: __INT_FAST16_MAX__=32767
  define: __INT_FAST16_TYPE__=short
  define: __INT_FAST32_FMTd__="d"
  define: __INT_FAST32_FMTi__="i"
  define: __INT_FAST32_MAX__=2147483647
  define: __INT_FAST32_TYPE__=int
  define: __INT_FAST64_FMTd__="ld"
  define: __INT_FAST64_FMTi__="li"
  define: __INT_FAST64_MAX__=9223372036854775807L
  define: __INT_FAST64_TYPE__=long int
  define: __INT_FAST8_FMTd__="hhd"
  define: __INT_FAST8_FMTi__="hhi"
  define: __INT_FAST8_MAX__=127
  define: __INT_FAST8_TYPE__=signed char
  define: __INT_LEAST16_FMTd__="hd"
  define: __INT_LEAST16_FMTi__="hi"
  define: __INT_LEAST16_MAX__=32767
  define: __INT_LEAST16_TYPE__=short
  define: __INT_LEAST32_FMTd__="d"
  define: __INT_LEAST32_FMTi__="i"
  define: __INT_LEAST32_MAX__=2147483647
  define: __INT_LEAST32_TYPE__=int
  define: __INT_LEAST64_FMTd__="ld"
  define: __INT_LEAST64_FMTi__="li"
  define: __INT_LEAST64_MAX__=9223372036854775807L
  define: __INT_LEAST64_TYPE__=long int
  define: __INT_LEAST8_FMTd__="hhd"
  define: __INT_LEAST8_FMTi__="hhi"
  define: __INT_LEAST8_MAX__=127
  define: __INT_LEAST8_TYPE__=signed char
  define: __INT_MAX__=2147483647
  define: __LDBL_DECIMAL_DIG__=21
  define: __LDBL_DENORM_MIN__=3.64519953188247460253e-4951L
  define: __LDBL_DIG__=18
  define: __LDBL_EPSILON__=1.08420217248550443401e-19L
  define: __LDBL_HAS_DENORM__=1
  define: __LDBL_HAS_INFINITY__=1
  define: __LDBL_HAS_QUIET_NAN__=1
  define: __LDBL_MANT_DIG__=64
  define: __LDBL_MAX_10_EXP__=4932
  define: __LDBL_MAX_EXP__=16384
  define: __LDBL_MAX__=1.18973149535723176502e+4932L
  define: __LDBL_MIN_10_EXP__=(-4931)
  define: __LDBL_MIN_EXP__=(-16381)
  define: __LDBL_MIN__=3.36210314311209350626e-4932L
  define: __LITTLE_ENDIAN__=1
  define: __LONG_LONG_MAX__=9223372036854775807LL
  define: __LONG_MAX__=9223372036854775807L
  define: __LP64__=1
  define: __MMX__=1
  define: __NO_INLINE__=1
  define: __NO_MATH_INLINES=1
  define: __OBJC_BOOL_IS_BOOL=0
  define: __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3
  define: __OPENCL_MEMORY_SCOPE_DEVICE=2
  define: __OPENCL_MEMORY_SCOPE_SUB_GROUP=4
  define: __OPENCL_MEMORY_SCOPE_WORK_GROUP=1
  define: __OPENCL_MEMORY_SCOPE_WORK_ITEM=0
  define: __ORDER_BIG_ENDIAN__=4321
  define: __ORDER_LITTLE_ENDIAN__=1234
  define: __ORDER_PDP_ENDIAN__=3412
  define: __POINTER_WIDTH__=64
  define: __PRAGMA_REDEFINE_EXTNAME=1
  define: __PTRDIFF_FMTd__="ld"
  define: __PTRDIFF_FMTi__="li"
  define: __PTRDIFF_MAX__=9223372036854775807L
  define: __PTRDIFF_TYPE__=long int
  define: __PTRDIFF_WIDTH__=64
  define: __REGISTER_PREFIX__=
  define: __SCHAR_MAX__=127
  define: __SEG_FS=1
  define: __SEG_GS=1
  define: __SHRT_MAX__=32767
  define: __SIG_ATOMIC_MAX__=2147483647
  define: __SIG_ATOMIC_WIDTH__=32
  define: __SIZEOF_DOUBLE__=8
  define: __SIZEOF_FLOAT128__=16
  define: __SIZEOF_FLOAT__=4
  define: __SIZEOF_INT128__=16
  define: __SIZEOF_INT__=4
  define: __SIZEOF_LONG_DOUBLE__=16
  define: __SIZEOF_LONG_LONG__=8
  define: __SIZEOF_LONG__=8
  define: __SIZEOF_POINTER__=8
  define: __SIZEOF_PTRDIFF_T__=8
  define: __SIZEOF_SHORT__=2
  define: __SIZEOF_SIZE_T__=8
  define: __SIZEOF_WCHAR_T__=4
  define: __SIZEOF_WINT_T__=4
  define: __SIZE_FMTX__="lX"
  define: __SIZE_FMTo__="lo"
  define: __SIZE_FMTu__="lu"
  define: __SIZE_FMTx__="lx"
  define: __SIZE_MAX__=18446744073709551615UL
  define: __SIZE_TYPE__=long unsigned int
  define: __SIZE_WIDTH__=64
  define: __SSE2_MATH__=1
  define: __SSE2__=1
  define: __SSE_MATH__=1
  define: __SSE__=1
  define: __STDCPP_DEFAULT_NEW_ALIGNMENT__=16UL
  define: __STDC_HOSTED__=1
  define: __STDC_UTF_16__=1
  define: __STDC_UTF_32__=1
  define: __STDC__=1
  define: __STRICT_ANSI__=1
  define: __UINT16_C_SUFFIX__=
  define: __UINT16_FMTX__="hX"
  define: __UINT16_FMTo__="ho"
  define: __UINT16_FMTu__="hu"
  define: __UINT16_FMTx__="hx"
  define: __UINT16_MAX__=65535
  define: __UINT16_TYPE__=unsigned short
  define: __UINT32_C_SUFFIX__=U
  define: __UINT32_FMTX__="X"
  define: __UINT32_FMTo__="o"
  define: __UINT32_FMTu__="u"
  define: __UINT32_FMTx__="x"
  define: __UINT32_MAX__=4294967295U
  define: __UINT32_TYPE__=unsigned int
  define: __UINT64_C_SUFFIX__=UL
  define: __UINT64_FMTX__="lX"
  define: __UINT64_FMTo__="lo"
  define: __UINT64_FMTu__="lu"
  define: __UINT64_FMTx__="lx"
  define: __UINT64_MAX__=18446744073709551615UL
  define: __UINT64_TYPE__=long unsigned int
  define: __UINT8_C_SUFFIX__=
  define: __UINT8_FMTX__="hhX"
  define: __UINT8_FMTo__="hho"
  define: __UINT8_FMTu__="hhu"
  define: __UINT8_FMTx__="hhx"
  define: __UINT8_MAX__=255
  define: __UINT8_TYPE__=unsigned char
  define: __UINTMAX_C_SUFFIX__=UL
  define: __UINTMAX_FMTX__="lX"
  define: __UINTMAX_FMTo__="lo"
  define: __UINTMAX_FMTu__="lu"
  define: __UINTMAX_FMTx__="lx"
  define: __UINTMAX_MAX__=18446744073709551615UL
  define: __UINTMAX_TYPE__=long unsigned int
  define: __UINTMAX_WIDTH__=64
  define: __UINTPTR_FMTX__="lX"
  define: __UINTPTR_FMTo__="lo"
  define: __UINTPTR_FMTu__="lu"
  define: __UINTPTR_FMTx__="lx"
  define: __UINTPTR_MAX__=18446744073709551615UL
  define: __UINTPTR_TYPE__=long unsigned int
  define: __UINTPTR_WIDTH__=64
  define: __UINT_FAST16_FMTX__="hX"
  define: __UINT_FAST16_FMTo__="ho"
  define: __UINT_FAST16_FMTu__="hu"
  define: __UINT_FAST16_FMTx__="hx"
  define: __UINT_FAST16_MAX__=65535
  define: __UINT_FAST16_TYPE__=unsigned short
  define: __UINT_FAST32_FMTX__="X"
  define: __UINT_FAST32_FMTo__="o"
  define: __UINT_FAST32_FMTu__="u"
  define: __UINT_FAST32_FMTx__="x"
  define: __UINT_FAST32_MAX__=4294967295U
  define: __UINT_FAST32_TYPE__=unsigned int
  define: __UINT_FAST64_FMTX__="lX"
  define: __UINT_FAST64_FMTo__="lo"
  define: __UINT_FAST64_FMTu__="lu"
  define: __UINT_FAST64_FMTx__="lx"
  define: __UINT_FAST64_MAX__=18446744073709551615UL
  define: __UINT_FAST64_TYPE__=long unsigned int
  define: __UINT_FAST8_FMTX__="hhX"
  define: __UINT_FAST8_FMTo__="hho"
  define: __UINT_FAST8_FMTu__="hhu"
  define: __UINT_FAST8_FMTx__="hhx"
  define: __UINT_FAST8_MAX__=255
  define: __UINT_FAST8_TYPE__=unsigned char
  define: __UINT_LEAST16_FMTX__="hX"
  define: __UINT_LEAST16_FMTo__="ho"
  define: __UINT_LEAST16_FMTu__="hu"
  define: __UINT_LEAST16_FMTx__="hx"
  define: __UINT_LEAST16_MAX__=65535
  define: __UINT_LEAST16_TYPE__=unsigned short
  define: __UINT_LEAST32_FMTX__="X"
  define: __UINT_LEAST32_FMTo__="o"
  define: __UINT_LEAST32_FMTu__="u"
  define: __UINT_LEAST32_FMTx__="x"
  define: __UINT_LEAST32_MAX__=4294967295U
  define: __UINT_LEAST32_TYPE__=unsigned int
  define: __UINT_LEAST64_FMTX__="lX"
  define: __UINT_LEAST64_FMTo__="lo"
  define: __UINT_LEAST64_FMTu__="lu"
  define: __UINT_LEAST64_FMTx__="lx"
  define: __UINT_LEAST64_MAX__=18446744073709551615UL
  define: __UINT_LEAST64_TYPE__=long unsigned int
  define: __UINT_LEAST8_FMTX__="hhX"
  define: __UINT_LEAST8_FMTo__="hho"
  define: __UINT_LEAST8_FMTu__="hhu"
  define: __UINT_LEAST8_FMTx__="hhx"
  define: __UINT_LEAST8_MAX__=255
  define: __UINT_LEAST8_TYPE__=unsigned char
  define: __USER_LABEL_PREFIX__=
  define: __VERSION__="Clang 10.0.0 "
  define: __WCHAR_MAX__=2147483647
  define: __WCHAR_TYPE__=int
  define: __WCHAR_WIDTH__=32
  define: __WINT_MAX__=4294967295U
  define: __WINT_TYPE__=unsigned int
  define: __WINT_UNSIGNED__=1
  define: __WINT_WIDTH__=32
  define: __amd64=1
  define: __amd64__=1
  define: __clang__=1
  define: __clang_major__=10
  define: __clang_minor__=0
  define: __clang_patchlevel__=0
  define: __clang_version__="10.0.0 "
  define: __code_model_small_=1
  define: __cplusplus=202002L
  define: __gnu_linux__=1
  define: __k8=1
  define: __k8__=1
  define: __linux=1
  define: __linux__=1
  define: __llvm__=1
  define: __private_extern__=extern
  define: __seg_fs=__attribute__((address_space(257)))
  define: __seg_gs=__attribute__((address_space(256)))
  define: __tune_k8__=1
  define: __unix=1
  define: __unix__=1
  define: __x86_64=1
  define: __x86_64__=1
  other: --clang
  other: --clang_version=100000
  stdver: c++20
  intelliSenseMode: linux-clang-x64
Shutting down IntelliSense server: /home/nemesis/Projects/CoreKit/Source/Main.cpp
Checking for syntax errors: /home/nemesis/Projects/CoreKit/Source/Main.cpp
sending compilation args for /home/nemesis/Projects/CoreKit/Source/Main.cpp
  include: /home/nemesis/Projects/CoreKit/Library
  include: /usr/include/c++/9
  include: /usr/include/x86_64-linux-gnu/c++/9
  include: /usr/include/c++/9/backward
  include: /usr/local/include
  include: /usr/lib/llvm-10/lib/clang/10.0.0/include
  include: /usr/include/x86_64-linux-gnu
  include: /usr/include
  define: _GNU_SOURCE=1
  define: _LP64=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__=16
  define: __BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__
  define: __CHAR16_TYPE__=unsigned short
  define: __CHAR32_TYPE__=unsigned int
  define: __CHAR_BIT__=8
  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_CHAR8_T_LOCK_FREE=2
  define: __CLANG_ATOMIC_CHAR_LOCK_FREE=2
  define: __CLANG_ATOMIC_INT_LOCK_FREE=2
  define: __CLANG_ATOMIC_LLONG_LOCK_FREE=2
  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: __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: __DEPRECATED=1
  define: __ELF__=1
  define: __EXCEPTIONS=1
  define: __FINITE_MATH_ONLY__=0
  define: __FLOAT128__=1
  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: __FXSR__=1
  define: __GCC_ASM_FLAG_OUTPUTS__=1
  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_CHAR8_T_LOCK_FREE=2
  define: __GCC_ATOMIC_CHAR_LOCK_FREE=2
  define: __GCC_ATOMIC_INT_LOCK_FREE=2
  define: __GCC_ATOMIC_LLONG_LOCK_FREE=2
  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: __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: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1
  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
  define: __INT16_C_SUFFIX__=
  define: __INT16_FMTd__="hd"
  define: __INT16_FMTi__="hi"
  define: __INT16_MAX__=32767
  define: __INT16_TYPE__=short
  define: __INT32_C_SUFFIX__=
  define: __INT32_FMTd__="d"
  define: __INT32_FMTi__="i"
  define: __INT32_MAX__=2147483647
  define: __INT32_TYPE__=int
  define: __INT64_C_SUFFIX__=L
  define: __INT64_FMTd__="ld"
  define: __INT64_FMTi__="li"
  define: __INT64_MAX__=9223372036854775807L
  define: __INT64_TYPE__=long int
  define: __INT8_C_SUFFIX__=
  define: __INT8_FMTd__="hhd"
  define: __INT8_FMTi__="hhi"
  define: __INT8_MAX__=127
  define: __INT8_TYPE__=signed char
  define: __INTMAX_C_SUFFIX__=L
  define: __INTMAX_FMTd__="ld"
  define: __INTMAX_FMTi__="li"
  define: __INTMAX_MAX__=9223372036854775807L
  define: __INTMAX_TYPE__=long int
  define: __INTMAX_WIDTH__=64
  define: __INTPTR_FMTd__="ld"
  define: __INTPTR_FMTi__="li"
  define: __INTPTR_MAX__=9223372036854775807L
  define: __INTPTR_TYPE__=long int
  define: __INTPTR_WIDTH__=64
  define: __INT_FAST16_FMTd__="hd"
  define: __INT_FAST16_FMTi__="hi"
  define: __INT_FAST16_MAX__=32767
  define: __INT_FAST16_TYPE__=short
  define: __INT_FAST32_FMTd__="d"
  define: __INT_FAST32_FMTi__="i"
  define: __INT_FAST32_MAX__=2147483647
  define: __INT_FAST32_TYPE__=int
  define: __INT_FAST64_FMTd__="ld"
  define: __INT_FAST64_FMTi__="li"
  define: __INT_FAST64_MAX__=9223372036854775807L
  define: __INT_FAST64_TYPE__=long int
  define: __INT_FAST8_FMTd__="hhd"
  define: __INT_FAST8_FMTi__="hhi"
  define: __INT_FAST8_MAX__=127
  define: __INT_FAST8_TYPE__=signed char
  define: __INT_LEAST16_FMTd__="hd"
  define: __INT_LEAST16_FMTi__="hi"
  define: __INT_LEAST16_MAX__=32767
  define: __INT_LEAST16_TYPE__=short
  define: __INT_LEAST32_FMTd__="d"
  define: __INT_LEAST32_FMTi__="i"
  define: __INT_LEAST32_MAX__=2147483647
  define: __INT_LEAST32_TYPE__=int
  define: __INT_LEAST64_FMTd__="ld"
  define: __INT_LEAST64_FMTi__="li"
  define: __INT_LEAST64_MAX__=9223372036854775807L
  define: __INT_LEAST64_TYPE__=long int
  define: __INT_LEAST8_FMTd__="hhd"
  define: __INT_LEAST8_FMTi__="hhi"
  define: __INT_LEAST8_MAX__=127
  define: __INT_LEAST8_TYPE__=signed char
  define: __INT_MAX__=2147483647
  define: __LDBL_DECIMAL_DIG__=21
  define: __LDBL_DENORM_MIN__=3.64519953188247460253e-4951L
  define: __LDBL_DIG__=18
  define: __LDBL_EPSILON__=1.08420217248550443401e-19L
  define: __LDBL_HAS_DENORM__=1
  define: __LDBL_HAS_INFINITY__=1
  define: __LDBL_HAS_QUIET_NAN__=1
  define: __LDBL_MANT_DIG__=64
  define: __LDBL_MAX_10_EXP__=4932
  define: __LDBL_MAX_EXP__=16384
  define: __LDBL_MAX__=1.18973149535723176502e+4932L
  define: __LDBL_MIN_10_EXP__=(-4931)
  define: __LDBL_MIN_EXP__=(-16381)
  define: __LDBL_MIN__=3.36210314311209350626e-4932L
  define: __LITTLE_ENDIAN__=1
  define: __LONG_LONG_MAX__=9223372036854775807LL
  define: __LONG_MAX__=9223372036854775807L
  define: __LP64__=1
  define: __MMX__=1
  define: __NO_INLINE__=1
  define: __NO_MATH_INLINES=1
  define: __OBJC_BOOL_IS_BOOL=0
  define: __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3
  define: __OPENCL_MEMORY_SCOPE_DEVICE=2
  define: __OPENCL_MEMORY_SCOPE_SUB_GROUP=4
  define: __OPENCL_MEMORY_SCOPE_WORK_GROUP=1
  define: __OPENCL_MEMORY_SCOPE_WORK_ITEM=0
  define: __ORDER_BIG_ENDIAN__=4321
  define: __ORDER_LITTLE_ENDIAN__=1234
  define: __ORDER_PDP_ENDIAN__=3412
  define: __POINTER_WIDTH__=64
  define: __PRAGMA_REDEFINE_EXTNAME=1
  define: __PTRDIFF_FMTd__="ld"
  define: __PTRDIFF_FMTi__="li"
  define: __PTRDIFF_MAX__=9223372036854775807L
  define: __PTRDIFF_TYPE__=long int
  define: __PTRDIFF_WIDTH__=64
  define: __REGISTER_PREFIX__=
  define: __SCHAR_MAX__=127
  define: __SEG_FS=1
  define: __SEG_GS=1
  define: __SHRT_MAX__=32767
  define: __SIG_ATOMIC_MAX__=2147483647
  define: __SIG_ATOMIC_WIDTH__=32
  define: __SIZEOF_DOUBLE__=8
  define: __SIZEOF_FLOAT128__=16
  define: __SIZEOF_FLOAT__=4
  define: __SIZEOF_INT128__=16
  define: __SIZEOF_INT__=4
  define: __SIZEOF_LONG_DOUBLE__=16
  define: __SIZEOF_LONG_LONG__=8
  define: __SIZEOF_LONG__=8
  define: __SIZEOF_POINTER__=8
  define: __SIZEOF_PTRDIFF_T__=8
  define: __SIZEOF_SHORT__=2
  define: __SIZEOF_SIZE_T__=8
  define: __SIZEOF_WCHAR_T__=4
  define: __SIZEOF_WINT_T__=4
  define: __SIZE_FMTX__="lX"
  define: __SIZE_FMTo__="lo"
  define: __SIZE_FMTu__="lu"
  define: __SIZE_FMTx__="lx"
  define: __SIZE_MAX__=18446744073709551615UL
  define: __SIZE_TYPE__=long unsigned int
  define: __SIZE_WIDTH__=64
  define: __SSE2_MATH__=1
  define: __SSE2__=1
  define: __SSE_MATH__=1
  define: __SSE__=1
  define: __STDCPP_DEFAULT_NEW_ALIGNMENT__=16UL
  define: __STDC_HOSTED__=1
  define: __STDC_UTF_16__=1
  define: __STDC_UTF_32__=1
  define: __STDC__=1
  define: __STRICT_ANSI__=1
  define: __UINT16_C_SUFFIX__=
  define: __UINT16_FMTX__="hX"
  define: __UINT16_FMTo__="ho"
  define: __UINT16_FMTu__="hu"
  define: __UINT16_FMTx__="hx"
  define: __UINT16_MAX__=65535
  define: __UINT16_TYPE__=unsigned short
  define: __UINT32_C_SUFFIX__=U
  define: __UINT32_FMTX__="X"
  define: __UINT32_FMTo__="o"
  define: __UINT32_FMTu__="u"
  define: __UINT32_FMTx__="x"
  define: __UINT32_MAX__=4294967295U
  define: __UINT32_TYPE__=unsigned int
  define: __UINT64_C_SUFFIX__=UL
  define: __UINT64_FMTX__="lX"
  define: __UINT64_FMTo__="lo"
  define: __UINT64_FMTu__="lu"
  define: __UINT64_FMTx__="lx"
  define: __UINT64_MAX__=18446744073709551615UL
  define: __UINT64_TYPE__=long unsigned int
  define: __UINT8_C_SUFFIX__=
  define: __UINT8_FMTX__="hhX"
  define: __UINT8_FMTo__="hho"
  define: __UINT8_FMTu__="hhu"
  define: __UINT8_FMTx__="hhx"
  define: __UINT8_MAX__=255
  define: __UINT8_TYPE__=unsigned char
  define: __UINTMAX_C_SUFFIX__=UL
  define: __UINTMAX_FMTX__="lX"
  define: __UINTMAX_FMTo__="lo"
  define: __UINTMAX_FMTu__="lu"
  define: __UINTMAX_FMTx__="lx"
  define: __UINTMAX_MAX__=18446744073709551615UL
  define: __UINTMAX_TYPE__=long unsigned int
  define: __UINTMAX_WIDTH__=64
  define: __UINTPTR_FMTX__="lX"
  define: __UINTPTR_FMTo__="lo"
  define: __UINTPTR_FMTu__="lu"
  define: __UINTPTR_FMTx__="lx"
  define: __UINTPTR_MAX__=18446744073709551615UL
  define: __UINTPTR_TYPE__=long unsigned int
  define: __UINTPTR_WIDTH__=64
  define: __UINT_FAST16_FMTX__="hX"
  define: __UINT_FAST16_FMTo__="ho"
  define: __UINT_FAST16_FMTu__="hu"
  define: __UINT_FAST16_FMTx__="hx"
  define: __UINT_FAST16_MAX__=65535
  define: __UINT_FAST16_TYPE__=unsigned short
  define: __UINT_FAST32_FMTX__="X"
  define: __UINT_FAST32_FMTo__="o"
  define: __UINT_FAST32_FMTu__="u"
  define: __UINT_FAST32_FMTx__="x"
  define: __UINT_FAST32_MAX__=4294967295U
  define: __UINT_FAST32_TYPE__=unsigned int
  define: __UINT_FAST64_FMTX__="lX"
  define: __UINT_FAST64_FMTo__="lo"
  define: __UINT_FAST64_FMTu__="lu"
  define: __UINT_FAST64_FMTx__="lx"
  define: __UINT_FAST64_MAX__=18446744073709551615UL
  define: __UINT_FAST64_TYPE__=long unsigned int
  define: __UINT_FAST8_FMTX__="hhX"
  define: __UINT_FAST8_FMTo__="hho"
  define: __UINT_FAST8_FMTu__="hhu"
  define: __UINT_FAST8_FMTx__="hhx"
  define: __UINT_FAST8_MAX__=255
  define: __UINT_FAST8_TYPE__=unsigned char
  define: __UINT_LEAST16_FMTX__="hX"
  define: __UINT_LEAST16_FMTo__="ho"
  define: __UINT_LEAST16_FMTu__="hu"
  define: __UINT_LEAST16_FMTx__="hx"
  define: __UINT_LEAST16_MAX__=65535
  define: __UINT_LEAST16_TYPE__=unsigned short
  define: __UINT_LEAST32_FMTX__="X"
  define: __UINT_LEAST32_FMTo__="o"
  define: __UINT_LEAST32_FMTu__="u"
  define: __UINT_LEAST32_FMTx__="x"
  define: __UINT_LEAST32_MAX__=4294967295U
  define: __UINT_LEAST32_TYPE__=unsigned int
  define: __UINT_LEAST64_FMTX__="lX"
  define: __UINT_LEAST64_FMTo__="lo"
  define: __UINT_LEAST64_FMTu__="lu"
  define: __UINT_LEAST64_FMTx__="lx"
  define: __UINT_LEAST64_MAX__=18446744073709551615UL
  define: __UINT_LEAST64_TYPE__=long unsigned int
  define: __UINT_LEAST8_FMTX__="hhX"
  define: __UINT_LEAST8_FMTo__="hho"
  define: __UINT_LEAST8_FMTu__="hhu"
  define: __UINT_LEAST8_FMTx__="hhx"
  define: __UINT_LEAST8_MAX__=255
  define: __UINT_LEAST8_TYPE__=unsigned char
  define: __USER_LABEL_PREFIX__=
  define: __VERSION__="Clang 10.0.0 "
  define: __WCHAR_MAX__=2147483647
  define: __WCHAR_TYPE__=int
  define: __WCHAR_WIDTH__=32
  define: __WINT_MAX__=4294967295U
  define: __WINT_TYPE__=unsigned int
  define: __WINT_UNSIGNED__=1
  define: __WINT_WIDTH__=32
  define: __amd64=1
  define: __amd64__=1
  define: __clang__=1
  define: __clang_major__=10
  define: __clang_minor__=0
  define: __clang_patchlevel__=0
  define: __clang_version__="10.0.0 "
  define: __code_model_small_=1
  define: __cplusplus=202002L
  define: __gnu_linux__=1
  define: __k8=1
  define: __k8__=1
  define: __linux=1
  define: __linux__=1
  define: __llvm__=1
  define: __private_extern__=extern
  define: __seg_fs=__attribute__((address_space(257)))
  define: __seg_gs=__attribute__((address_space(256)))
  define: __tune_k8__=1
  define: __unix=1
  define: __unix__=1
  define: __x86_64=1
  define: __x86_64__=1
  other: --clang
  other: --clang_version=100000
  stdver: c++20
  intelliSenseMode: linux-clang-x64
Queueing IntelliSense update for files in translation unit of: /home/nemesis/Projects/CoreKit/Source/Main.cpp
cpptools/finishUpdateSquiggles
Error squiggle count: 0
Update IntelliSense time (sec): 3.65
cpptools/getSemanticTokens: /home/nemesis/Projects/CoreKit/Source/Main.cpp (id: 16)
cpptools/getFoldingRanges: /home/nemesis/Projects/CoreKit/Source/Main.cpp (id: 17)
cpptools/textEditorSelectionChange
cpptools/activeDocumentChange: /home/nemesis/Projects/CoreKit/Source/Main.cpp

NemesisWasAlienToo avatar Mar 31 '22 13:03 NemesisWasAlienToo

Your logging seems good. Can you provide more details on what error you're experiencing, i.e. what IntelliSense feature isn't working?

sean-mcmanus avatar Mar 31 '22 19:03 sean-mcmanus

Thank you for your fast response. Yes absolutely. Basically its not detecting any error unless it is crystal clear i.e. using an undefined variable or just typing gibberish. before, it would detect more errors from gcc output when I compiled my code, but lately its not even able to do that. errors which are in other files rather than the active file are not detected too. it even fails to detect basic errors like a member function not existing in the object type passed in template and i have to compile my code and find errors directly from gcc terminal output. although, once in a different workspace i saw that it once detected an error from gcc output but didnt happen again. i tried to duplicate what happened but i couldnt succeed. I will try again and if successful, i will inform you.

NemesisWasAlienToo avatar Apr 01 '22 09:04 NemesisWasAlienToo

Our extension can show errors from 3 sources, the gcc problem matcher (labeled with "gcc") after building, IntelliSense (labeled with C/C++ and an error number) after making any edit, or clang-tidy (labeled with a clang error string) and running clang-tidy or editing if the appropriate clangTidy settings are set. Which source of errors are you referring to?

Sample repro code would help too.

sean-mcmanus avatar Apr 01 '22 17:04 sean-mcmanus

im referring to gcc problem matcher. it used to match those errors after the build and show them in the Errors but for some reason it fails to do so now.

NemesisWasAlienToo avatar Apr 01 '22 19:04 NemesisWasAlienToo

is there a way to somehow run the gcc matcher manually or check if its disabled?

NemesisWasAlienToo avatar Apr 01 '22 19:04 NemesisWasAlienToo

What version of the C/C++ extension are you using? 1.8.4 or 1.9.7? There was as slight change to the problem matcher in 1.9.7.

You can override the $gcc problem matcher by using something like:

            "problemMatcher": [
                {
                    "base": "$gcc",
                    "fileLocation": [
                      "autoDetect",
                      "${cwd}"
                    ],
                    "pattern": {
                      "regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
                      "file": 1,
                      "line": 2,
                      "column": 3,
                      "severity": 4,
                      "message": 5
                    }
                }
            ],

The only recent problem matcher changes (in 1.9.7) was from

        "fileLocation": [
          "autoDetect",
          "${workspaceFolder}"
        ],

(i.e. ${workspaceFolder}->$(cwd))

sean-mcmanus avatar Apr 01 '22 21:04 sean-mcmanus

im using the 1.8.4 currently

NemesisWasAlienToo avatar Apr 02 '22 13:04 NemesisWasAlienToo

So i added the gcc problem matcher and the after build detection of errors seems to be working again. but still a lot of intelliSense features arent working as i mentioned before. But this was huge step forward for me and made my life a lot easier so thank you very much. I hope the rest of the problems are fixed too

NemesisWasAlienToo avatar Apr 02 '22 13:04 NemesisWasAlienToo

@NemesisWasAlienToo Can you provide more info on the IntelliSense features that aren't working? I don't see where you mentioned that in this thread. It's possible you may be hitting a bug that has been fixed in 1.9.7.

sean-mcmanus avatar Apr 04 '22 17:04 sean-mcmanus

Sorry for the delay. The features that aren't working are: Sometimes IntelliSense doesn't find the functions and members of a class. When Ctrl+Right click a member of a class, the wrong reference is presented, sometimes even a wrong class type even. Sometimes a variable is defined but it is not detected in the file. But the main errors are not even detected until gcc is executed and output is generated, like when a const binding fault happens due to passing const as a non-const. most of the errors are not even detected till then.

NemesisWasAlienToo avatar Apr 16 '22 08:04 NemesisWasAlienToo

It sounds like Go to Def and error squiggles aren't working. Are you able to provide any sample repro? I'm not reproing an issue with a simple sample, such as

#include <vector>
void func(std::vector<int> &i){}

int main()
{
    const std::vector<int> v {};
    func(v);
    return 0;
}

sean-mcmanus avatar Apr 25 '22 18:04 sean-mcmanus

Basically when i use some repo like this one https://github.com/hanickadot/compile-time-regular-expressions I get no intellisense any more. not only inside the library files, but where ever i included them too.

NemesisWasAlienToo avatar May 01 '22 10:05 NemesisWasAlienToo

@NemesisWasAlienToo I tried project https://github.com/hanickadot/compile-time-regular-expressions with the following configurations and didn't get any IntelliSense issues.

-------- Diagnostics - 5/5/2022, 3:07:51 PM
Version: 1.9.7
Current Configuration:
{
    "name": "Linux",
    "includePath": [
        "${workspaceFolder}/**"
    ],
    "defines": [],
    "compilerPath": "/usr/bin/clang",
    "cStandard": "c11",
    "cppStandard": "c++20",
    "intelliSenseMode": "linux-clang-x64",
    "compilerPathIsExplicit": true,
    "cStandardIsExplicit": true,
    "cppStandardIsExplicit": true,
    "intelliSenseModeIsExplicit": true,
    "compilerArgs": [],
    "mergeConfigurations": false,
    "browse": {
        "path": [
            "${workspaceFolder}/**"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
Translation Unit Mappings:
[ /home/blue/test/compile-time-regular-expressions/include/ctll/utilities.hpp ]:
    /home/blue/test/compile-time-regular-expressions/include/ctll/utilities.hpp
Translation Unit Configurations:
[ /home/blue/test/compile-time-regular-expressions/include/ctll/utilities.hpp ]:
    Process ID: 1686
    Memory Usage: 37 MB
    Compiler Path: /usr/bin/clang
    Includes:
        /usr/include/c++/9
        /usr/include/x86_64-linux-gnu/c++/9
        /usr/include/c++/9/backward
        /usr/local/include
        /usr/lib/llvm-10/lib/clang/10.0.0/include
        /usr/include/x86_64-linux-gnu
        /usr/include
    Standard Version: c++20
    IntelliSense Mode: linux-clang-x64
    Other Flags:
        --clang
        --clang_version=100000
        --header_only_fallback
Total Memory Usage: 37 MB

------- Workspace parsing diagnostics -------
Number of files discovered (not excluded): 4183

Could you point to a specific code sample in https://github.com/hanickadot/compile-time-regular-expressions where IntelliSense is not working? Could you provide the C/C++: Log Diagnostics output of that project too?

michelleangela avatar May 05 '22 22:05 michelleangela

Only by including the header file the intellisense stops working even for a single line of code. I have provided the logs earlier in the issue.

NemesisWasAlienToo avatar May 13 '22 20:05 NemesisWasAlienToo

Hey @michelleangela, this issue might need further attention.

@NemesisWasAlienToo, you can help us out by closing this issue if the problem no longer exists, or adding more information.

github-actions[bot] avatar Aug 02 '22 11:08 github-actions[bot]

This problem is still existing. Now it wont work when I open my own github project too!

https://github.com/NemesisWasAlienToo/CoreKit

When I open the Sample/HTTPServer.cpp my intellisense stops working all together. I think it might be exhausted. is there a way to set the limit for exhaustion of intellisense?

NemesisWasAlienToo avatar Sep 08 '22 15:09 NemesisWasAlienToo

Hey @michelleangela, this issue might need further attention.

@NemesisWasAlienToo, you can help us out by closing this issue if the problem no longer exists, or adding more information.

github-actions[bot] avatar Nov 28 '22 11:11 github-actions[bot]