Skip to content

Editor does not shows basic errors in syntax but compiler shows #11044

@Fady2007

Description

@Fady2007

Environment

  • OS and Version:
  • VS Code Version:
  • C/C++ Extension Version:
  • If using SSH remote, specify OS of remote machine:

Bug Summary and Steps to Reproduce

Bug Summary:

Steps to reproduce:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior:

Configuration and Logs

{
  "configurations": [
    {
      "name": "Win32",
      "includePath": ["${default}"],
      "defines": ["_DEBUG", "UNICODE", "_UNICODE"],
      "cStandard": "c17",
      "cppStandard": "gnu++17",
      "intelliSenseMode": "windows-gcc-x64"
    }
  ],
  "version": 4
}

Other Extensions

No response

Additional context

compiler shows errors but visual studio code editor does not show any basic errors in syntax

For Example:

#include <iostream> using namespace std; int main() { cout << "Line One\n"; cout << "Line Two\n" cout << "Line Three\n"; return 0; this is a comment with out "//" }

NO Formatting or shows syntax error by editor

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions