-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseAn issue related to configuring the extension or IntelliSenseLanguage Servicebugmore info neededThe issue report is not actionable in its current stateThe issue report is not actionable in its current state
Description
Environment
- OS and Version: Windows 11, Version 10.0.22621 Build 22621
- VS Code Version: 1.74.2
- C/C++ Extension Version: v1.13.8
Bug Summary and Steps to Reproduce
Bug Summary:
When a c file is created, the first line is underlined and marked as an error (command-line error: language modes specified are incompatibleC/C++(1027)
Steps to reproduce:
- Create a c file
- Write a line (for example #include <stdio.h>
- Error is displayed with the only quick fix: Disable error squiggels
Expected behavior:
- No error should be displayed
Configuration and Logs
c_cpp_properties.json
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.19041.0",
"compilerPath": "C:/MinGW/bin/gcc.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x64",
"configurationProvider": "ms-vscode.makefile-tools"
}
],
"version": 4
}
Other Extensions
All other Extensions for C/C++ were uninstalled but the issue still persists.
Additional context
Example:
#include <stdio.h> // The error is visible in this line at the "#" symbol
int main(int argc, char const *argv[])
{
printf("Hello World!");
return 0;
}
The file can be compiled with the "run C/C++" dropdown option, but Intellisense doesn't work properly.
Metadata
Metadata
Assignees
Labels
Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseAn issue related to configuring the extension or IntelliSenseLanguage Servicebugmore info neededThe issue report is not actionable in its current stateThe issue report is not actionable in its current state