Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With "C_Cpp.caseSensitiveFileSupport": "enabled" IntelliSense fails for every file in 1.22.0 #12648

Closed
BluTree opened this issue Aug 28, 2024 · 3 comments
Assignees
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. insiders Currently only repros with our latest Insiders release. Language Service regression A bug that didn't exist in a previous release
Milestone

Comments

@BluTree
Copy link

BluTree commented Aug 28, 2024

Environment

  • OS and Version: W11 22631.3447
  • VS Code Version: 1.92.2
  • C/C++ Extension Version: 1.22.0

Bug Summary and Steps to Reproduce

Bug Summary:
No IntelliSense is available, with update failing and quick info returning operation failed: FE: 'Compiler exited with error - No IL available' in logs.
The problem occurs independently of the workspace. A simple piece of code with errors isn't reported by the extension

Steps to reproduce:
Create a file containing errors, like

int main(int argc, char** argv)
{
	drfdf
	return 0;
}

Notice no squiggles appearing on drfdf an any hover resulting on Quick info operation failed: FE: 'Compiler exited with error - No IL available' in the logs

Reverting to 1.21.6 fixes the issue.
Both log diagnostics for 1.22.0 and 1.21.6 are available below

Configuration and Logs

Version: 1.22.0
Current Configuration:
{
    "name": "Win32",
    "includePath": [
        "d:/Documents/GitHub/mingen/**"
    ],
    "defines": [
        "_DEBUG",
        "UNICODE",
        "_UNICODE"
    ],
    "windowsSdkVersion": "10.0.22621.0",
    "cStandard": "c17",
    "intelliSenseMode": "windows-msvc-x64",
    "cppStandard": "c++17",
    "intelliSenseModeIsExplicit": false,
    "cStandardIsExplicit": false,
    "cppStandardIsExplicit": true,
    "mergeConfigurations": false,
    "compilerPath": "cl.exe",
    "compilerPathIsExplicit": true,
    "browse": {
        "path": [
            "d:/Documents/GitHub/mingen/**",
            "${workspaceFolder}"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
Modified Settings:
{
    "C_Cpp.default.compilerPath": "cl.exe",
    "C_Cpp.default.cppStandard": "c++17",
    "C_Cpp.formatting": "clangFormat",
    "C_Cpp.doxygen.generateOnType": false,
    "C_Cpp.intelliSenseMemoryLimit": 16384,
    "C_Cpp.loggingLevel": "Debug",
    "C_Cpp.experimentalFeatures": "enabled",
    "C_Cpp.caseSensitiveFileSupport": "enabled"
}
cpptools version (native): 1.22.0.0
Translation Unit Mappings:
[ D:\Documents\GitHub\mingen\src\main.cpp - source TU]:
Translation Unit Configurations:
[ D:\Documents\GitHub\mingen\src\main.cpp ]
    Process ID: 25880
    Memory Usage: 42 MB
    Compiler Path: C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe
    Includes:
        D:\Documents\GitHub\mingen
        D:\Documents\GitHub\mingen\bin
        D:\Documents\GitHub\mingen\deps
        D:\Documents\GitHub\mingen\lib
        D:\Documents\GitHub\mingen\src
    System Includes:
        C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\include
        C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\atlmfc\include
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\shared
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\winrt
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\cppwinrt
    Defines:
        _DEBUG
        UNICODE
        _UNICODE
    Standard Version: ms_c++17
    IntelliSense Mode: windows-msvc-x64
Total Memory Usage: 42 MB
-----

-----
Version: 1.21.6
Current Configuration:
{
    "name": "Win32",
    "includePath": [
        "d:/Documents/GitHub/mingen/**"
    ],
    "defines": [
        "_DEBUG",
        "UNICODE",
        "_UNICODE"
    ],
    "windowsSdkVersion": "10.0.22621.0",
    "cStandard": "c17",
    "intelliSenseMode": "windows-msvc-x64",
    "cppStandard": "c++17",
    "intelliSenseModeIsExplicit": false,
    "cStandardIsExplicit": false,
    "cppStandardIsExplicit": true,
    "mergeConfigurations": false,
    "compilerPath": "cl.exe",
    "compilerPathIsExplicit": true,
    "browse": {
        "path": [
            "d:/Documents/GitHub/mingen/**",
            "${workspaceFolder}"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
cpptools version (native): 1.21.6.0
Translation Unit Mappings:
[ D:\Documents\GitHub\mingen\src\main.cpp - source TU]:
Translation Unit Configurations:
[ D:\Documents\GitHub\mingen\src\main.cpp ]:
    Process ID: 8668
    Memory Usage: 51 MB
    Compiler Path: C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe
    Includes:
    System Includes:
        C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\include
        C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\atlmfc\include
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\shared
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\winrt
        C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\cppwinrt
    Defines:
        _DEBUG
        UNICODE
        _UNICODE
    Standard Version: ms_c++17
    IntelliSense Mode: windows-msvc-x64
Total Memory Usage: 51 MB

Other Extensions

No response

Additional context

No response

@sean-mcmanus sean-mcmanus self-assigned this Aug 28, 2024
@sean-mcmanus
Copy link
Contributor

@BluTree Thanks for reporting this. The failure appears to be caused by "C_Cpp.caseSensitiveFileSupport": "enabled".

@sean-mcmanus sean-mcmanus added bug Language Service regression A bug that didn't exist in a previous release labels Aug 28, 2024
@sean-mcmanus sean-mcmanus added this to the 1.22.1 milestone Aug 28, 2024
@sean-mcmanus sean-mcmanus changed the title IntelliSense fails for every file in 1.22.0 With "C_Cpp.caseSensitiveFileSupport": "enabled" IntelliSense fails for every file in 1.22.0 Aug 28, 2024
@sean-mcmanus sean-mcmanus added the insiders Currently only repros with our latest Insiders release. label Aug 28, 2024
@sean-mcmanus sean-mcmanus pinned this issue Aug 28, 2024
@sean-mcmanus sean-mcmanus moved this to Todo in cpptools Aug 28, 2024
@sean-mcmanus sean-mcmanus moved this from Todo to In progress in cpptools Aug 28, 2024
@sean-mcmanus sean-mcmanus moved this from In progress to Pull Request in cpptools Aug 28, 2024
@sean-mcmanus sean-mcmanus moved this from Pull Request to Done in cpptools Aug 29, 2024
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Aug 29, 2024
@sean-mcmanus
Copy link
Contributor

@sean-mcmanus sean-mcmanus unpinned this issue Aug 29, 2024
@BluTree
Copy link
Author

BluTree commented Sep 4, 2024

Updating to the newest version (1.22.2) indeed fixes the issue.

@BluTree BluTree closed this as completed Sep 4, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. insiders Currently only repros with our latest Insiders release. Language Service regression A bug that didn't exist in a previous release
Projects
Status: Done
Development

No branches or pull requests

3 participants