Skip to content

Crash when including QtCore #1497

@pe224

Description

@pe224
  • Windows 10 Home, 1709, 16299.192
  • MinGW 32bit toolchain (came bundled with standard Qt install)
  • VSCode
    Version 1.20.0-insider
    Commit 89264676133f25c4990706c889a48eab277544f7
    Date 2018-01-26T05:15:09.585Z
    Shell 1.7.9
    Renderer 58.0.3029.110
    Node 7.9.0
    Architecture x64
  • cpptools 0.14.6
  • issue persists after disabling all other extensions

I could reduce the crash to the following minimal configuration:
c_cpp_propterties.json

{
    "configurations": [
        {
            "name": "Win32",
            "intelliSenseMode": "clang-x64",
            "includePath": [
                "${workspaceRoot}",
                "C:/Qt/5.10.0/mingw53_32/include/QtCore"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "__GNUC__=5",
                "__cdecl=__attribute__((__cdecl__))"
            ],
            "browse": {
                "path": [
                    "${workspaceRoot}"
                ],
                "limitSymbolsToIncludedHeaders": true,
                "databaseFilename": ""
            }
        }
    ],
    "version": 3
}

test.cpp

#include <QString>

the extension reports

IntelliSense Engine = Default.
The extension will use the Tag Parser for IntelliSense when #includes don't resolve.
Autocomplete is enabled.
Error squiggles are enabled.
File exclude: **/.git
File exclude: **/.svn
File exclude: **/.hg
File exclude: **/CVS
File exclude: **/.DS_Store
File exclude: **/.vscode
Search exclude: **/node_modules
Search exclude: **/bower_components
Search exclude: **/.vscode
Code browsing service initialized
  Folder: C:/PATH/ will be indexed
Checking for syntax errors: file:///c%3A/PATH/test.cpp
Discovering files...
  Processing folder (recursive): C:/PATH/
  Discovering files: 1 file(s) processed
  0 file(s) removed from database
Done discovering files.
Parsing open files...
Parsing remaining files...
  Parsing: 0 files(s) processed
Done parsing remaining files.
Done parsing open files.
Failed to read response from server: 18
IntelliSense client has disconnected from the server - C:\PATH\TEST.CPP

Removing QtCore in includePath fixes it, but leaves "include path not found" for <QString>. Adding the QtCore back in reproduces crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions