Skip to content

IntelliSense doesn't work (crashes) #10636

Description

@Samega7Cattac

Environment

  • OS and Version: Arch Linux
  • VS Code Version: 1.76.0
  • C/C++ Extension Version: 1.14
  • If using SSH remote, specify OS of remote machine: N/A

Bug Summary and Steps to Reproduce

Bug Summary:
There's dozens of "cpptools" on the output tab, every single one with dozens of errors.
An example of one of them:

[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/didChangeCppProperties failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/queryTranslationUnitSource failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/getCodeActions failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/getInlayHints failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/getInlayHints failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/getFoldingRanges failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/getFoldingRanges failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/getSemanticTokens failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/getSemanticTokens failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/getCodeActions failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/getDocumentSymbols failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending request cpptools/getDocumentSymbols failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] The language server crashed. Restarting...
[Error - 12:12:00 PM] Sending document notification textDocument/didOpen failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 12:12:00 PM] Sending document notification textDocument/didOpen failed
  Message: Client is not running
  Code: -32096 

With time they increase rapidly.

In the tab of the Configuration Warnings:

[3/6/2023, 12:08:05 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:08:05 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:08:08 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:08:08 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:08:08 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:08:08 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:08:08 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:08:08 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:08:08 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:08:08 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:08:08 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:08:08 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:08:08 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:08:08 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:01 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:01 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:01 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:01 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:01 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:01 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:01 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:01 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:01 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:01 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:01 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:01 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:01 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:01 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:01 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:01 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:01 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:01 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:01 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:01 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:01 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:01 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:02 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:02 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:02 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:02 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:12:02 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:12:02 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".
[3/6/2023, 12:16:03 PM] For C++ source files, the cppStandard was changed from "gnu++20" to "".
[3/6/2023, 12:16:03 PM] For C source files, the cStandard was changed from "gnu17" to "".

Steps to reproduce:

  1. Open workspace with several projects
  2. Open a .cpp file
  3. IntelliSense doesn't work

Expected behavior:
IntelliSense to show something on hover or autocomplete

Configuration and Logs

c_cpp_properties.json:
(this is an example of one of the projects config, they dont diff much)

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**",
                "${env:PROJECT_INSTALL_PATH}/include/",
                "/usr/include/glibmm-2.68/",
                "/usr/lib/glibmm-2.68/include",
                "/usr/include/glib-2.0/",
                "/usr/lib/glib-2.0/include",
                "/usr/include/gtkmm-4.0",
                "/usr/lib/gtkmm-4.0/include",
                "/usr/include/sigc++-3.0",
                "/usr/lib/sigc++-3.0/include",
                "/usr/lib/pangomm-2.48/include",
                "/usr/include/pangomm-2.48",
                "/usr/include/pango-1.0",
                "/usr/include/harfbuzz",
                "/usr/include/giomm-2.68",
                "/usr/lib/giomm-2.68/include",
                "/usr/include/cairomm-1.16",
                "/usr/lib/cairomm-1.16/include",
                "/usr/include/cairo",
                "/usr/include/freetype2",
                "/usr/include/gtk-4.0",
                "/usr/include/gdk-pixbuf-2.0",
                "/usr/include/graphene-1.0",
                "/usr/lib/graphene-1.0/include",
                "/usr/include/botan-2"
            ],
            "cStandard": "gnu17",
            "cppStandard": "gnu++20",
            "intelliSenseMode": "linux-gcc-x64",
            "configurationProvider": "ms-vscode.cmake-tools",
            "compileCommands": "${workspaceFolder}/build/compile_commands.json"
        }
    ],
    "version": 4
}

C/C++ logs:
cpptools_logs.txt



### Other Extensions

_No response_

### Additional context

_No response_

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions