Skip to content

No intellisense in 1.0.0 #6147

@rewrking

Description

@rewrking

Type: General
Since switching to 1.0.0, I'm no longer getting any intellisense. I was also having this problem with the last set of insiders builds (I think since 2 or 3?), so I have been using 0.29.0. Since the upgrade, this is what I'm seeing in the C/C++ extension output:

Warning: Database safety check failed. Recreating database.
[rc=0x80004005] (DB: false, Expected: true)
Quick info operation failed: FE: 'Compiler exited with error - No IL available'
Quick info operation failed: FE: 'Compiler exited with error - No IL available'
  • OS and Version: Windows 10
  • VS Code Version: 1.49.0
  • C/C++ Extension Version: 1.0.0

I'm using GCC on windows via MSYS2 (gcc version 10.2.0 (Rev1, Built by MSYS2 project)).

If I create a new basic project with a similar config as below, everything seems to work fine, but with my game engine project, which uses a PCH (forcedInclude), 2 main build targets, and 3 libraries built alongside them, I get no intellisense whatesoever (not even from main). This is my what my Win32 configuration looks like:

{
	"name": "Win32",
	"intelliSenseMode": "gcc-x64",
	"compilerPath": "C:/msys64/mingw64/bin/g++.exe",
	"includePath": [
		"${workspaceFolder}/include",
		"${workspaceFolder}/src/main",
		"${workspaceFolder}/src/cruise",
		"${workspaceFolder}/vendor/catch2/single_include",
		"${workspaceFolder}/vendor/entt/src",
		"${workspaceFolder}/vendor/fmt/include",
		"${workspaceFolder}/vendor/ghc_fs/include",
		"${workspaceFolder}/vendor/glfw/include",
		"${workspaceFolder}/vendor/glm",
		"${workspaceFolder}/vendor/imgui",
		"${workspaceFolder}/vendor/nlohmann_json/single_include",
		"${workspaceFolder}/vendor",
		"${workspaceFolder}/test"
	],
	"defines": [
		"_DEBUG",
		"UNICODE",
		"_UNICODE"
	],
	"cStandard": "c11",
	"cppStandard": "c++20",
	"forcedInclude": [
		"${workspaceFolder}/src/main/PCH.hpp"
	]
}

User:

	"C_Cpp.autocomplete": "Default",
	"C_Cpp.intelliSenseEngine": "Default",
	"C_Cpp.preferredPathSeparator": "Forward Slash",
	"C_Cpp.workspaceParsingPriority": "highest",
	"C_Cpp.intelliSenseCachePath": "~/.vscode/cpptools-cache",
	"C_Cpp.autoAddFileAssociations": false,
	"C_Cpp.vcpkg.enabled": false,

Workspace:

	"C_Cpp.autocomplete": "Default",
	"C_Cpp.intelliSenseEngine": "Default",
	"C_Cpp.dimInactiveRegions": false,
	"C_Cpp.preferredPathSeparator": "Forward Slash",
	"C_Cpp.loggingLevel": "Warning",
	"C_Cpp.workspaceParsingPriority": "highest",
	"C_Cpp.enhancedColorization": "Disabled",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.parser

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions