Skip to content

problem with c_cpp_properties.json #3449

@mamo5298

Description

@mamo5298

Type: General

Describe the bug

  • OS and Version: windows 10 1803
  • VS Code Version: 133.0
  • C/C++ Extension Version: from 0.22.0
  • just as i open vs code a message appears says that there is error when parsing c_cpp_properties.json because of double backslash ended path string, and then intellisense will not work any more, when i edit the json file to avoid the error, the extension will automatically update the file after compiling the project and the problem comes back.
    i am currently working on extension version 0.21.0 where everything is fine but i have to reinstall this version everytime i start vs code because the extension will update automatically to the latest version.

To Reproduce
Steps to reproduce the behavior:

  1. install c/c++ v0.22.0 or later
  2. use c_cpp_properties.json file with \\ ended include or browse path entry, example:
    "C:\\Users\\mm\\Desktop\\Sampler32\\trunk\\common\\",
  3. compile or simply open the project which has this file
  4. See error

Expected behavior
with the version v0.21.0 the json file works as it is, and everything is fine

Screenshots
Unbenannt

Additional context
i am developing an embedded systems project, therefore i am using IAR Embedded extension for compiling, and cortex-debug extension for debugging as well as SVN extension for code syncing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.quick fixregressionA bug that didn't exist in a previous release

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions